index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-10-26 22:55:31 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-22 11:19:21 -0600 |
commit | 32727efc38bf5376a402c4c4149cc4148ba2068b (patch) | |
tree | ebbe400b78b4431ca197ee9c49541178ac4dc066 /test/pacman/pmtest.py | |
parent | 5699f2c94c39afec19810fc450b78dced86e7c5d (diff) |
-rwxr-xr-x | test/pacman/pmtest.py | 12 |
diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py index 716b920a..31517a9a 100755 --- a/test/pacman/pmtest.py +++ b/test/pacman/pmtest.py @@ -166,10 +166,18 @@ class pmtest: vprint(" Populating file system") for pkg in self.db["local"].pkgs: vprint("\tinstalling %s" % pkg.fullname()) - pkg.install_files(self.root) + for f in pkg.files: + vprint("\t%s" % f) + path = os.path.join(self.root, f) + util.mkfile(path, f) + if os.path.isfile(path): + os.utime(path, (355, 355)) for f in self.filesystem: vprint("\t%s" % f) - util.mkfile(os.path.join(self.root, f), f) + path = os.path.join(self.root, f) + util.mkfile(path, f) + if os.path.isfile(path): + os.utime(path, (355, 355)) # Done. vprint(" Taking a snapshot of the file system") |