* Fixed a pacman warning when these fake packages didn't create an (empty)
.FILELIST
This commit is contained in:
parent
67ff30b869
commit
512ccbd042
1 changed files with 7 additions and 4 deletions
|
@ -156,9 +156,8 @@ class pmpkg:
|
||||||
|
|
||||||
# .INSTALL
|
# .INSTALL
|
||||||
empty = 1
|
empty = 1
|
||||||
for value in self.install.values():
|
if len(self.install.values()) > 0:
|
||||||
if value:
|
empty = 0
|
||||||
empty = 0
|
|
||||||
if not empty:
|
if not empty:
|
||||||
mkinstallfile(".INSTALL", self.install)
|
mkinstallfile(".INSTALL", self.install)
|
||||||
targets += " .INSTALL"
|
targets += " .INSTALL"
|
||||||
|
@ -166,7 +165,11 @@ class pmpkg:
|
||||||
# .FILELIST
|
# .FILELIST
|
||||||
if self.files:
|
if self.files:
|
||||||
os.system("tar cvf /dev/null * | sort >.FILELIST")
|
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
|
# Generate package archive
|
||||||
os.system("tar zcf %s %s" % (archive, targets))
|
os.system("tar zcf %s %s" % (archive, targets))
|
||||||
|
|
Loading…
Add table
Reference in a new issue