mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
pmtest: install filesystem entries before packages
Installing filesystem entries first allows the filesystem to provide a symlink to a directory. Packages will then be able to use the symlink as if it were a directory instead of causing an error. For example: self.filesystem = ["dir/", "link -> dir/"] pkg = pmpkg("pkg1") pkg.files = ["link/file"] self.addpkg2db("local", pkg) Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
bc747fbfbf
commit
8803ae3b4d
@ -168,15 +168,15 @@ class pmtest(object):
|
||||
|
||||
# Filesystem
|
||||
vprint(" Populating file system")
|
||||
for pkg in self.db["local"].pkgs:
|
||||
vprint("\tinstalling %s" % pkg.fullname())
|
||||
pkg.install_package(self.root)
|
||||
for f in self.filesystem:
|
||||
vprint("\t%s" % f)
|
||||
util.mkfile(self.root, f, f)
|
||||
path = os.path.join(self.root, f)
|
||||
if os.path.isfile(path):
|
||||
os.utime(path, (355, 355))
|
||||
for pkg in self.db["local"].pkgs:
|
||||
vprint("\tinstalling %s" % pkg.fullname())
|
||||
pkg.install_package(self.root)
|
||||
|
||||
# Done.
|
||||
vprint(" Taking a snapshot of the file system")
|
||||
|
Loading…
Reference in New Issue
Block a user