Hello community,

here is the log from the commit of package ghc-easy-file for openSUSE:Factory 
checked in at 2018-07-24 17:18:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-easy-file (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-easy-file.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-easy-file"

Tue Jul 24 17:18:09 2018 rev:5 rq:623762 version:0.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-easy-file/ghc-easy-file.changes      
2018-05-30 12:25:31.529896127 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-easy-file.new/ghc-easy-file.changes 
2018-07-24 17:18:13.286979286 +0200
@@ -1,0 +2,12 @@
+Wed Jul 18 14:26:22 UTC 2018 - [email protected]
+
+- Cosmetic: replace tabs with blanks, strip trailing white space,
+  and update copyright headers with spec-cleaner.
+
+-------------------------------------------------------------------
+Fri Jul 13 14:32:06 UTC 2018 - [email protected]
+
+- Update easy-file to version 0.2.2.
+  Upstream does not provide a change log file.
+
+-------------------------------------------------------------------
@@ -26 +37,0 @@
-

Old:
----
  easy-file-0.2.1.tar.gz

New:
----
  easy-file-0.2.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-easy-file.spec ++++++
--- /var/tmp/diff_new_pack.C9XD1x/_old  2018-07-24 17:18:13.958980153 +0200
+++ /var/tmp/diff_new_pack.C9XD1x/_new  2018-07-24 17:18:13.962980158 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-easy-file
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %global pkg_name easy-file
 Name:           ghc-%{pkg_name}
-Version:        0.2.1
+Version:        0.2.2
 Release:        0
 Summary:        Cross-platform File handling
 License:        BSD-3-Clause

++++++ easy-file-0.2.1.tar.gz -> easy-file-0.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/easy-file-0.2.1/System/EasyFile/Missing.hs 
new/easy-file-0.2.2/System/EasyFile/Missing.hs
--- old/easy-file-0.2.1/System/EasyFile/Missing.hs      2015-05-15 
02:34:16.000000000 +0200
+++ new/easy-file-0.2.2/System/EasyFile/Missing.hs      2018-05-15 
02:39:36.000000000 +0200
@@ -12,6 +12,7 @@
 import Control.Exception
 import System.Win32.File
 import System.Win32.Time
+import System.Win32.Types (HANDLE)
 #else
 import System.Posix.Files
 import System.Posix.Types
@@ -118,6 +119,16 @@
 ----------------------------------------------------------------
 
 #if defined(mingw32_HOST_OS) || defined(__MINGW32__)
+-- Open a file or directory for getting the file metadata.
+withFileForInfo :: FilePath -> (HANDLE -> IO a) -> IO a
+withFileForInfo file = bracket setup teardown
+  where
+    setup = createFile file 0 fILE_SHARE_READ Nothing
+                       oPEN_EXISTING fILE_FLAG_BACKUP_SEMANTICS Nothing
+    teardown = closeHandle
+#endif
+
+#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
 creationTime :: (UTCTime,UTCTime,UTCTime) -> UTCTime
 creationTime (ctime,_,_) = ctime
 
@@ -128,13 +139,11 @@
 writeTime (_,_,wtime) = wtime
 
 fileTime :: FilePath -> IO (UTCTime,UTCTime,UTCTime)
-fileTime file = do
-    fh <- createFile file gENERIC_READ fILE_SHARE_READ Nothing oPEN_EXISTING 
fILE_ATTRIBUTE_NORMAL Nothing
-    (ctime,atime,mtime) <- getFileTime fh
-    closeHandle fh
-    return (filetimeToUTCTime ctime
-           ,filetimeToUTCTime atime
-           ,filetimeToUTCTime mtime)
+fileTime file = withFileForInfo file $ \fh -> do
+  (ctime,atime,mtime) <- getFileTime fh
+  return (filetimeToUTCTime ctime
+         ,filetimeToUTCTime atime
+         ,filetimeToUTCTime mtime)
 
 {-
   http://support.microsoft.com/kb/167296/en-us
@@ -155,11 +164,8 @@
 -- | Getting the size of the file.
 getFileSize :: FilePath -> IO Word64
 #if defined(mingw32_HOST_OS) || defined(__MINGW32__)
-getFileSize file = bracket setup teardown body
-  where
-    setup = createFile file gENERIC_READ fILE_SHARE_READ Nothing oPEN_EXISTING 
fILE_ATTRIBUTE_NORMAL Nothing
-    teardown = closeHandle
-    body fh = fromIntegral . bhfiSize <$> getFileInformationByHandle fh
+getFileSize file = withFileForInfo file $ \fh ->
+  fromIntegral . bhfiSize <$> getFileInformationByHandle fh
 #else
 getFileSize file = fromIntegral . fileSize <$> getFileStatus file
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/easy-file-0.2.1/easy-file.cabal 
new/easy-file-0.2.2/easy-file.cabal
--- old/easy-file-0.2.1/easy-file.cabal 2015-05-15 02:34:16.000000000 +0200
+++ new/easy-file-0.2.2/easy-file.cabal 2018-05-15 02:39:36.000000000 +0200
@@ -1,5 +1,5 @@
 Name:                   easy-file
-Version:                0.2.1
+Version:                0.2.2
 Author:                 Kazu Yamamoto <[email protected]>
 Maintainer:             Kazu Yamamoto <[email protected]>
 License:                BSD3


Reply via email to