mirror of
https://git.busybox.net/busybox
synced 2026-02-15 22:16:09 +00:00
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:
parent
41e1dc3f8b
commit
de8a6a01d8
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue