diff options
author | Dan McGee <dan@archlinux.org> | 2007-02-27 17:25:01 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-02-27 17:25:01 +0100 |
commit | 7f086a4c5c5c3ce5707181a1b29a49e2e4e4353a (patch) | |
tree | cb52040946524bfc608cfb5ebb72214a29764c88 /pactest | |
parent | 6673d188b949effa40b9206919cc50a37863c32d (diff) | |
download | pacman-7f086a4c5c5c3ce5707181a1b29a49e2e4e4353a.tar.gz pacman-7f086a4c5c5c3ce5707181a1b29a49e2e4e4353a.tar.xz |
* Prevent this error when creating empty packages.
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Diffstat (limited to 'pactest')
-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)) |