2007-12-29 Tollef Fog Heen <tfheen@err.no>
+ * pkg.c (verify_package): Apply patch from Matthias Clasen of
+ RedHat to prevent segfaults if a Conflicts line is encountered.
+
* popthelp.c: Apply patch from Tom Tromey <tromey@redhat.com> to
make pkg-config --help print to stdout, not stderr. Gnome
#127314.
*/
recursive_fill_list (pkg, get_requires_private, &requires);
- recursive_fill_list (pkg, get_conflicts, &conflicts);
+ conflicts = get_conflicts (pkg);
requires_iter = requires;
while (requires_iter != NULL)
req->version, req->name,
ver->name,
comparison_to_str (ver->comparison),
- ver->version,
+ ver->version ? ver->version : "(any)",
ver->owner->name,
ver->owner->version);
}
g_slist_free (requires);
- g_slist_free (conflicts);
/* We make a list of system directories that gcc expects so we can remove
* them.