summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-21 11:38:48 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-21 11:38:48 +0100
commit42197d1f0f313f3608b8656662347d00885e6b5c (patch)
treec8bedc4a205732a3c18804ab13f5e963cd92ae81 /misc-scripts/make-sourceball
parente5539fc65872aa98d510a03d1e20c207ca6ed058 (diff)
downloaddbscripts-42197d1f0f313f3608b8656662347d00885e6b5c.tar.gz
dbscripts-42197d1f0f313f3608b8656662347d00885e6b5c.tar.xz
sourceballs: check if PKGBUILD exists
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index bdf5f59..66d3dad 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -22,7 +22,7 @@ arch="$3"
script_lock
create_srcpackage() {
- if [ -d "$1" ]; then
+ if [ -f "$1/PKGBUILD" ]; then
pushd "$1" >/dev/null
pkgver=$(. PKGBUILD; echo ${pkgver})
if [ $? -ne 0 ]; then
@@ -62,6 +62,8 @@ create_srcpackage() {
popd >/dev/null
return 0
+ else
+ error "PKGBUILD not found in $1"
fi
}