[crux-devel] [PATCH] Do not attempt to build a package if the resulting file can't be written.

Antti Nykanen aon at iki.fi
Sat May 9 21:12:03 UTC 2009


---
 pkgmk.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pkgmk.in b/pkgmk.in
index 9fdf768..de50c95 100755
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -350,6 +350,11 @@ remove_work_dir() {
 
 build_package() {
 	local BUILD_SUCCESSFUL="no"
+
+	if [ ! -w "$TARGET" ]; then
+		error "'$TARGET' is not writable."
+		exit 1
+	fi
 	
 	make_work_dir
 
-- 
1.6.2.4




More information about the crux-devel mailing list