Kim B. Heino writes:

When installing a new package with dpkg dependencies are checked 
correctly. But when I try to update an existing package, the 
dependencies are checked against the old package, not against new 
package. Thus the new package can break dependencies.
This commit is contained in:
Bernhard Reutner-Fischer 2007-03-19 13:44:18 +00:00
parent 41e1dc3f8b
commit de8a6a01d8

View File

@ -643,11 +643,9 @@ static unsigned fill_package_struct(char *control_buffer)
return -1;
}
num = search_package_hashtable(new_node->name, new_node->version, VER_EQUAL);
if (package_hashtable[num] == NULL) {
if (package_hashtable[num] != NULL)
free_package(package_hashtable[num]);
package_hashtable[num] = new_node;
} else {
free_package(new_node);
}
return num;
}