Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2520)

Unified Diff: build/install-build-deps.sh

Issue 15741015: Change detection method for checking package name changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps.sh
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh
index 756186d49dee1630bbe0b9da5866545d7b792e7e..2ab60d7e97a6342905dae1e0fc69c34edd7c086d 100755
--- a/build/install-build-deps.sh
+++ b/build/install-build-deps.sh
@@ -123,24 +123,28 @@ arm_list="libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross
# Some package names have changed over time
-if apt-cache show ttf-mscorefonts-installer >/dev/null 2>&1; then
+if ! ( apt-cache policy ttf-mscorefonts-installer
+ | grep "Candidate: (none)" >/dev/null 2>&1 ); then
Lambros 2013/05/28 18:26:58 I don't know if this will work for non-English loc
dev_list="${dev_list} ttf-mscorefonts-installer"
else
dev_list="${dev_list} msttcorefonts"
fi
-if apt-cache show libnspr4-dbg >/dev/null 2>&1; then
+if ! ( apt-cache policy libnspr4-dbg
+ | grep "Candidate: (none)" >/dev/null 2>&1 ); then
dbg_list="${dbg_list} libnspr4-dbg libnss3-dbg"
lib_list="${lib_list} libnspr4 libnss3"
else
dbg_list="${dbg_list} libnspr4-0d-dbg libnss3-1d-dbg"
lib_list="${lib_list} libnspr4-0d libnss3-1d"
fi
-if apt-cache show libjpeg-dev >/dev/null 2>&1; then
+if ! ( apt-cache policy libjpeg-dev
+ | grep "Candidate: (none)" >/dev/null 2>&1 ); then
dev_list="${dev_list} libjpeg-dev"
else
dev_list="${dev_list} libjpeg62-dev"
fi
-if apt-cache show libudev1 >/dev/null 2>&1; then
+if ! ( apt-cache policy libudev1
+ | grep "Candidate: (none)" >/dev/null 2>&1 ); then
dev_list="${dev_list} libudev1"
else
dev_list="${dev_list} libudev0"
@@ -149,7 +153,8 @@ fi
# Some packages are only needed, if the distribution actually supports
# installing them.
-if apt-cache show appmenu-gtk >/dev/null 2>&1; then
+if ! ( apt-cache policy appmenu-gtk
+ | grep "Candidate: (none)" >/dev/null 2>&1 ); then
lib_list="$lib_list appmenu-gtk"
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698