diff options
author | Dan McGee <dan@archlinux.org> | 2007-02-27 16:25:01 +0000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-02-27 16:25:01 +0000 |
commit | 7f086a4c5c5c3ce5707181a1b29a49e2e4e4353a (patch) | |
tree | cb52040946524bfc608cfb5ebb72214a29764c88 | |
parent | 6673d188b949effa40b9206919cc50a37863c32d (diff) |
* Prevent this error when creating empty packages.
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
-rwxr-xr-x | pactest/pmpkg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pactest/pmpkg.py b/pactest/pmpkg.py index cd12717a..b4c30c55 100755 --- a/pactest/pmpkg.py +++ b/pactest/pmpkg.py @@ -165,11 +165,12 @@ class pmpkg: # .FILELIST if self.files: os.system("tar cvf /dev/null * | sort >.FILELIST") + targets += " .FILELIST *" else: #prevent some pacman warnings... I expect a real package would #always have at least one file... os.system("touch .FILELIST") - targets += " .FILELIST *" + targets += " .FILELIST" # Generate package archive os.system("tar zcf %s %s" % (archive, targets)) |