From 6def86562a120be0b1445499153fc3dcb5ae3565 Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Sat, 19 Dec 2015 23:50:15 +0000 Subject: [PATCH] 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 --- elements/pkg-map/bin/pkg-map | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/pkg-map/bin/pkg-map b/elements/pkg-map/bin/pkg-map index 422661559..009f474d4 100755 --- a/elements/pkg-map/bin/pkg-map +++ b/elements/pkg-map/bin/pkg-map @@ -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: