diff -r e8f493d8ff9a -r 5803b6151d02 rpm.c --- a/rpm.c Wed Apr 09 21:14:36 2008 -0400 +++ b/rpm.c Sun Jun 08 17:11:41 2008 -0400 @@ -592,7 +592,7 @@ int razor_importer_add_rpm(struct razor_importer *importer, struct razor_rpm *rpm) { - const char *name, *version, *release, *arch; + const char *name, *version, *release, *arch, *summary; const uint_32 *epoch; char evr[128], buf[16]; @@ -601,6 +601,7 @@ version = razor_rpm_get_indirect(rpm, RPMTAG_VERSION, NULL); release = razor_rpm_get_indirect(rpm, RPMTAG_RELEASE, NULL); arch = razor_rpm_get_indirect(rpm, RPMTAG_ARCH, NULL); + summary = razor_rpm_get_indirect(rpm, RPMTAG_SUMMARY, NULL); if (epoch) { snprintf(buf, sizeof buf, "%u", ntohl(*epoch)); @@ -672,7 +673,7 @@ rpmdbMatchIterator iter; Header h; int_32 type, count, i; - union rpm_entry name, epoch, version, release, arch; + union rpm_entry name, epoch, version, release, arch, summary, description; union rpm_entry basenames, dirnames, dirindexes; char filename[PATH_MAX], evr[128], buf[16]; rpmdb db; @@ -693,6 +694,8 @@ headerGetEntry(h, RPMTAG_VERSION, &type, &version.p, &count); headerGetEntry(h, RPMTAG_RELEASE, &type, &release.p, &count); headerGetEntry(h, RPMTAG_ARCH, &type, &arch.p, &count); + headerGetEntry(h, RPMTAG_SUMMARY, &type, &summary.p, &count); + headerGetEntry(h, RPMTAG_DESCRIPTION, &type, &description.p, &count); if (epoch.flags != NULL) { snprintf(buf, sizeof buf, "%u", *epoch.flags); @@ -705,6 +708,7 @@ razor_importer_begin_package(importer, name.string, evr, arch.string); + razor_importer_add_details(importer, summary.string, description.string); add_properties(importer, RAZOR_PROPERTY_REQUIRES, h, RPMTAG_REQUIRENAME,