← Commit list

de8a6a01d

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2007-03-19
FAILED Duration: 11s

Subject

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.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/dpkg.c+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;
}