adding the API for product information, ma will make it compile...
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 20 Nov 2008 10:55:13 +0000 (10:55 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Thu, 20 Nov 2008 10:55:13 +0000 (10:55 +0000)
src/knownid.h
tools/repo_repomdxml.c

index 84ca845..dc712c6 100644 (file)
@@ -182,11 +182,11 @@ KNOWNID(REPOSITORY_EXPIRE,                "repository:expire"),
 
 /* which things does this repo provides updates for, if it does (array) */
 KNOWNID(REPOSITORY_UPDATES,            "repository:updates"),
-KNOWNID(REPOSITORY_UPDATE_LABEL,       "repository:update:label"),
-KNOWNID(REPOSITORY_UPDATE_CPEID,       "repository:update:cpeid"),
+/* for the repository:update label and cpeid, use the repository:product
+   sub attributes */
 
 /* which products this repository is supposed to be for (array) */
-KNOWNID(REPOSITORY_PRODUCTS,           "repository:products"),
+KNOWNID(REPOSITORY_DISTROS,            "repository:distros"),
 KNOWNID(REPOSITORY_PRODUCT_LABEL,       "repository:product:label"),
 KNOWNID(REPOSITORY_PRODUCT_CPEID,      "repository:product:cpeid"),
 
index 9f9074f..c6a1ae2 100644 (file)
@@ -275,7 +275,7 @@ startElement(void *userData, const char *name, const char **atts)
         /* set the cpeid for the product 
            the label is set in the content of the tag */
         if (cpeid)
-          repodata_set_poolstr(pd->data, pd->ruhandle, REPOSITORY_UPDATE_CPEID, cpeid);
+          repodata_set_poolstr(pd->data, pd->ruhandle, REPOSITORY_PRODUCT_CPEID, cpeid);
         break;
       }
     case STATE_DATA: break;
@@ -354,13 +354,13 @@ endElement(void *userData, const char *name)
          made for */
       if (pd->content)
         repodata_set_str(pd->data, pd->rphandle, REPOSITORY_PRODUCT_LABEL, pd->content);
-      repodata_add_flexarray(pd->data, SOLVID_META, REPOSITORY_PRODUCTS, pd->rphandle);
+      repodata_add_flexarray(pd->data, SOLVID_META, REPOSITORY_DISTROS, pd->rphandle);
       break;
     case STATE_UPDATES:
       /* distro tag is used in suseinfo.xml to say the repo updates a product
          however it s not yet a tag standarized for repomd.xml */
       if (pd->content)
-        repodata_set_str(pd->data, pd->ruhandle, REPOSITORY_UPDATE_LABEL, pd->content);
+        repodata_set_str(pd->data, pd->ruhandle, REPOSITORY_PRODUCT_LABEL, pd->content);
       repodata_add_flexarray(pd->data, SOLVID_META, REPOSITORY_UPDATES, pd->ruhandle);
       break;
     case STATE_SUSEINFO: break;