1.1 --- a/rpm.c Wed Apr 09 21:14:36 2008 -0400
1.2 +++ b/rpm.c Sun Jun 08 17:11:41 2008 -0400
1.3 @@ -592,7 +592,7 @@
1.4 int
1.5 razor_importer_add_rpm(struct razor_importer *importer, struct razor_rpm *rpm)
1.6 {
1.7 - const char *name, *version, *release, *arch;
1.8 + const char *name, *version, *release, *arch, *summary;
1.9 const uint_32 *epoch;
1.10 char evr[128], buf[16];
1.11
1.12 @@ -601,6 +601,7 @@
1.13 version = razor_rpm_get_indirect(rpm, RPMTAG_VERSION, NULL);
1.14 release = razor_rpm_get_indirect(rpm, RPMTAG_RELEASE, NULL);
1.15 arch = razor_rpm_get_indirect(rpm, RPMTAG_ARCH, NULL);
1.16 + summary = razor_rpm_get_indirect(rpm, RPMTAG_SUMMARY, NULL);
1.17
1.18 if (epoch) {
1.19 snprintf(buf, sizeof buf, "%u", ntohl(*epoch));
1.20 @@ -672,7 +673,7 @@
1.21 rpmdbMatchIterator iter;
1.22 Header h;
1.23 int_32 type, count, i;
1.24 - union rpm_entry name, epoch, version, release, arch;
1.25 + union rpm_entry name, epoch, version, release, arch, summary, description;
1.26 union rpm_entry basenames, dirnames, dirindexes;
1.27 char filename[PATH_MAX], evr[128], buf[16];
1.28 rpmdb db;
1.29 @@ -693,6 +694,8 @@
1.30 headerGetEntry(h, RPMTAG_VERSION, &type, &version.p, &count);
1.31 headerGetEntry(h, RPMTAG_RELEASE, &type, &release.p, &count);
1.32 headerGetEntry(h, RPMTAG_ARCH, &type, &arch.p, &count);
1.33 + headerGetEntry(h, RPMTAG_SUMMARY, &type, &summary.p, &count);
1.34 + headerGetEntry(h, RPMTAG_DESCRIPTION, &type, &description.p, &count);
1.35
1.36 if (epoch.flags != NULL) {
1.37 snprintf(buf, sizeof buf, "%u", *epoch.flags);
1.38 @@ -705,6 +708,7 @@
1.39
1.40 razor_importer_begin_package(importer,
1.41 name.string, evr, arch.string);
1.42 + razor_importer_add_details(importer, summary.string, description.string);
1.43
1.44 add_properties(importer, RAZOR_PROPERTY_REQUIRES, h,
1.45 RPMTAG_REQUIRENAME,