Don't print trace unless trace is on in pkg-map
The detection logic in pkg-map for DIB_DEBUG_TRACE assumes that this variable being unset means tracing is on, when in fact this means tracing is off. Change-Id: I584a634c57bbe03e26a6ee94cef473e634616885
This commit is contained in:
parent
3a110bf96f
commit
6def86562a
@ -63,7 +63,7 @@ def main():
|
||||
|
||||
map_file = '/usr/share/pkg-map/%s' % args.element
|
||||
if not os.path.exists(map_file):
|
||||
if os.environ.get('DIB_DEBUG_TRACE') != '0':
|
||||
if os.environ.get('DIB_DEBUG_TRACE', '0') != '0':
|
||||
eprint('Map file for %s element does not exist.' % args.element)
|
||||
if args.missing_ok:
|
||||
for name in extra:
|
||||
|
Loading…
Reference in New Issue
Block a user