update repository matching
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 11 Sep 2008 12:32:32 +0000 (12:32 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 11 Sep 2008 12:32:32 +0000 (12:32 +0000)
VERSION.cmake
package/libsatsolver.changes
src/knownid.h
tools/repo_updateinfoxml.c

index bdc3dd9..fda6a5d 100644 (file)
@@ -46,6 +46,6 @@
 
 SET(LIBSATSOLVER_MAJOR "0")
 SET(LIBSATSOLVER_MINOR "10")
-SET(LIBSATSOLVER_PATCH "10")
+SET(LIBSATSOLVER_PATCH "11")
 
-# last released 0.10.10
+# last released 0.10.11
index e422a35..7412285 100644 (file)
@@ -1,4 +1,12 @@
 -------------------------------------------------------------------
+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.
+  - 0.10.11
+  
+-------------------------------------------------------------------
 Wed Sep 10 18:11:10 CEST 2008 - dmacvicar@suse.de
 
 - create one product per BASEARCHS 
index 9283764..afe9125 100644 (file)
@@ -167,6 +167,8 @@ KNOWNID(REPOSITORY_TIMESTAMP,           "repository:timestamp"),
 /* hint when the metadata could be outdated
    w/respect to generated timestamp */
 KNOWNID(REPOSITORY_EXPIRE,              "repository:expire"),
+/* which things does this repo provides updates for, if it does */
+KNOWNID(REPOSITORY_UPDATES,              "repository:updates"),
 
 KNOWNID(DELTA_PACKAGE_NAME,            "delta:pkgname"),
 KNOWNID(DELTA_PACKAGE_EVR,              "delta:pkgevr"),
index 4114d84..618d6a4 100644 (file)
@@ -140,7 +140,6 @@ static int package_flags = 0; /* same for reboot/restart flags, to be written at
  * find attribute
  */
 
-/*
 static const char *
 find_attr(const char *txt, const char **atts)
 {
@@ -151,8 +150,6 @@ find_attr(const char *txt, const char **atts)
     }
   return 0;
 }
-*/
-
 
 /*
  * create evr (as Id) from 'epoch', 'version' and 'release' attributes
@@ -363,9 +360,15 @@ startElement(void *userData, const char *name, const char **atts)
       break;
       case STATE_PKGLIST:
       break;
-      /* <collection short="F8"> */
+      /* <collection short="F8" id="PRODUCT0001444"> */
       case STATE_COLLECTION:
-      break;
+        {
+          /* insert a REPOSITORY_UPDATES for every present collection id */
+          const char *cid;
+          if ((cid = find_attr("id", atts)))
+            repodata_add_poolstr_array(pd->data, -1, REPOSITORY_UPDATES, cid);
+          break;
+        }
       /* <name>Fedora 8</name> */ 
       case STATE_NAME:
       break;