[pacman-dev] backup handling

Xavier shiningxc at gmail.com
Wed Sep 19 12:00:38 EDT 2007

On Wed, Sep 19, 2007 at 10:50:35AM -0500, Aaron Griffin wrote:
> On 9/19/07, Dan McGee <dpmcgee at gmail.com> wrote:
> > What would seem smart to me:
> > 1. If file has been removed from backup array and no longer exists in
> > the package, save it as .pacold.
> And this is already done anyway - previous backup array vs new backup
> array is checked for files in the NEW backup array instead of the OLD.
> We could easily do the converse check for .pacold

Hmm, what? This is exactly the case of the current mirror list during 3.0.5-3
-> 3.0.5-4, and current is lost.
Also, do you mean pacold or pacsave?
I grepped both 3.0 and 3.1 for pacold, and couldn't find any references of
Attaching a pactest that should reproduce the problem.
-------------- next part --------------
self.description = "Upgrade a package, with a file leaving 'backup'"

lp = pmpkg("dummy")
lp.files = ["etc/dummy.conf*"]
lp.backup = ["etc/dummy.conf"]
self.addpkg2db("local", lp)

p = pmpkg("dummy", "1.0-2")

self.args = "-U %s" % p.filename()


More information about the pacman-dev mailing list