Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version 4.0.3
Due in Version 4.1.0
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by Dave Reisner (falconindy) - Saturday, 19 January 2013, 13:20 GMT
More likely the bug is in pacsort, not paccache.

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
Comment by Dave Reisner (falconindy) - Saturday, 19 January 2013, 16:07 GMT

Loading...