makepkg: do not retrieve sources if NOEXTRACT or REPKG set
Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <Andrew Fyfe andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
90a307bfa3
commit
2ef1c8416f
1 changed files with 38 additions and 34 deletions
|
@ -997,6 +997,9 @@ cd "$startdir"
|
||||||
mkdir -p src
|
mkdir -p src
|
||||||
cd "$srcdir"
|
cd "$srcdir"
|
||||||
|
|
||||||
|
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
||||||
|
warning "$(gettext "Skipping source retrieval -- using existing src/ tree")"
|
||||||
|
else
|
||||||
msg "$(gettext "Retrieving Sources...")"
|
msg "$(gettext "Retrieving Sources...")"
|
||||||
for netfile in ${source[@]}; do
|
for netfile in ${source[@]}; do
|
||||||
file=$(strip_url "$netfile")
|
file=$(strip_url "$netfile")
|
||||||
|
@ -1034,6 +1037,7 @@ for netfile in ${source[@]}; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
unset netfile file dlclient ret
|
unset netfile file dlclient ret
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
||||||
warning "$(gettext "Skipping source integrity checks -- using existing src/ tree")"
|
warning "$(gettext "Skipping source integrity checks -- using existing src/ tree")"
|
||||||
|
|
Loading…
Add table
Reference in a new issue