aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2018-06-08 17:25:34 +0200
committerRolf Eike Beer <eike@sf-mail.de>2018-06-08 17:25:34 +0200
commit79491bc6433f4ac69751ecd267d71de443fae830 (patch)
tree5ae1a347526a8df51180f5b0e523ccf9bd3428d6
parentwrite commitscript also without bug number (diff)
downloadtatt-79491bc6433f4ac69751ecd267d71de443fae830.tar.gz
tatt-79491bc6433f4ac69751ecd267d71de443fae830.tar.bz2
tatt-79491bc6433f4ac69751ecd267d71de443fae830.zip
ignore empty lines in package list
-rw-r--r--tatt/packageFinder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tatt/packageFinder.py b/tatt/packageFinder.py
index c1d7bd0..13c36e5 100644
--- a/tatt/packageFinder.py
+++ b/tatt/packageFinder.py
@@ -10,6 +10,8 @@ def findPackages (s, arch):
packages = []
for line in s.splitlines():
+ if not line:
+ continue
atom, _, arches = line.partition(' ')
if not arches or arch in arches.split(' '):
packages.append(gP(atom))