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#22653 - CleanMethod Bug

Attached to Project: Pacman
Opened by x33a (x33a) - Saturday, 29 January 2011, 07:47 GMT
Last edited by Allan McRae (Allan) - Sunday, 30 January 2011, 13:13 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 3.4.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info: Hello, i would like the developers to look into the current behaviour of the CleanMethod option of pacman.conf.

I have CleanMethod = KeepInstalled

The issue at hand is that i have some packages added to IgnorePkg, and pacman -Sc cleans the currently installed version of the packages from the pacman cache, if there is an update available in the repository.

For e.g.

I have vlc 1.1.5-2 installed currently and have added vlc to IgnorePkg. The latest version of vlc is 1.1.6-1.
pacman -Sc cleaned vlc-1.1.5-2-i686.pkg.tar.xz, and so i have no installer package available if i need to re-install vlc.

Steps to Reproduce:

Add a package to IgnorePkg, wait for an update to appear in the repositories. Now try pacman -Sc. This should delete the package from the cache.
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 30 January 2011, 13:13 GMT
Reason for closing:  Works for me
Comment by Dan McGee (toofishes) - Saturday, 29 January 2011, 17:15 GMT
This doesn't make any sense- I can't reproduce it at all. We don't even consider ignored packages as part of the equation here, and when using KeepInstalled, we don't look at the sync databases at all.

I was able to hack pactest to be able to verify this; I will try to clean that up enough to include it. However, this report seems a tad iffy- are you absolutely positive it was pacman that removed it? Do you use a shared cache? We need some more details. The test case is attached I used for this, although it needs the pactest modifications as noted to actually run, but if someone could verify it is testing this case that would be great.
Comment by x33a (x33a) - Sunday, 30 January 2011, 06:03 GMT
I don't use a shared cache, and i didn't remove the files manually. I run pacman -Sc on a regular basis though. And only the files added to IgnorePkg and the ones from aur, are missing from the cache. I wonder what else could be the cause.

EDIT: Damn, i am an idiot. I just remembered that a few months ago i had changed CleanMethod = KeepCurrent, but reverted back after some time. Now i probably ran pacman -Sc during that period, and that lead to the deletion of the packages from the cache. Sorry for the false alarm, please discard this ticket.
Comment by Allan McRae (Allan) - Sunday, 30 January 2011, 13:12 GMT
As an FYI, Dan provided a patch allowing both KeepCurrent and KeepInstalled to be specified so that you can have the best of both worlds with the next pacman release:
http://mailman.archlinux.org/pipermail/pacman-dev/2011-January/012320.html

Loading...