1 self
.description
= "Backup file relocation (reverse order)"
4 lp1
.files
= ["etc/profile*"]
5 lp1
.backup
= ["etc/profile"]
6 self
.addpkg2db("local", lp1
)
8 p1
= pmpkg("bash", "1.0-2")
9 p1
.depends
= [ "filesystem" ]
12 lp2
= pmpkg("filesystem")
13 self
.addpkg2db("local", lp2
)
15 p2
= pmpkg("filesystem", "1.0-2")
16 p2
.files
= ["etc/profile**"]
17 p2
.backup
= ["etc/profile"]
20 self
.args
= "-U %s" % " ".join([p
.filename() for p
in p1
, p2
])
22 self
.filesystem
= ["etc/profile"]
24 self
.addrule("PACMAN_RETCODE=0")
25 self
.addrule("PKG_VERSION=bash|1.0-2")
26 self
.addrule("PKG_VERSION=filesystem|1.0-2")
27 self
.addrule("!FILE_PACSAVE=etc/profile")
28 self
.addrule("FILE_PACNEW=etc/profile")
29 self
.addrule("FILE_EXIST=etc/profile")