From 3286ec72d932ebdc0b62afc51fd27f1a1366814e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 7 Apr 2021 20:43:56 +0800 Subject: [PATCH] scripts/build_utils.sh: no need to update repo if ppa repo is not used Signed-off-by: Kefu Chai --- scripts/build_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 2b98ffdb..48d07f84 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -605,7 +605,6 @@ setup_pbuilder() { opts+=" --mirror $mirror" opts+=" --hookdir $hookdir" - setup_updates_repo $hookdir if [ -n "$use_gcc" ]; then # Newer pbuilder versions set $HOME to /nonexistent which breaks all kinds of # things that rely on a proper (writable) path. Setting this to the system user's $HOME is not enough @@ -617,6 +616,7 @@ setup_pbuilder() { # in newer versions. This ticket solves the specific issue in 8.1.1 (which vendors urllib3): # https://github.com/shazow/urllib3/issues/567 echo "USENETWORK=yes" >> ~/.pbuilderrc + setup_updates_repo $hookdir setup_pbuilder_for_ppa $hookdir fi sudo cp ~/.pbuilderrc /root/.pbuilderrc -- 2.39.5