Update the renode nightly download entry
Match the behavior from https://spacebeaker-review.googlesource.com/c/shodan/scripts/+/27250
and download the latest nightly from the first entry of the query.
Change-Id: I625cdb448f1f5dbf0a91e5508c775f2afef4ef37
diff --git a/download_renode.py b/download_renode.py
index 30f51bd..6f9108e 100755
--- a/download_renode.py
+++ b/download_renode.py
@@ -100,10 +100,10 @@
"(.+?).linux-portable.tar.gz", file).group(1)
break
else:
- # The latest release is the symlink of the second entry.
+ # The latest nightly release is the symlink of the first entry.
release_found = True
- release_name = re.search(
- "(.+?).linux-portable.tar.gz", files[1]).group(1)
+ release_name = re.search("(.+?).linux-portable.tar.gz",
+ files[0]).group(1)
if not release_found:
print(f"!!!!!Renode can't be found with release {args.release_name}, "