Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-08-11 18:56:17 +1000
committerDan McGee <dan@archlinux.org>2012-09-18 08:38:08 -0500
commit85506809248c205f763df685fa5bda5c21c06eae (patch)
tree58fcf7f48579a04f2a208a1bf79e036640b7b8b0 /scripts
parentaa50df630c0ca572ff14e938b180ae46040f14a3 (diff)
makepkg: fix warnings with --noextract
Three warnings after someone deliberately typed --noextract is a tad excessive... Also, an empty $srcdir is perfectly valid when the source array is empty, although using --noextact then is wasteful. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in10
1 files changed, 1 insertions, 9 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 262bcf89..270f9888 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2699,15 +2699,7 @@ chmod a-s "$srcdir"
cd_safe "$srcdir"
if (( NOEXTRACT )); then
- warning "$(gettext "Skipping source retrieval -- using existing %s tree")" "src/"
- warning "$(gettext "Skipping source integrity checks -- using existing %s tree")" "src/"
- warning "$(gettext "Skipping source extraction -- using existing %s tree")" "src/"
-
- if (( NOEXTRACT )) && dir_is_empty "$srcdir"; then
- error "$(gettext "The source directory is empty, there is nothing to build!")"
- plain "$(gettext "Aborting...")"
- exit 1
- fi
+ warning "$(gettext "Using existing %s tree")" "src/"
elif (( REPKG )); then
if (( ! PKGFUNC && ! SPLITPKG )) \
&& { [[ ! -d $pkgdir ]] || dir_is_empty "$pkgdir"; }; then