We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fa4457 commit e224894Copy full SHA for e224894
1 file changed
tools/buildutils/build_package.sh
@@ -53,9 +53,17 @@ while getopts ":r:c:" opt; do
53
esac
54
done
55
56
+preserve_envvar=""
57
+if [ -n "$http_proxy" ]; then
58
+ preserve_envvar="-e http_proxy=${http_proxy}"
59
+fi
60
+if [ -n "$https_proxy" ]; then
61
+ preserve_envvar+=" -e https_proxy=${https_proxy}"
62
63
+
64
pushd "${PKGDIR}"
65
echo "Installing package dependencies"
66
sudo mk-build-deps -i -t 'apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
67
echo "Building packages"
-debuild ${remote_cache_arg} ${cache_version_arg} --prepend-path /usr/local/bin -i -uc -us -b
68
+debuild ${remote_cache_arg} ${cache_version_arg} ${preserve_envvar} --prepend-path /usr/local/bin -i -uc -us -b
69
popd
0 commit comments