-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
Steps to reproduce:
- install old
pariandpari-devel(version2.11.4_1which I have in my cache)
# xdowngrade /var/cache/xbps/pari{,-devel}-2.11.4_1.x86_64.xbps
- Note that:
pari-devel-2.11.4_1depends onpari-2.11.4_1
$ xbps-query -S pari-devel | grep -P 'pkgver:|run_depends|\t'
pkgver: pari-devel-2.11.4_1
run_depends:
pari-2.11.4_1
pari-devel-2.13.1_1depends onpari>=2.13.1_1
$ xbps-query -RS pari-devel | grep -P 'pkgver:|run_depends|\t'
pkgver: pari-devel-2.13.1_1
run_depends:
pari>=2.13.1_1
- Put
parion hold (currently installed version2.11.4_1)
# xbps-pkgdb -m hold pari
- Do an update:
# xbps-install -u
Name Action Version New version Download size
pari-devel update 2.11.4_1 2.13.1_1 -
[...]
- Now
pariis at2.11.4_1, butpari-develis at2.13.1_1:
$ xbps-query -s pari
[*] pari-2.11.4_1 Fast computations library in number theory
[*] pari-devel-2.13.1_1 Fast computations library in number theory - development files
This is inconsistent with pari-devel-2.13.1_1 depending on pari>=2.13.1_1.
Expected behaviour
That holding pari at 2.11.4_1 prevents upgrading pari-devel to 2.13.1_1, since that leads to an incosistent state.
I know I can hold pari-devel, but what if I forgot?
Ideally, it should ignore updating pari-devel, although an error is quite acceptable (because an error leads me to put pari-devel on hold, and then I'm happy and nothing has been broken).
Another, similar behaviour:
- have only
pari-2.11.4_1installed and on hold - request install of
pari-devel - xbps happily installs
pari-devel-2.13.1_1without upgradingpari-2.11.4_1
I would have expected an error warning me that pari-devel-2.13.1_1 cannot be installed.
Note in this case I cannot put pari-devel on hold beforehand so there's no workaround. OTOH, xbps has no recourse (since pari-devel-2.11.4_1 is not in the repo) so there would be no choice but issue an error.
Metadata
Metadata
Assignees
Labels
No labels