make things more consistent: update:reference:url -> update:reference:href
authorKlaus Kaempf <kkaempf@suse.de>
Wed, 9 Apr 2008 15:52:05 +0000 (15:52 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Wed, 9 Apr 2008 15:52:05 +0000 (15:52 +0000)
src/knownid.h
tools/repo_updateinfoxml.c

index 1174775..f658f10 100644 (file)
@@ -128,7 +128,7 @@ KNOWNID(UPDATE_COLLECTION_FLAGS,        "update:collection:flags"),    /*   rebo
 
                                                                    /* external references for the update */
 KNOWNID(UPDATE_REFERENCE_TYPE,         "update:reference:type"),  /*  type, e.g. 'bugzilla' or 'cve' */
-KNOWNID(UPDATE_REFERENCE_URL,          "update:reference:url"),   /*  url, e.g. 'http://bugzilla...' */
+KNOWNID(UPDATE_REFERENCE_HREF,         "update:reference:href"),  /*  href, e.g. 'http://bugzilla...' */
 KNOWNID(UPDATE_REFERENCE_ID,           "update:reference:id"),    /*  id, e.g. bug number */
 KNOWNID(UPDATE_REFERENCE_TITLE,                "update:reference:title"), /*  title, e.g. "the bla forz scribs on fuggle" */
 
index 94d13c0..785c743 100644 (file)
@@ -326,11 +326,11 @@ startElement(void *userData, const char *name, const char **atts)
        */
       case STATE_REFERENCE:
       {
-        const char *url = 0, *id = 0, *title = 0, *type = 0;
+        const char *href = 0, *id = 0, *title = 0, *type = 0;
        for (; *atts; atts += 2)
        {
          if (!strcmp(*atts, "href"))
-           url = atts[1];
+           href = atts[1];
          else if (!strcmp(*atts, "id"))
            id = atts[1];
          else if (!strcmp(*atts, "title"))
@@ -339,7 +339,7 @@ startElement(void *userData, const char *name, const char **atts)
            type = atts[1];
        }
 #if DO_ARRAY
-        repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_REFERENCE_URL, url);
+        repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_REFERENCE_HREF, href);
         repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_REFERENCE_ID, id);
         repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_REFERENCE_TITLE, title);
         repodata_add_poolstr_array(pd->data, pd->datanum, UPDATE_REFERENCE_TYPE, type);