Support files changing owner in the same transaction without replaces=?
During an upgrade, sometimes a new-package gets installed instead of an old-package, and takes over files from old-package. If that is the case, the new-package must have replaces="old-package"
or else we get an error like the following:
(491/542) Installing bemenu (0.6.7-r0)
ERROR: bemenu-0.6.7-r0: trying to overwrite usr/bin/bemenu owned by sxmo-bemenu-0.6.3.0-r0.
(example from aports!34975 (merged))
In other words:
- old
- a package depends on "sxmo-bemenu"
- new
- the same package does not depend on "sxmo-bemenu" anymore, but instead on "bemenu"
- bemenu owns the files now
Since it's in the same transaction, and running apk fix
afterwards will resolve it, I wonder if apk could just automatically recognize this during the upgrade and not print an error even if there is no replaces=
present.