From db6d9e0714a417bba24045c05c4a9096a00b9106 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 30 Mar 2021 23:06:43 +0800 Subject: [PATCH] scripts/build_utils: write settings to /root/.pbuilderrc according to pbuilder(8) > ${HOME}/.pbuilderrc > The personal configuration file for pbuilder, which overrides settings set in other configuration files. > > Note that ${HOME} is usually /root (if you are running pbuilder through sudo). since we always call `pbuilder` via `sudo`, we should overwrite /root/.pbuilderrc with $HOME/.pbuilderrc. Signed-off-by: Kefu Chai --- scripts/build_utils.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index f742110e..7dbfe1d0 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -570,6 +570,7 @@ setup_pbuilder() { echo "USENETWORK=yes" >> ~/.pbuilderrc setup_pbuilder_for_ppa >> ~/.pbuilderrc fi + sudo cp ~/.pbuilderrc /root/.pbuilderrc sudo pbuilder clean if [ -e $basedir/$DIST.tgz ]; then -- 2.47.3