[pacman-dev] installing two packages conflicting with each other
http://bugs.archlinux.org/task/7415#comment17206 I think this bug is not so obvious, there are two package in the same group, one conflicts / replaces / provides the other. There are at least 3 cases to consider here for the state before the installation : none of the packages are installed, old package is installed, new package is installed. Should pacman always choose the package replacing the other ? And what should happen without the replace flag, if the package only provides and conflicts with the other ?
From the man page : replaces (array) : An array of packages that this package should replace, and can be used to handle renamed/combined packages. For example, if the 'j2re' package is renamed to 'jre', this directive allows future upgrades to continue as expected even though the
Actually, I think conflicts and provides are pretty clear. Only replaces is more confusing. package has moved. Renaming package is exactly the case of FS #7415 But should replaces be used together with provides and conflicts ? Aren't provides and conflicts implicit when a package is renamed ? Maybe the problem here is that this renaming happens in another repo (gnome-devel), and so the old package remains in extra.
It seems that currently, replaces flag is only used on sysupgrade operation, and don't have any effect in others.
participants (1)
-
Xavier