diff options
author | Dan McGee <dan@archlinux.org> | 2010-10-05 11:15:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-05 11:15:56 -0500 |
commit | bef19a266bf5d80b68cab02f6a3ccc3fcedbec6d (patch) | |
tree | e5a25721239bd6dd92dcca0e0922529e9c188f91 /test/pacman/pmpkg.py | |
parent | c0f58ea9a22c64e42b6784663ceb7272565428f5 (diff) | |
parent | 283ef6519aa20b8c63c9b916573b5f243ff7be2e (diff) |
Merge branch 'maint'
Diffstat (limited to 'test/pacman/pmpkg.py')
-rwxr-xr-x | test/pacman/pmpkg.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py index 48d79a35..1d55175e 100755 --- a/test/pacman/pmpkg.py +++ b/test/pacman/pmpkg.py @@ -164,14 +164,8 @@ class pmpkg: # Generate package archive tar = tarfile.open(self.path, "w:gz") - - # package files - 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) |