diff options
author | James Bowes <jbowes@redhat.com> | 2008-06-08 18:29:24 -0400 |
---|---|---|
committer | James Bowes <jbowes@redhat.com> | 2008-06-08 18:29:24 -0400 |
commit | dfa684b1a9c340d9ee66d5b6453b63bec2a40d45 (patch) | |
tree | 11c48c4fc6d9ef781c57a1a0fc9f48bdaf47d4aa /rpm.c | |
parent | 9074e439d6102180298f5dcb4822fbcf2399a226 (diff) |
Add url and license package data as well
Diffstat (limited to 'rpm.c')
-rw-r--r-- | rpm.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -673,7 +673,8 @@ razor_set_create_from_rpmdb(void) rpmdbMatchIterator iter; Header h; int_32 type, count, i; - union rpm_entry name, epoch, version, release, arch, summary, description; + union rpm_entry name, epoch, version, release, arch; + union rpm_entry summary, description, url, license; union rpm_entry basenames, dirnames, dirindexes; char filename[PATH_MAX], evr[128], buf[16]; rpmdb db; @@ -696,6 +697,8 @@ razor_set_create_from_rpmdb(void) headerGetEntry(h, RPMTAG_ARCH, &type, &arch.p, &count); headerGetEntry(h, RPMTAG_SUMMARY, &type, &summary.p, &count); headerGetEntry(h, RPMTAG_DESCRIPTION, &type, &description.p, &count); + headerGetEntry(h, RPMTAG_URL, &type, &url.p, &count); + headerGetEntry(h, RPMTAG_LICENSE, &type, &license.p, &count); if (epoch.flags != NULL) { snprintf(buf, sizeof buf, "%u", *epoch.flags); @@ -708,7 +711,9 @@ razor_set_create_from_rpmdb(void) razor_importer_begin_package(importer, name.string, evr, arch.string); - razor_importer_add_details(importer, summary.string, description.string); + razor_importer_add_details(importer, summary.string, + description.string, url.string, + license.string); add_properties(importer, RAZOR_PROPERTY_REQUIRES, h, RPMTAG_REQUIRENAME, |