summaryrefslogtreecommitdiff
path: root/scripts/cros_extract_deps.py
diff options
context:
space:
mode:
authorRalph Nathan <ralphnathan@chromium.org>2015-03-23 14:44:56 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-26 01:13:36 +0000
commit446aee9554af42bf2ba4cff5750b30963b4c9048 (patch)
tree6b3be469ff5599b73cfc796d24602e7a6205ea5e /scripts/cros_extract_deps.py
parent1a0a3c3845ffe4ea850ceaf73c4d1caa77f66fd8 (diff)
downloadchromite-446aee9554af42bf2ba4cff5750b30963b4c9048.tar.gz
logging: Use cros_logging instead of cros_build_lib.Warning
In chromite, replace all calls to cros_build_lib.Warning with calls to cros_logging.warning. BUG=brillo:600 TEST=unittests + trybot Change-Id: Ie57935e214449890671fff9ade50e672fc43b2c1 Reviewed-on: https://chromium-review.googlesource.com/262070 Reviewed-by: David Pursell <dpursell@chromium.org> Tested-by: Ralph Nathan <ralphnathan@chromium.org> Commit-Queue: Ralph Nathan <ralphnathan@chromium.org> Trybot-Ready: Ralph Nathan <ralphnathan@chromium.org>
Diffstat (limited to 'scripts/cros_extract_deps.py')
-rw-r--r--scripts/cros_extract_deps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cros_extract_deps.py b/scripts/cros_extract_deps.py
index e67ba5ded..c4a4a998e 100644
--- a/scripts/cros_extract_deps.py
+++ b/scripts/cros_extract_deps.py
@@ -13,7 +13,7 @@ from parallel_emerge import DepGraphGenerator
from chromite.lib import commandline
from chromite.lib import cros_build_lib
-
+from chromite.lib import cros_logging as logging
def FlattenDepTree(deptree, pkgtable=None, parentcpv=None, get_cpe=False):
"""Simplify dependency json.
@@ -148,7 +148,7 @@ def ExtractCPEList(deps_list):
'Repository': 'cros',
'Targets': sorted(record['cpes'])})
else:
- cros_build_lib.Warning('No CPE entry for %s', cpv)
+ logging.warning('No CPE entry for %s', cpv)
return sorted(cpe_dump, key=lambda k: k['ComponentName'])