From 5bb82074093a74bbaf09953b19c5b0229b13ea81 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 26 Mar 2022 01:35:06 +0100 Subject: [PATCH] Corretta sintassi per selezionare solo deb. --- loaih/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loaih/__init__.py b/loaih/__init__.py index a1f4d1b..c00b62c 100644 --- a/loaih/__init__.py +++ b/loaih/__init__.py @@ -96,7 +96,7 @@ class Build(object): continue contents = etree.HTML(urllib.request.urlopen(self.url[arch]).read()).xpath("//td/a") - self.tarballs[arch] = [ x.text for x in contents if x.text.endswith('tar.gz' and 'deb' in x.text) ] + self.tarballs[arch] = [ x.text for x in contents if x.text.endswith('tar.gz') and 'deb' in x.text ] tarballs = self.tarballs[arch] maintarball = tarballs[0]