From 7f086a4c5c5c3ce5707181a1b29a49e2e4e4353a Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 27 Feb 2007 16:25:01 +0000 Subject: * Prevent this error when creating empty packages. tar: *: Cannot stat: No such file or directory tar: Error exit delayed from previous errors --- pactest/pmpkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit v1.2.3-70-g09d2