renode: Move query args outside of URL param The query arguments shouldn't actually be part of the URL we use to download from, since we're effectively using this as an API endpoint, and these are parameters. Change-Id: I56508cfcc088e3119cf9bffa4f1dc4f31c0e32ac
diff --git a/download_renode.py b/download_renode.py index d9bbb42..30f51bd 100755 --- a/download_renode.py +++ b/download_renode.py
@@ -74,7 +74,7 @@ parser.add_argument( "--release_url", action="store", - default="https://dl.antmicro.com/projects/renode/builds/?C=M;O=D", + default="https://dl.antmicro.com/projects/renode/builds/", help=("URL to check the IREE release." "(default: https://dl.antmicro.com/projects/renode/builds/)")) parser.add_argument( @@ -85,7 +85,7 @@ args = parser.parse_args() - with urllib.request.urlopen(args.release_url) as website: + with urllib.request.urlopen(args.release_url + '?C=M;O=D') as website: html_list = website.read().decode("utf-8") files = re.findall(r'href="(renode-.*git.*\.linux-portable\.tar\.gz)"', html_list)