From 11739c809fd10cc5e1665a99697ad6b54d770de9 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 20 Oct 2020 11:36:13 -0400 Subject: [PATCH] Adjust ppc64le<->ppc64el between bazel and debian Signed-off-by: Davanum Srinivas --- package_manager/dpkg_parser.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package_manager/dpkg_parser.py b/package_manager/dpkg_parser.py index 6d7f1df27..ab9eebf3a 100644 --- a/package_manager/dpkg_parser.py +++ b/package_manager/dpkg_parser.py @@ -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)