Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/pmpkg.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-02-27 16:25:01 +0000
committerDan McGee <dan@archlinux.org>2007-02-27 16:25:01 +0000
commit7f086a4c5c5c3ce5707181a1b29a49e2e4e4353a (patch)
treecb52040946524bfc608cfb5ebb72214a29764c88 /pactest/pmpkg.py
parent6673d188b949effa40b9206919cc50a37863c32d (diff)
* 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/pmpkg.py')
-rwxr-xr-xpactest/pmpkg.py3
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))