index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <chantry.xavier@gmail.com> | 2010-10-11 01:05:03 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-11 10:06:57 -0500 |
commit | 67068b64b9da96a0122591ede25c50ab307a1612 (patch) | |
tree | 709ec2c90b573d5c6823327cc72d4b54bcffbb24 /test | |
parent | 73442a7e035a7b7f8ed80261226989ae87edd3a9 (diff) |
-rwxr-xr-x | test/pacman/pmdb.py | 7 |
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) |