changeset 30:b15022ae484a

Fix isProductOrphan
author Benoît Allard <benoit.allard@greenbone.net>
date Mon, 27 Oct 2014 12:29:37 +0100
parents e3ee542a89be
children 1ea1a3c3c790
files farolluz/document.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/farolluz/document.py	Mon Oct 27 11:48:42 2014 +0100
+++ b/farolluz/document.py	Mon Oct 27 12:29:37 2014 +0100
@@ -291,9 +291,9 @@
 
     def isProductOrphan(self, productid):
         """ Returns if a productid is mentioned nowhere in the document """
-        for item in self.mentionsProductId(productid):
-            return True
-        return False
+        for _ in self.mentionsProductId(productid):
+            return False
+        return True
 
     def changeProductID(self, old, new):
         for item in self.mentionsProductId(old):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)