add --no-run-if-empty to xargs call to avoid packing error for devs

meow-7.2.2
Christian Goetze 2008-05-21 23:59:49 +00:00
parent 2b863df7c8
commit a2a3985f8e
1 changed files with 5 additions and 5 deletions

View File

@ -471,11 +471,11 @@ class LinuxManifest(ViewerManifest):
# Fix access permissions
self.run_command("""
find %(dst)s -type d | xargs chmod 755;
find %(dst)s -type f -perm 0700 | xargs chmod 0755;
find %(dst)s -type f -perm 0500 | xargs chmod 0555;
find %(dst)s -type f -perm 0600 | xargs chmod 0644;
find %(dst)s -type f -perm 0400 | xargs chmod 0444;
find %(dst)s -type d | xargs --no-run-if-empty chmod 755;
find %(dst)s -type f -perm 0700 | xargs --no-run-if-empty chmod 0755;
find %(dst)s -type f -perm 0500 | xargs --no-run-if-empty chmod 0555;
find %(dst)s -type f -perm 0600 | xargs --no-run-if-empty chmod 0644;
find %(dst)s -type f -perm 0400 | xargs --no-run-if-empty chmod 0444;
true""" % {'dst':self.get_dst_prefix() })
# temporarily move directory tree so that it has the right name in the tarfile