Commit 812a46bf authored by Patti's avatar Patti Committed by Chromium LUCI CQ

Build Sheriff: Fix syntax error in calculate_package_deps.py.

Python2 used to support 0-prefixed integers for octals. Python3 removed
that in favor of the 0o prefix syntax. Fix the syntax error in
calculate_package_deps.py by switching out the 0 for a 0o.

Bug: 1163342
Change-Id: I84f181eb75c4ad75077ed898768eb37a12c51d65
TBR: thomasanderson@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2612244
Commit-Queue: Patti <patricialor@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Auto-Submit: Patti <patricialor@chromium.org>
Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Reviewed-by: default avatarThomas Anderson <thomasanderson@chromium.org>
Reviewed-by: default avatarPatti <patricialor@chromium.org>
Cr-Commit-Position: refs/heads/master@{#840398}
parent 3de46b66
...@@ -25,7 +25,7 @@ dep_filename = args.dep_filename ...@@ -25,7 +25,7 @@ dep_filename = args.dep_filename
bundled_shlibs = [os.path.basename(file) for file in args.shlibs] bundled_shlibs = [os.path.basename(file) for file in args.shlibs]
distro_check = args.distro_check distro_check = args.distro_check
if os.stat(binary).st_mode & 0111 == 0: if os.stat(binary).st_mode & 0o111 == 0:
print (('/usr/lib/rpm/elfdeps requires that binaries have an exectuable ' + print (('/usr/lib/rpm/elfdeps requires that binaries have an exectuable ' +
'bit set, but binary "%s" does not.') % os.path.basename(binary)) 'bit set, but binary "%s" does not.') % os.path.basename(binary))
sys.exit(1) sys.exit(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment