Fix to support sha256 hashes (bnc#501425)
authorMichael Andres <ma@suse.de>
Wed, 6 May 2009 17:58:04 +0000 (19:58 +0200)
committerMichael Andres <ma@suse.de>
Wed, 6 May 2009 17:58:04 +0000 (19:58 +0200)
package/libsatsolver.changes
tools/repo_rpmmd.c

index 3c8dff5..160e880 100644 (file)
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Wed May  6 19:52:39 CEST 2009 - ma@suse.de
+
+- Fix to support sha256 hashes (bnc#501425)
+
+-------------------------------------------------------------------
 Wed Apr  1 10:32:43 CEST 2009 - kkaempf@suse.de
 
 - 0.14.1
@@ -22,7 +27,7 @@ Wed Apr  1 10:32:43 CEST 2009 - kkaempf@suse.de
   - generate rdoc documentation from swig input files (kkaempf)
   - add a no-op Pool destructor (bnc#483252) (kkaempf)
   - provide access to all flags and settings (kkaempf)
-  
+
 -------------------------------------------------------------------
 Wed Mar  4 14:39:00 CET 2009 - mls@suse.de
 
@@ -143,7 +148,7 @@ Mon Oct 27 10:54:36 CET 2008 - kkaempf@suse.de
 -------------------------------------------------------------------
 Fri Oct 24 16:03:13 CEST 2008 - ma@suse.de
 
-- Remember the /etc/products.d enties filename in .solv 
+- Remember the /etc/products.d enties filename in .solv
   (bnc #432932)
 - 0.12.1
 
@@ -230,7 +235,7 @@ Thu Sep 25 17:14:42 CEST 2008 - kkaempf@suse.de
 -------------------------------------------------------------------
 Thu Sep 25 13:53:54 CEST 2008 - dmacvicar@suse.de
 
-- add support for keywords in susedata 
+- add support for keywords in susedata
 
 -------------------------------------------------------------------
 Wed Sep 24 10:55:01 CEST 2008 - kkaempf@suse.de
@@ -262,7 +267,7 @@ Wed Sep 17 14:10:23 CEST 2008 - mls@suse.de
 -------------------------------------------------------------------
 Fri Sep 12 17:32:02 CEST 2008 - dmacvicar@suse.de
 
-- support for susedata.xml 
+- support for susedata.xml
 
 -------------------------------------------------------------------
 Fri Sep 12 14:01:11 CEST 2008 - dmacvicar@suse.de
@@ -278,24 +283,24 @@ Thu Sep 11 14:30:16 CEST 2008 - dmacvicar@suse.de
 - add REPOSITORY_UPDATES to match product -> repos
 - make updateinfo.xml support id attribute in collection that
   leads to insert that the repository updates that id.
-  
+
 -------------------------------------------------------------------
 Wed Sep 10 18:11:10 CEST 2008 - dmacvicar@suse.de
 
-- create one product per BASEARCHS 
+- create one product per BASEARCHS
 
 -------------------------------------------------------------------
 Wed Sep 10 14:19:26 CEST 2008 - ma@suse.de
 
-- repo_products: Parse schemeversion, propagate product 
-  updaterepokey and flavor. Fix segfault on malformed 
+- repo_products: Parse schemeversion, propagate product
+  updaterepokey and flavor. Fix segfault on malformed
   xml.
 - 0.10.10
 
 -------------------------------------------------------------------
 Wed Sep 10 11:57:27 CEST 2008 - dmacvicar@suse.de
 
-- accept the PATTERNS tag in content file 
+- accept the PATTERNS tag in content file
 
 -------------------------------------------------------------------
 Tue Sep  9 21:26:31 CEST 2008 - kkaempf@suse.de
@@ -303,7 +308,7 @@ Tue Sep  9 21:26:31 CEST 2008 - kkaempf@suse.de
 - rpmdb2solv changes:
   - fix bug when parsing multiple products
   - adapt to .prod file as of 9/9/08 7:20pm
-- 0.10.9 
+- 0.10.9
 
 -------------------------------------------------------------------
 Tue Sep  9 17:52:30 CEST 2008 - ma@suse.de
@@ -314,12 +319,12 @@ Tue Sep  9 17:52:30 CEST 2008 - ma@suse.de
 -------------------------------------------------------------------
 Tue Sep  9 11:50:39 CEST 2008 - dmacvicar@suse.de
 
-- disable -Werror for swig generated stuff 
+- disable -Werror for swig generated stuff
 
 -------------------------------------------------------------------
 Fri Sep  5 18:59:35 CEST 2008 - kkaempf@suse.de
 
-- adapt /etc/product.d parser to generated .prod files. 
+- adapt /etc/product.d parser to generated .prod files.
 
 -------------------------------------------------------------------
 Fri Sep  5 13:29:47 CEST 2008 - ma@suse.de
@@ -401,15 +406,15 @@ Thu Aug  7 22:00:55 CEST 2008 - dmacvicar@suse.de
 -------------------------------------------------------------------
 Thu Aug  7 13:36:59 CEST 2008 - ma@suse.de
 
-- Susetags: Allow whitespace in file provides generated by 
+- Susetags: Allow whitespace in file provides generated by
   autobuild (bnc#415115)
 
 -------------------------------------------------------------------
 Fri Aug  1 18:59:22 CEST 2008 - dmacvicar@suse.de
 
-- insert the checksum in rpmmd generated solv files                                  
-  (bnc#414002)                                                                       
-- 0.10.3 
+- insert the checksum in rpmmd generated solv files
+  (bnc#414002)
+- 0.10.3
 
 -------------------------------------------------------------------
 Tue Jul 29 10:53:22 CEST 2008 - mls@suse.de
@@ -431,7 +436,7 @@ Sat Jul 12 02:32:15 CEST 2008 - dmacvicar@suse.de
 -------------------------------------------------------------------
 Wed Jul  9 16:25:36 CEST 2008 - ma@suse.de
 
-- Fix repo_content dependency parsing. Parser may lose up to 
+- Fix repo_content dependency parsing. Parser may lose up to
   two trailing dependencies.
 
 -------------------------------------------------------------------
@@ -488,7 +493,7 @@ Thu May 15 16:05:50 CEST 2008 - coolo@suse.de
 ------------------------------------------------------------------
 Wed May 14 16:41:26 CEST 2008 - dmacvicar@suse.de
 
-- mls fix of satisfied patterns 
+- mls fix of satisfied patterns
 - 0.0.33
 
 -------------------------------------------------------------------
@@ -499,7 +504,7 @@ Tue May 13 17:14:26 CEST 2008 - dmacvicar@suse.de
 -------------------------------------------------------------------
 Tue May 13 14:11:30 CEST 2008 - jreidinger@suse.cz
 
-- read description dir path from content file (bnc #389414) 
+- read description dir path from content file (bnc #389414)
 
 -------------------------------------------------------------------
 Tue May 13 12:20:58 CEST 2008 - dmacvicar@suse.de
@@ -520,7 +525,7 @@ Sat May 10 15:33:15 CEST 2008 - coolo@suse.de
 -------------------------------------------------------------------
 Fri May  9 21:56:43 CEST 2008 - ma@suse.de
 
-- Parse the products LABEL in content file to SUMMARY. 
+- Parse the products LABEL in content file to SUMMARY.
 
 -------------------------------------------------------------------
 Fri May  9 20:26:52 CEST 2008 - dmacvicar@suse.de
@@ -575,7 +580,7 @@ Fri Apr 25 19:23:51 CEST 2008 - coolo@suse.de
 - fix anchoring of filelist data
 - susetags move files added to provides back into filelist
 - ignore packages.FL for now
+
 -------------------------------------------------------------------
 Sun Apr 20 18:25:14 CEST 2008 - coolo@suse.de
 
@@ -722,7 +727,7 @@ Sat Dec 22 19:02:57 CET 2007 - coolo@suse.de
 -------------------------------------------------------------------
 Fri Nov 30 16:01:39 CET 2007 - schubi@suse.de
 
-- update for libzypp integration 
+- update for libzypp integration
 
 -------------------------------------------------------------------
 Fri Nov 16 12:17:13 CET 2007 - coolo@suse.de
index 027c723..867c026 100644 (file)
@@ -932,6 +932,8 @@ endElement(void *userData, const char *name)
         Id type, index;
         if (!strcasecmp (pd->tmpattr, "sha") || !strcasecmp (pd->tmpattr, "sha1"))
           l = SIZEOF_SHA1 * 2, type = REPOKEY_TYPE_SHA1;
+        else if (!strcasecmp (pd->tmpattr, "sha256"))
+          l = SIZEOF_SHA256 * 2, type = REPOKEY_TYPE_SHA256;
         else if (!strcasecmp (pd->tmpattr, "md5"))
           l = SIZEOF_MD5 * 2, type = REPOKEY_TYPE_MD5;
         else