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:
parent
73442a7e03
commit
67068b64b9
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue