Index: build/install-build-deps.sh |
diff --git a/build/install-build-deps.sh b/build/install-build-deps.sh |
index d1d844a47f2cd0ce58c5abd7d688d48b40965ad8..cded4529c41be1d28447396e4531afe878f05d4b 100755 |
--- a/build/install-build-deps.sh |
+++ b/build/install-build-deps.sh |
@@ -304,9 +304,11 @@ else |
nacl_list= |
fi |
+# The `sort -r -s -t: -k2` sorts all the :i386 packages to the front, to avoid |
+# confusing dpkg-query (crbug.com/446172). |
packages="$( |
echo "${dev_list} ${lib_list} ${dbg_list} ${lib32_list} ${arm_list}"\ |
- "${nacl_list}" | tr " " "\n" | sort -u | tr "\n" " " |
+ "${nacl_list}" | tr " " "\n" | sort -u | sort -r -s -t: -k2 | tr "\n" " " |
)" |
if [ 1 -eq "${do_quick_check-0}" ] ; then |