diff options
| -rwxr-xr-x | packaging/macosx/osx-build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packaging/macosx/osx-build.sh b/packaging/macosx/osx-build.sh index b82b038c8..8c759b6e1 100755 --- a/packaging/macosx/osx-build.sh +++ b/packaging/macosx/osx-build.sh @@ -262,7 +262,14 @@ function getinkscapeinfo () { if [[ "$BZRUPDATE" == "t" ]] then cd $SRCROOT - bzr pull + if [ -z "$(bzr info | grep "checkout")" ]; then + echo "repo is unbound (branch)" + update_cmd="bzr pull" + else + echo "repo is bound (checkout)" + update_cmd="bzr update" + fi + $update_cmd status=$? if [[ $status -ne 0 ]]; then echo -e "\nBZR update failed" |
