summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjhbuild_patches_collect10
1 files changed, 6 insertions, 4 deletions
diff --git a/jhbuild_patches_collect b/jhbuild_patches_collect
index f24a6c4..a473482 100755
--- a/jhbuild_patches_collect
+++ b/jhbuild_patches_collect
@@ -10,10 +10,11 @@ LIST=`jhbuild -f jhbuildrc list`
for i in $LIST ; do
D=`jhbuild -f jhbuildrc run --in-checkoutdir="$i" -- bash -c 'pwd' 2>/dev/null`
- D=`echo $D | tr '\n' ' ' `
- D=${D%% *}
-# echo "$i: $D"
- if [ "$D" != "$M" ] ; then
+ if [ $? == 0 ] ; then
+ D=`echo $D | tr '\n' ' ' `
+ D=${D%% *}
+# echo "$i: $D"
+ if [ "$D" != "$M" ] ; then
cd $D
if [ -e ".git" ]; then
git diff --quiet --ignore-submodules || (echo "$i: dirty" && exit 1 ) || exit 1
@@ -24,5 +25,6 @@ for i in $LIST ; do
mv $p $O/$i-`basename $p`
done
fi
+ fi
fi
done