summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.in5
1 files changed, 5 insertions, 0 deletions
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...")"