summaryrefslogtreecommitdiffstats
path: root/test/pacman/pmpkg.py
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-10-17 02:28:29 +0200
committerAllan McRae <allan@archlinux.org>2015-10-18 02:59:23 +0200
commit4ceb1c5bf91dea2453d9b888138c40e4f97d408d (patch)
treecf0d661dce4c54bdd1e096d91026db6e8e46718b /test/pacman/pmpkg.py
parent60ebee7a6e1984f14ea3f88159c28fa9b99d7f5c (diff)
downloadpacman-4ceb1c5bf91dea2453d9b888138c40e4f97d408d.tar.gz
pacman-4ceb1c5bf91dea2453d9b888138c40e4f97d408d.tar.xz
util.py: return the created path
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/pacman/pmpkg.py')
-rw-r--r--test/pacman/pmpkg.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py
index 31336610..9033dc61 100644
--- a/test/pacman/pmpkg.py
+++ b/test/pacman/pmpkg.py
@@ -174,8 +174,7 @@ class pmpkg(object):
def install_package(self, root):
"""Install the package in the given root."""
for f in self.files:
- util.mkfile(root, f, f)
- path = os.path.join(root, f)
+ path = util.mkfile(root, f, f)
if os.path.isfile(path):
os.utime(path, (355, 355))