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,8 +997,11 @@ cd "$startdir"
|
|||
mkdir -p src
|
||||
cd "$srcdir"
|
||||
|
||||
msg "$(gettext "Retrieving Sources...")"
|
||||
for netfile in ${source[@]}; do
|
||||
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
||||
warning "$(gettext "Skipping source retrieval -- using existing src/ tree")"
|
||||
else
|
||||
msg "$(gettext "Retrieving Sources...")"
|
||||
for netfile in ${source[@]}; do
|
||||
file=$(strip_url "$netfile")
|
||||
if [ -f "../$file" ]; then
|
||||
msg2 "$(gettext "Found %s in build dir")" "$file"
|
||||
|
@ -1032,8 +1035,9 @@ for netfile in ${source[@]}; do
|
|||
else
|
||||
cp "$file" ..
|
||||
fi
|
||||
done
|
||||
unset netfile file dlclient ret
|
||||
done
|
||||
unset netfile file dlclient ret
|
||||
fi
|
||||
|
||||
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
||||
warning "$(gettext "Skipping source integrity checks -- using existing src/ tree")"
|
||||
|
|
Loading…
Add table
Reference in a new issue