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

View File

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