From 2ea08cb4eda5cb00f2825435a16f47cea5b12636 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 8 Sep 2008 07:07:25 +0000 Subject: [PATCH] unsupported operand type(s) for |: 'bool' and 'NoneType' --- pisi/operations/upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/operations/upgrade.py b/pisi/operations/upgrade.py index c7b49dc3..a7b754d2 100644 --- a/pisi/operations/upgrade.py +++ b/pisi/operations/upgrade.py @@ -76,7 +76,7 @@ def upgrade_pkg_names(A = []): if not pisi.util.any(lambda i:i.type == 'security', updates): continue - if pisi.util.any(lambda x:x.requires and "reverseDependencyUpdate" in x.requires.action, updates): + if pisi.util.any(lambda x:x.requires != None and "reverseDependencyUpdate" in x.requires.action, updates): Ap.extend(map(lambda d:d.package, packagedb.get_rev_deps(x))) if ignore_build or (not build) or (not pkg.build):