From 92a14eab591f9aaface4104c40eef3850181a316 Mon Sep 17 00:00:00 2001 From: Dag Odenhall Date: Thu, 31 May 2007 00:18:37 +0200 Subject: Check if pkgdir exists in create_package Signed-off-by: Dag Odenhall Signed-off-by: Andrew Fyfe Signed-off-by: Dan McGee --- scripts/makepkg.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/makepkg.in b/scripts/makepkg.in index e6a099e5..badceac5 100644 --- a/scripts/makepkg.in +++ b/scripts/makepkg.in @@ -502,6 +502,11 @@ tidy_install() { } create_package() { + if [ ! -d "$pkgdir" ]; then + error "$(gettext "Missing pkg/ directory, aborting...")" + exit 1 # $E_MISSING_PKGDIR # TODO: error code + fi + cd "$startdir"/pkg msg "$(gettext "Creating package...")" -- cgit v1.2.3-70-g09d2