aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--noRMS-apk.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/noRMS-apk.py b/noRMS-apk.py
index 425b225..a3039c3 100644
--- a/noRMS-apk.py
+++ b/noRMS-apk.py
@@ -56,9 +56,11 @@ for package in all_packages.splitlines():
rms_count = 0
-for origin in origins:
- info_webpage = subprocess.check_output(['apk', 'info', '-w', origin], text=True)
- webpage = info_webpage.splitlines()[1]
+origin_keys = list(origins.keys())
+info_output = subprocess.check_output(['apk', 'info', '-w', *origin_keys], text=True)
+info_pieces = info_output.split('\n\n')
+for origin, info in zip(origin_keys, info_pieces):
+ webpage = info.splitlines()[1]
parsed_url = urllib.parse.urlparse(webpage)
host = parsed_url.netloc
if verbose >= 1: