Makepkg missing check for empty pkgname

I thought it was wierd that makepkg didn't do a sanity check for the
$pkgname.  This makes for a simple first try at a GIT patch.

Signed-off-by: K. Piche <kevin@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
K. Piche 2007-12-22 18:58:49 -05:00 committed by Dan McGee
parent 14d6832ef2
commit c84feb92db
1 changed files with 4 additions and 0 deletions

View File

@ -1288,6 +1288,10 @@ fi
source "$BUILDSCRIPT"
# check for no-no's in the build script
if [ -z "$pkgname" ]; then
error "$(gettext "%s is not allowed to be empty.")" "pkgname"
exit 1
fi
if [ -z "$pkgver" ]; then
error "$(gettext "%s is not allowed to be empty.")" "pkgver"
exit 1