aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-02-16 08:10:22 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-02-16 08:12:20 +0000
commit39edd663808378c5500c5d1e0b8fe7b771b74741 (patch)
tree10480af86c05115edb5478a5f04ec3f8e69cd77f /dist
parent466f952a65bd421433d8f7ddde6bdca0bf47d0ce (diff)
Require file to be patched to be writable.
If not write an error message.
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