Skip to content

Commit

Permalink
Adjust ppc64le<->ppc64el between bazel and debian
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <[email protected]>
  • Loading branch information
dims committed Oct 20, 2020
1 parent a3bc5c8 commit 11739c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package_manager/dpkg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@
def main():
""" A tool for downloading debian packages and package metadata """
args = parser.parse_args()

# golang/bazel use "ppc64le" https://golang.org/doc/install/source#introduction
# unfortunately debian uses "ppc64el" https://wiki.debian.org/ppc64el
if args.arch == "ppc64le":
args.arch = "ppc64el"
if args.packages_gz_url and 'ppc64le' in args.packages_gz_url:
args.packages_gz_url = args.packages_gz_url.replace("ppc64le", "ppc64el")

if args.download_and_extract_only:
download_package_list(args.mirror_url,args.distro, args.arch, args.snapshot, args.sha256,
args.packages_gz_url, args.package_prefix)
Expand Down

0 comments on commit 11739c8

Please sign in to comment.