Commit 73a03c2e authored by Timo Teräs's avatar Timo Teräs
Browse files

db: allow replacing files of origin package is same

basically this makes packager's life simpler as there is no need
to list the subpkg names in replaces. this was also very error
prone and tedious job to do properly.
parent 9f679fa8
......@@ -2294,6 +2294,9 @@ static int apk_db_install_archive_entry(void *_ctx,
/* Upgrading package? */
if (opkg->name == pkg->name)
/* Or same source package? */
if (opkg->origin == pkg->origin && pkg->origin)
/* Does the original package replace the new one? */
foreach_array_item(dep, opkg->ipkg->replaces) {
if (apk_dep_is_materialized(dep, pkg)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment