Fix test for libudev1

The test for libudev1/libudev0 fails when an sdk has installed
a dependency on libudev1, which will go away on recompile, on
a system with only libudev0.  The dependency created an empty
virtual package that passes the "show" test, but cannot be installed.

BUG=243398
TEST=local

Review URL: https://chromiumcodereview.appspot.com/15911004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202021 0039d316-1c4b-4281-b951-d872f2087c98
parent 7e6c77b1
......@@ -140,7 +140,7 @@ if apt-cache show libjpeg-dev >/dev/null 2>&1; then
else
dev_list="${dev_list} libjpeg62-dev"
fi
if apt-cache show libudev1 >/dev/null 2>&1; then
if [ "$(apt-cache pkgnames libudev1 2>&1)" == "libudev1" ] ; then
dev_list="${dev_list} libudev1"
else
dev_list="${dev_list} libudev0"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment