* Prevent this error when creating empty packages.
tar: *: Cannot stat: No such file or directory tar: Error exit delayed from previous errors
This commit is contained in:
parent
6673d188b9
commit
7f086a4c5c
1 changed files with 2 additions and 1 deletions
|
@ -165,11 +165,12 @@ 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:
|
else:
|
||||||
#prevent some pacman warnings... I expect a real package would
|
#prevent some pacman warnings... I expect a real package would
|
||||||
#always have at least one file...
|
#always have at least one file...
|
||||||
os.system("touch .FILELIST")
|
os.system("touch .FILELIST")
|
||||||
targets += " .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