summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-10-11 01:05:03 +0200
committerDan McGee <dan@archlinux.org>2010-10-11 10:06:57 -0500
commit67068b64b9da96a0122591ede25c50ab307a1612 (patch)
tree709ec2c90b573d5c6823327cc72d4b54bcffbb24
parent73442a7e035a7b7f8ed80261226989ae87edd3a9 (diff)
pactest: use simpler method to create tar
Just like in 24fc623e1a8bf905cf0367f9bd40bc5bd6034378, apply to pmdb gensync as well. Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-xtest/pacman/pmdb.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py
index 41bd7384..11083db0 100755
--- a/test/pacman/pmdb.py
+++ b/test/pacman/pmdb.py
@@ -346,11 +346,8 @@ class pmdb:
mkdir(path)
archive = os.path.join(path, "%s.db" % (self.treename))
tar = tarfile.open(archive, "w:gz")
- for root, dirs, files in os.walk('.'):
- for d in dirs:
- tar.add(os.path.join(root, d), recursive=False)
- for f in files:
- tar.add(os.path.join(root, f))
+ for i in os.listdir("."):
+ tar.add(i)
tar.close()
os.chdir(curdir)