Only warn about missing map files with debug

This is a very typical warning, lets only print it out when we have
debug turned on.

Change-Id: I93c5be5e328305ac3515b4d983835add05cadf8f
This commit is contained in:
Gregory Haynes 2015-07-22 22:36:33 +00:00
parent d748aa17d2
commit 1a1dd59e33

View file

@ -63,7 +63,8 @@ def main():
map_file = '/usr/share/pkg-map/%s' % args.element
if not os.path.exists(map_file):
eprint('Map file for %s element does not exist.' % args.element)
if os.environ.get('DIB_DEBUG_TRACE') != '0':
eprint('Map file for %s element does not exist.' % args.element)
if args.missing_ok:
for name in extra:
print(name)