summaryrefslogtreecommitdiff
path: root/scripts/makepkg.in
diff options
context:
space:
mode:
authorDag Odenhall <dag.odenhall@gmail.com>2007-05-31 00:18:37 +0200
committerDan McGee <dan@archlinux.org>2007-05-30 23:52:22 -0400
commit92a14eab591f9aaface4104c40eef3850181a316 (patch)
treedccc23c659ea58863210448dbc6b3ac673c6636d /scripts/makepkg.in
parent6b776c82e7a195386bb5dc3fa1b057471fdbc492 (diff)
downloadpacman-92a14eab591f9aaface4104c40eef3850181a316.tar.xz
Check if pkgdir exists in create_package
Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.in')
-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...")"