1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

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>
This commit is contained in:
Dag Odenhall 2007-05-31 00:18:37 +02:00 committed by Dan McGee
parent 6b776c82e7
commit 92a14eab59

View File

@ -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...")"