* Fixed a pacman warning when these fake packages didn't create an (empty)

.FILELIST
This commit is contained in:
Aaron Griffin 2007-02-27 08:32:52 +00:00
parent 67ff30b869
commit 512ccbd042

View File

@ -156,8 +156,7 @@ def makepkg(self, path):
# .INSTALL
empty = 1
for value in self.install.values():
if value:
if len(self.install.values()) > 0:
empty = 0
if not empty:
mkinstallfile(".INSTALL", self.install)
@ -166,6 +165,10 @@ def makepkg(self, path):
# .FILELIST
if self.files:
os.system("tar cvf /dev/null * | sort >.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