[tor-commits] [tor-messenger-build/master] instantbird: remove failure when there is no *.mozpatch file

boklm at torproject.org boklm at torproject.org
Sat Nov 22 13:51:12 UTC 2014


commit add2f1e655ad3405a78d5764090038aecbe41fea
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Sat Nov 22 14:50:09 2014 +0100

    instantbird: remove failure when there is no *.mozpatch file
---
 projects/instantbird/build |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/projects/instantbird/build b/projects/instantbird/build
index b3d8531..4233a88 100644
--- a/projects/instantbird/build
+++ b/projects/instantbird/build
@@ -38,10 +38,13 @@ do
   patch -p1 < $patch
 done
 cd mozilla
-for patch in $(ls -1 $rootdir/*.mozpatch | sort)
-do
-  patch -p1 < $patch
-done
+if ls -1 $rootdir/*.mozpatch > /dev/null 2>&1
+then
+    for patch in $(ls -1 $rootdir/*.mozpatch | sort)
+    do
+        patch -p1 < $patch
+    done
+fi
 cd ..
 cp ../[% c('input_files_by_name/mozconfig') %] .mozconfig
 ./mozilla/mach build || ./mozilla/mach build



More information about the tor-commits mailing list