mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -05:00
01930400a5
This is the bash case when the /etc/profile file was removed by error from the package, but stayed in the backup array. Ref: http://www.archlinux.org/pipermail/arch-dev-public/2007-December/003556.html Also fixed a little typo in add.c, but it's disabled code. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
18 lines
484 B
Python
18 lines
484 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")
|