summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rw-r--r--dist/vespa.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec
index 55ac76f85d3..ed13105cba7 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -411,7 +411,12 @@ then
then
:
else
- patch $file_to_patch < dist/patch.stl_vector.h.diff
+ if test -w $file_to_patch
+ then
+ patch $file_to_patch < dist/patch.stl_vector.h.diff
+ else
+ echo "Failed patching $file_to_patch since it is not writable for me"
+ fi
fi
fi