Merge "Ignore stderr from pkg-map"

This commit is contained in:
Jenkins 2015-01-06 21:20:18 +00:00 committed by Gerrit Code Review
commit c597e99f4e

View File

@ -55,14 +55,14 @@ def main():
try:
map_output = subprocess.check_output(
pkg_map_args, stderr=subprocess.STDOUT)
pkg_map_args)
except subprocess.CalledProcessError as e:
if e.returncode == 1:
if args.noop:
pkgs.append(pkg)
continue
else:
print("pkg-map failed with error %s" % e.output)
print("pkg-map failed")
sys.exit(1)
elif e.returncode == 2:
pkgs.append(pkg)