diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/pacman/pmdb.py | 7 |
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) |