[pacman-dev] CVS update of pacman-lib/pactest (pmpkg.py)
Dan McGee
dan at archlinux.org
Tue Feb 27 11:25:03 EST 2007
Date: Tuesday, February 27, 2007 @ 11:25:03
Author: dan
Path: /home/cvs-pacman/pacman-lib/pactest
Modified: pmpkg.py (1.3 -> 1.4)
* Prevent this error when creating empty packages.
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
----------+
pmpkg.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: pacman-lib/pactest/pmpkg.py
diff -u pacman-lib/pactest/pmpkg.py:1.3 pacman-lib/pactest/pmpkg.py:1.4
--- pacman-lib/pactest/pmpkg.py:1.3 Tue Feb 27 03:32:52 2007
+++ pacman-lib/pactest/pmpkg.py Tue Feb 27 11:25:01 2007
@@ -165,11 +165,12 @@
# .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))
More information about the pacman-dev
mailing list