makepkg: do not run prepare() and pkgver() with --repackage
Bug introduced with commit 8454daa7
.
Reported-by: Zuyi Hu <hzy068808@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
765e29b67c
commit
47ea63ff3b
|
@ -2192,9 +2192,10 @@ mkdir -p "$srcdir"
|
||||||
chmod a-s "$srcdir"
|
chmod a-s "$srcdir"
|
||||||
cd_safe "$srcdir"
|
cd_safe "$srcdir"
|
||||||
|
|
||||||
|
if (( !REPKG )); then
|
||||||
if (( NOEXTRACT && ! VERIFYSOURCE )); then
|
if (( NOEXTRACT && ! VERIFYSOURCE )); then
|
||||||
warning "$(gettext "Using existing %s tree")" "\$srcdir/"
|
warning "$(gettext "Using existing %s tree")" "\$srcdir/"
|
||||||
elif (( !REPKG )); then
|
else
|
||||||
download_sources
|
download_sources
|
||||||
check_source_integrity
|
check_source_integrity
|
||||||
(( VERIFYSOURCE )) && exit 0 # $E_OK
|
(( VERIFYSOURCE )) && exit 0 # $E_OK
|
||||||
|
@ -2215,6 +2216,7 @@ fi
|
||||||
if (( PREPAREFUNC )); then
|
if (( PREPAREFUNC )); then
|
||||||
run_prepare
|
run_prepare
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if (( NOBUILD )); then
|
if (( NOBUILD )); then
|
||||||
msg "$(gettext "Sources are ready.")"
|
msg "$(gettext "Sources are ready.")"
|
||||||
|
|
Loading…
Reference in New Issue