[pacman-dev] CVS update of pacman-lib/pactest (pmpkg.py)
Aaron Griffin
aaron at archlinux.org
Tue Feb 27 03:32:52 EST 2007
Date: Tuesday, February 27, 2007 @ 03:32:52
Author: aaron
Path: /home/cvs-pacman/pacman-lib/pactest
Modified: pmpkg.py (1.2 -> 1.3)
* Fixed a pacman warning when these fake packages didn't create an (empty)
.FILELIST
----------+
pmpkg.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
Index: pacman-lib/pactest/pmpkg.py
diff -u pacman-lib/pactest/pmpkg.py:1.2 pacman-lib/pactest/pmpkg.py:1.3
--- pacman-lib/pactest/pmpkg.py:1.2 Wed Feb 21 01:33:13 2007
+++ pacman-lib/pactest/pmpkg.py Tue Feb 27 03:32:52 2007
@@ -156,9 +156,8 @@
# .INSTALL
empty = 1
- for value in self.install.values():
- if value:
- empty = 0
+ if len(self.install.values()) > 0:
+ empty = 0
if not empty:
mkinstallfile(".INSTALL", self.install)
targets += " .INSTALL"
@@ -166,7 +165,11 @@
# .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 *"
# Generate package archive
os.system("tar zcf %s %s" % (archive, targets))
More information about the pacman-dev
mailing list