FS#33455 - paccache selects the new package file to delete instead of the old
Attached to Project:
Pacman
Opened by Baeyens (berbae) - Saturday, 19 January 2013, 10:37 GMT
Last edited by Allan McRae (Allan) - Monday, 28 January 2013, 13:42 GMT
Opened by Baeyens (berbae) - Saturday, 19 January 2013, 10:37 GMT
Last edited by Allan McRae (Allan) - Monday, 28 January 2013, 13:42 GMT
|
Details
After the firefox update there are the two package files in
pacman cache:
firefox-18.0-2-x86_64.pkg.tar.xz firefox-18.0.1-1-x86_64.pkg.tar.xz The command 'paccache -d -k1 -vv' gives: ==> Candidate packages: /var/cache/pacman/pkg/firefox-18.0.1-1-x86_64.pkg.tar.xz ==> finished dry run: 1 candidates (diskspace saved: 18.33 MiB) So the script wants to delete the wrong package file, it should be: /var/cache/pacman/pkg/firefox-18.0-2-x86_64.pkg.tar.xz |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 28 January 2013, 13:42 GMT
Reason for closing: Fixed
Additional comments about closing: commit 250aaefb
Monday, 28 January 2013, 13:42 GMT
Reason for closing: Fixed
Additional comments about closing: commit 250aaefb
edit: Or possibly vercmp...
$ vercmp 18.0-2 18.0.1-1
-1
$ vercmp /var/cache/pacman/pkg/firefox-18.0-2-x86_64.pkg.tar.xz /var/cache/pacman/pkg/firefox-18.0.1-1-x86_64.pkg.tar.xz
1
$ vercmp firefox-18.0-2-x86_64.pkg.tar.xz firefox-18.0.1-1-x86_64.pkg.tar.xz
1
$ vercmp 18.0-2-x86_64.pkg.tar.xz 18.0.1-1-x86_64.pkg.tar.xz
1
$ vercmp 18.0-2-x86_64 18.0.1-1-x86_64
1
https://mailman.archlinux.org/pipermail/pacman-dev/2013-January/016291.html
https://mailman.archlinux.org/pipermail/pacman-dev/2013-January/016292.html