2014-10-06 04:09:10 -04:00
|
|
|
self.description = "pacman-db-upgrade DB version 9 (symlink support removal)"
|
|
|
|
|
|
|
|
self.filesystem = [ "mnt_real/subdir/", "mnt -> mnt_real/subdir/", "bar -> ./" ]
|
|
|
|
|
|
|
|
fpkg = pmpkg("filesystem")
|
|
|
|
fpkg.files = ["mnt_real/", "mnt/", "mnt/foo", "bar/", "bar/baz"]
|
|
|
|
fpkg.backup = ["mnt/foo"]
|
|
|
|
|
|
|
|
self.addpkg2db("local", fpkg)
|
|
|
|
self.dbver = 8
|
|
|
|
|
2014-10-23 02:54:50 -04:00
|
|
|
self.cmd = ["pacman-db-upgrade",
|
|
|
|
"--root", self.rootdir(),
|
|
|
|
"--dbpath", self.dbdir(),
|
|
|
|
"--config", self.configfile() ]
|
2014-10-06 04:09:10 -04:00
|
|
|
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
2014-10-23 02:54:50 -04:00
|
|
|
self.addrule("FILE_EXIST=var/lib/pacman/local/ALPM_DB_VERSION")
|
2014-10-06 04:09:10 -04:00
|
|
|
self.addrule("PKG_BACKUP=filesystem|mnt_real/subdir/foo")
|
|
|
|
self.addrule("PKG_FILES=filesystem|mnt_real/")
|
|
|
|
self.addrule("PKG_FILES=filesystem|mnt_real/subdir/")
|
|
|
|
self.addrule("PKG_FILES=filesystem|mnt_real/subdir/foo")
|
|
|
|
self.addrule("PKG_FILES=filesystem|baz")
|
|
|
|
self.addrule("!PKG_FILES=filesystem|mnt/")
|
|
|
|
self.addrule("!PKG_FILES=filesystem|bar/")
|