FS#37631 - [pacsort] wants to delete the wrong package file when an epoq is added

Attached to Project: Pacman
Opened by Baeyens (berbae) - Monday, 04 November 2013, 11:02 GMT
Last edited by Allan McRae (Allan) - Thursday, 27 November 2014, 01:14 GMT
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.2
Due in Version 4.2.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After this upgrade:

[2013-10-24 23:17] [PACMAN] upgraded dialog (1.2_20131001-1 -> 1:1.2_20130928-1)

I get:

paccache -d -k1 -vv
==> Candidate packages:
/home/berbae/tmp/cache/dialog-1:1.2_20130928-1-x86_64.pkg.tar.xz

==> finished dry run: 1 candidates (diskspace saved: 189.11 KiB)

paccache wants to delete the new package file with the epoq added, instead the one without the epoq.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 27 November 2014, 01:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit 04bc3a24ebe
Comment by Dave Reisner (falconindy) - Monday, 04 November 2013, 13:56 GMT
$ printf '%s\n' /mnt/Haven/packages/dialog-*.pkg.tar.xz | pacsort --files
/mnt/Haven/packages/dialog-1:1.2_20130928-1-x86_64.pkg.tar.xz
/mnt/Haven/packages/dialog-1.2_20121230-1-x86_64.pkg.tar.xz
/mnt/Haven/packages/dialog-1.2_20130523-1-x86_64.pkg.tar.xz
/mnt/Haven/packages/dialog-1.2_20130523-2-x86_64.pkg.tar.xz
/mnt/Haven/packages/dialog-1.2_20130902-1-x86_64.pkg.tar.xz
/mnt/Haven/packages/dialog-1.2_20130923-1-x86_64.pkg.tar.xz
/mnt/Haven/packages/dialog-1.2_20130928-1-x86_64.pkg.tar.xz
/mnt/Haven/packages/dialog-1.2_20131001-1-x86_64.pkg.tar.xz

This is why paccache misbehaves.
Comment by Dave Reisner (falconindy) - Monday, 04 November 2013, 19:30 GMT Comment by Allan McRae (Allan) - Monday, 17 November 2014, 07:24 GMT
Dave: can you please update that patch following the comments that were given?

https://lists.archlinux.org/pipermail/pacman-dev/2013-November/018164.html

Loading...