On Sun, May 10, 2009 at 12:12:03AM +0300, Antti Nykanen wrote: Hi Antti, thanks for the patch, but I think that it will not work as expected because we 'exit 1' too if $TARGET doesn't exist. Attached another attempt which covers the important points of ticket #360 [1] as well. Greetings Juergen [1] http://crux.nu/bugs/index.php?do=details&task_id=360
--- 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
_______________________________________________ crux-devel mailing list crux-devel@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux-devel
-- Juergen Daubert | mailto:jue@jue.li Korb, Germany | http://jue.li/crux