mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-16 06:15:08 -05:00
601a85082d
This was the case of the bash packaging error where a file was removed from the package but not the backup array. I just added a sanity check so that only the files from the backup array that are also in the filelist are used. I had to edit upgrade026 pactest slightly : it required the file to be copied to .pacsave instead of moved. But just moving it should be enough, as we agreed on the ML : http://www.archlinux.org/pipermail/pacman-dev/2007-December/010440.html Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
18 lines
485 B
Python
18 lines
485 B
Python
self.description = "Upgrade a package, with a file leaving the pkg but staying in 'backup'"
|
|
|
|
lp = pmpkg("dummy")
|
|
lp.files = ["etc/dummy.conf*"]
|
|
lp.backup = ["etc/dummy.conf"]
|
|
self.addpkg2db("local", lp)
|
|
|
|
p = pmpkg("dummy", "1.0-2")
|
|
p.backup = ["etc/dummy.conf"]
|
|
self.addpkg(p)
|
|
|
|
self.args = "-U %s" % p.filename()
|
|
|
|
self.addrule("PKG_VERSION=dummy|1.0-2")
|
|
self.addrule("FILE_PACSAVE=etc/dummy.conf")
|
|
self.addrule("!FILE_PACNEW=etc/dummy.conf")
|
|
self.addrule("!FILE_EXIST=etc/dummy.conf")
|