1.1 --- a/src/import-rpmdb.c Fri Jun 20 16:48:44 2008 -0400
1.2 +++ b/src/import-rpmdb.c Mon Jun 23 14:07:07 2008 -0400
1.3 @@ -86,6 +86,7 @@
1.4 Header h;
1.5 int_32 type, count, i;
1.6 union rpm_entry name, epoch, version, release, arch;
1.7 + union rpm_entry summary, description, url, license;
1.8 union rpm_entry basenames, dirnames, dirindexes;
1.9 char filename[PATH_MAX], evr[128], buf[16];
1.10 rpmdb db;
1.11 @@ -106,6 +107,11 @@
1.12 headerGetEntry(h, RPMTAG_VERSION, &type, &version.p, &count);
1.13 headerGetEntry(h, RPMTAG_RELEASE, &type, &release.p, &count);
1.14 headerGetEntry(h, RPMTAG_ARCH, &type, &arch.p, &count);
1.15 + headerGetEntry(h, RPMTAG_SUMMARY, &type, &summary.p, &count);
1.16 + headerGetEntry(h, RPMTAG_DESCRIPTION, &type, &description.p,
1.17 + &count);
1.18 + headerGetEntry(h, RPMTAG_URL, &type, &url.p, &count);
1.19 + headerGetEntry(h, RPMTAG_LICENSE, &type, &license.p, &count);
1.20
1.21 if (epoch.flags != NULL) {
1.22 snprintf(buf, sizeof buf, "%u", *epoch.flags);
1.23 @@ -118,6 +124,9 @@
1.24
1.25 razor_importer_begin_package(importer,
1.26 name.string, evr, arch.string);
1.27 + razor_importer_add_details(importer, summary.string,
1.28 + description.string, url.string,
1.29 + license.string);
1.30
1.31 add_properties(importer, RAZOR_PROPERTY_REQUIRES, h,
1.32 RPMTAG_REQUIRENAME,