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:
Gregory Haynes 2015-12-19 23:50:15 +00:00
parent 3a110bf96f
commit 6def86562a

View File

@ -63,7 +63,7 @@ def main():
map_file = '/usr/share/pkg-map/%s' % args.element map_file = '/usr/share/pkg-map/%s' % args.element
if not os.path.exists(map_file): 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) eprint('Map file for %s element does not exist.' % args.element)
if args.missing_ok: if args.missing_ok:
for name in extra: for name in extra: