Hello community,

here is the log from the commit of package ghc-asn1-encoding for 
openSUSE:Factory checked in at 2015-09-17 09:19:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-asn1-encoding (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-asn1-encoding.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-asn1-encoding"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-asn1-encoding/ghc-asn1-encoding.changes      
2015-05-21 08:33:47.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-asn1-encoding.new/ghc-asn1-encoding.changes 
2015-09-17 09:19:13.000000000 +0200
@@ -1,0 +2,5 @@
+Sun Sep 13 12:26:43 UTC 2015 - mimi...@gmail.com
+
+- update to 0.9.2 
+
+-------------------------------------------------------------------

Old:
----
  asn1-encoding-0.9.0.tar.gz

New:
----
  asn1-encoding-0.9.2.tar.gz

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

Other differences:
------------------
++++++ ghc-asn1-encoding.spec ++++++
--- /var/tmp/diff_new_pack.0SiFLY/_old  2015-09-17 09:19:13.000000000 +0200
+++ /var/tmp/diff_new_pack.0SiFLY/_new  2015-09-17 09:19:13.000000000 +0200
@@ -15,17 +15,18 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %global pkg_name asn1-encoding
 
 %bcond_with tests
 
-Name:           ghc-%{pkg_name}
-Version:        0.9.0
+Name:           ghc-asn1-encoding
+Version:        0.9.2
 Release:        0
 Summary:        ASN1 data reader and writer in RAW, BER and DER forms
+License:        BSD-3-Clause
 Group:          System/Libraries
 
-License:        BSD-3-Clause
 Url:            https://hackage.haskell.org/package/%{pkg_name}
 Source0:        
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -64,36 +65,28 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
 %if %{with tests}
 %cabal test
 %endif
 
-
 %post devel
 %ghc_pkg_recache
 
-
 %postun devel
 %ghc_pkg_recache
 
-
 %files -f %{name}.files
 %defattr(-,root,root,-)
 %doc LICENSE
 
-
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
 
-
 %changelog

++++++ asn1-encoding-0.9.0.tar.gz -> asn1-encoding-0.9.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asn1-encoding-0.9.0/Data/ASN1/Prim.hs 
new/asn1-encoding-0.9.2/Data/ASN1/Prim.hs
--- old/asn1-encoding-0.9.0/Data/ASN1/Prim.hs   2014-10-19 11:29:53.000000000 
+0200
+++ new/asn1-encoding-0.9.2/Data/ASN1/Prim.hs   2015-09-07 15:09:46.000000000 
+0200
@@ -263,16 +263,22 @@
     | hasNonASCII bs = decodingError "contains non ASCII characters"
     | otherwise      =
         case timeParseE format (BC.unpack bs) of -- BC.unpack is safe as we 
check ASCIIness first
-            Left _  -> decodingError ("cannot convert string " ++ BC.unpack bs)
-            Right r ->
-                case parseTimezone $ parseMs $ first adjustUTC $ r of
-                    Left err        -> decodingError err
-                    Right (dt', tz) -> Right $ ASN1Time timeType dt' tz
+            Left _  ->
+                case timeParseE formatNoSeconds (BC.unpack bs) of
+                    Left _  -> decodingError ("cannot convert string " ++ 
BC.unpack bs)
+                    Right r -> parseRemaining r
+            Right r -> parseRemaining r
   where
+        parseRemaining r =
+            case parseTimezone $ parseMs $ first adjustUTC r of
+                Left err        -> decodingError err
+                Right (dt', tz) -> Right $ ASN1Time timeType dt' tz
+
         adjustUTC dt@(DateTime (Date y m d) tod)
             | timeType == TimeGeneralized = dt
             | y > 2050                    = DateTime (Date (y - 100) m d) tod
             | otherwise                   = dt
+        formatNoSeconds = init format
         format | timeType == TimeGeneralized = 'Y':'Y':baseFormat
                | otherwise                   = baseFormat
         baseFormat = "YYMMDDHMIS"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asn1-encoding-0.9.0/asn1-encoding.cabal 
new/asn1-encoding-0.9.2/asn1-encoding.cabal
--- old/asn1-encoding-0.9.0/asn1-encoding.cabal 2014-10-19 11:29:53.000000000 
+0200
+++ new/asn1-encoding-0.9.2/asn1-encoding.cabal 2015-09-07 15:09:46.000000000 
+0200
@@ -1,5 +1,5 @@
 Name:                asn1-encoding
-Version:             0.9.0
+Version:             0.9.2
 Synopsis:            ASN1 data reader and writer in RAW, BER and DER forms
 Description:
     ASN1 data reader and writer in raw form with supports for high level forms 
of ASN1 (BER, and DER).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/asn1-encoding-0.9.0/tests/Tests.hs 
new/asn1-encoding-0.9.2/tests/Tests.hs
--- old/asn1-encoding-0.9.0/tests/Tests.hs      2014-10-19 11:29:53.000000000 
+0200
+++ new/asn1-encoding-0.9.2/tests/Tests.hs      2015-09-07 15:09:46.000000000 
+0200
@@ -94,7 +94,11 @@
         return $ normalizeDate $ Date y m d
 
 normalizeDate :: Date -> Date
-normalizeDate d = timeConvert (timeConvert d :: Elapsed)
+normalizeDate origDate
+    | y < 1951  = normalizeDate (Date (y + 50) m d)
+    | otherwise = normalizedDate
+  where
+    normalizedDate@(Date y m d) = timeConvert (timeConvert origDate :: Elapsed)
 
 instance Arbitrary TimeOfDay where
     arbitrary = do


Reply via email to