+2002-02-13 Havoc Pennington <hp@redhat.com>
+
+ * pkg.c (internal_get_package): look up path position by package
+ key, not package name
+
2002-02-12 Havoc Pennington <hp@redhat.com>
* pkg.c (scan_dir): use g_strdup, and fix the location where
debug_spew ("Failed to parse '%s'\n", location);
return NULL;
}
-
- pkg->path_position =
- GPOINTER_TO_INT (g_hash_table_lookup (path_positions, pkg->name));
-
- debug_spew ("Path position of '%s' is %d\n",
- pkg->name, pkg->path_position);
if (strstr (location, "uninstalled.pc"))
pkg->uninstalled = TRUE;
pkg->key = g_strndup (start, end - start);
}
+ pkg->path_position =
+ GPOINTER_TO_INT (g_hash_table_lookup (path_positions, pkg->key));
+
+ debug_spew ("Path position of '%s' is %d\n",
+ pkg->name, pkg->path_position);
+
verify_package (pkg);
debug_spew ("Adding '%s' to list of known packages, returning as package '%s'\n",