mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
makepkg: do not create hg working directory on checkout
Creating the working directory can waste a lot of space. Fixes FS#31221. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
03ea8ca6a9
commit
800799ea63
@ -477,7 +477,7 @@ download_hg() {
|
||||
|
||||
if [[ ! -d "$dir" ]]; then
|
||||
msg2 "$(gettext "Cloning %s %s repo...")" "${repo}" "hg"
|
||||
if ! hg clone "$url" "$dir"; then
|
||||
if ! hg clone -U "$url" "$dir"; then
|
||||
error "$(gettext "Failure while downloading %s %s repo")" "${repo}" "hg"
|
||||
plain "$(gettext "Aborting...")"
|
||||
exit 1
|
||||
@ -485,7 +485,7 @@ download_hg() {
|
||||
elif (( ! HOLDVER )); then
|
||||
msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "hg"
|
||||
cd_safe "$dir"
|
||||
if ! hg pull -u; then
|
||||
if ! hg pull; then
|
||||
# only warn on failure to allow offline builds
|
||||
warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "hg"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user