aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2017-12-23 12:35:51 +0100
committerkensington <kensington@gentoo.org>2017-12-23 23:08:39 +1100
commit8c00651b04c42f741abbffed11ca7a21fd0cb4db (patch)
treee9a3889438c0c5d1680c0b0e3566aa148fe3672b
parentfix endless loop with invalid use flags (diff)
downloadtatt-8c00651b04c42f741abbffed11ca7a21fd0cb4db.tar.gz
tatt-8c00651b04c42f741abbffed11ca7a21fd0cb4db.tar.bz2
tatt-8c00651b04c42f741abbffed11ca7a21fd0cb4db.zip
stop processing if no packages are left
-rwxr-xr-xscripts/tatt4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/tatt b/scripts/tatt
index a1190a0..967b294 100755
--- a/scripts/tatt
+++ b/scripts/tatt
@@ -208,6 +208,10 @@ if myJob.packageList is not None and len(myJob.packageList) > 0:
except ValueError:
filteredPackages.append(p)
+ if len(filteredPackages) == 0:
+ print("\nno packages left")
+ sys.exit(0)
+
myJob.packageList = filteredPackages
# Unmasking: