From a2a3985f8eaf755c5fafd5996c04996bedfb5507 Mon Sep 17 00:00:00 2001
From: Christian Goetze <cg@lindenlab.com>
Date: Wed, 21 May 2008 23:59:49 +0000
Subject: [PATCH] add --no-run-if-empty to xargs call to avoid packing error
 for devs

---
 indra/newview/viewer_manifest.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index f0497d25749..5d3658b96c4 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -471,11 +471,11 @@ def package_finish(self):
 
                 # 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
-- 
GitLab