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>
This commit is contained in:
Xavier Chantry 2010-10-11 01:05:03 +02:00 committed by Dan McGee
parent 73442a7e03
commit 67068b64b9

View file

@ -346,11 +346,8 @@ class pmdb:
mkdir(path) mkdir(path)
archive = os.path.join(path, "%s.db" % (self.treename)) archive = os.path.join(path, "%s.db" % (self.treename))
tar = tarfile.open(archive, "w:gz") tar = tarfile.open(archive, "w:gz")
for root, dirs, files in os.walk('.'): for i in os.listdir("."):
for d in dirs: tar.add(i)
tar.add(os.path.join(root, d), recursive=False)
for f in files:
tar.add(os.path.join(root, f))
tar.close() tar.close()
os.chdir(curdir) os.chdir(curdir)