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:
1 parent
41e1dc3f8b
commit
de8a6a01d8
1 file changed
+3
-5
+3
-5
@@ -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) {
|
||||
package_hashtable[num] = new_node;
|
||||
} else {
|
||||
free_package(new_node);
|
||||
}
|
||||
if (package_hashtable[num] != NULL)
|
||||
free_package(package_hashtable[num]);
|
||||
package_hashtable[num] = new_node;
|
||||
return num;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user