Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-easy-file for openSUSE:Factory checked in at 2023-06-22 23:25:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-easy-file (Old) and /work/SRC/openSUSE:Factory/.ghc-easy-file.new.15902 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-easy-file" Thu Jun 22 23:25:21 2023 rev:12 rq:1094428 version:0.2.5 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-easy-file/ghc-easy-file.changes 2023-04-04 21:19:58.261018491 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-easy-file.new.15902/ghc-easy-file.changes 2023-06-22 23:25:46.217752596 +0200 @@ -1,0 +2,12 @@ +Mon May 1 07:15:52 UTC 2023 - Peter Simons <[email protected]> + +- Update easy-file to version 0.2.5. + Upstream does not provide a change log file. + +------------------------------------------------------------------- +Wed Apr 26 04:31:34 UTC 2023 - Peter Simons <[email protected]> + +- Update easy-file to version 0.2.4. + Upstream does not provide a change log file. + +------------------------------------------------------------------- Old: ---- easy-file-0.2.3.tar.gz New: ---- easy-file-0.2.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-easy-file.spec ++++++ --- /var/tmp/diff_new_pack.CBtnaz/_old 2023-06-22 23:25:46.789755513 +0200 +++ /var/tmp/diff_new_pack.CBtnaz/_new 2023-06-22 23:25:46.797755554 +0200 @@ -20,7 +20,7 @@ %global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.2.3 +Version: 0.2.5 Release: 0 Summary: Cross-platform File handling License: BSD-3-Clause ++++++ easy-file-0.2.3.tar.gz -> easy-file-0.2.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/easy-file-0.2.3/System/EasyFile/Missing.hs new/easy-file-0.2.5/System/EasyFile/Missing.hs --- old/easy-file-0.2.3/System/EasyFile/Missing.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/easy-file-0.2.5/System/EasyFile/Missing.hs 2001-09-09 03:46:40.000000000 +0200 @@ -16,7 +16,7 @@ import System.Win32.Time import System.Win32.Types (HANDLE) #else -import System.Posix.Files +import System.Posix.Files as P import System.Posix.Types #endif @@ -164,6 +164,8 @@ #endif -- | Getting the size of the file. +-- +-- Since: 0.2.0. getFileSize :: FilePath -> IO Word64 #if defined(mingw32_HOST_OS) || defined(__MINGW32__) getFileSize file = withFileForInfo file $ \fh -> @@ -171,3 +173,20 @@ #else getFileSize file = fromIntegral . fileSize <$> getFileStatus file #endif + +-- | Setting the size of the file. +-- +-- Since: 0.2.4. +setFileSize :: FilePath -> Word64 -> IO () +#if (defined(mingw32_HOST_OS) || defined(__MINGW32__)) +# if MIN_VERSION_Win32(2, 6, 2) +setFileSize file siz = do + hdl <- createFile file gENERIC_WRITE fILE_SHARE_NONE Nothing oPEN_EXISTING fILE_ATTRIBUTE_NORMAL Nothing + _ <- setFilePointerEx hdl (fromIntegral siz) fILE_CURRENT + setEndOfFile hdl +# else +setFileSize _ _ = error "GHC 8.10.5 or earlier does not provide setFilePointerEx" +# endif +#else +setFileSize file siz = P.setFileSize file $ fromIntegral siz +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/easy-file-0.2.3/System/EasyFile.hs new/easy-file-0.2.5/System/EasyFile.hs --- old/easy-file-0.2.3/System/EasyFile.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/easy-file-0.2.5/System/EasyFile.hs 2001-09-09 03:46:40.000000000 +0200 @@ -76,6 +76,7 @@ , getAccessTime -- * Size , getFileSize + , setFileSize -- * File\/directory information , isSymlink , getLinkCount diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/easy-file-0.2.3/easy-file.cabal new/easy-file-0.2.5/easy-file.cabal --- old/easy-file-0.2.3/easy-file.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/easy-file-0.2.5/easy-file.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,6 +1,6 @@ Cabal-Version: >= 1.10 Name: easy-file -Version: 0.2.3 +Version: 0.2.5 Author: Kazu Yamamoto <[email protected]> Maintainer: Kazu Yamamoto <[email protected]> License: BSD3
