Index: chrome/installer/linux/debian/build.sh |
diff --git a/chrome/installer/linux/debian/build.sh b/chrome/installer/linux/debian/build.sh |
index bf84089ec4b71129e502c709931b7b5be7045841..77bf7a99f199950e5aecdbd847b00677c8935aa9 100755 |
--- a/chrome/installer/linux/debian/build.sh |
+++ b/chrome/installer/linux/debian/build.sh |
@@ -236,8 +236,6 @@ fi |
eval $(sed -e "s/^\([^=]\+\)=\(.*\)$/export \1='\2'/" \ |
"${BUILDDIR}/installer/theme/BRANDING") |
-REPOCONFIG="deb http://dl.google.com/linux/chrome/deb/ stable main" |
-SSLREPOCONFIG="deb https://dl.google.com/linux/chrome/deb/ stable main" |
verify_channel |
# Some Debian packaging tools want these set. |
@@ -314,11 +312,9 @@ cd "${OUTPUTDIR}" |
case "$TARGETARCH" in |
ia32 ) |
export ARCHITECTURE="i386" |
- stage_install_debian |
;; |
x64 ) |
export ARCHITECTURE="amd64" |
- stage_install_debian |
;; |
* ) |
echo |
@@ -327,5 +323,14 @@ case "$TARGETARCH" in |
exit 1 |
;; |
esac |
+BASEREPOCONFIG="dl.google.com/linux/chrome/deb/ stable main" |
+# Only use the default REPOCONFIG if it's unset (e.g. verify_channel might have |
+# set it to an empty string) |
+REPOCONFIG="${REPOCONFIG-deb [arch=${ARCHITECTURE}] http://${BASEREPOCONFIG}}" |
+# Allowed configs include optional HTTPS support and explicit multiarch |
+# platforms. |
+REPOCONFIGREGEX="deb (\\\\[arch=[^]]*\\\\b${ARCHITECTURE}\\\\b[^]]*\\\\]" |
+REPOCONFIGREGEX+="[[:space:]]*)?https?://${BASEREPOCONFIG}" |
+stage_install_debian |
do_package |