Ensure that soft_dep is a plain boolean (not vardb match results).
authorZac Medico <zmedico@gentoo.org>
Fri, 22 Sep 2006 23:57:01 +0000 (23:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 22 Sep 2006 23:57:01 +0000 (23:57 -0000)
svn path=/main/trunk/; revision=4507

bin/emerge

index 71a471660e224cb3d00ac3665510a620f98765bc..a5f43a196785f2a9f7c503d3069060df82037d74 100755 (executable)
@@ -1221,7 +1221,7 @@ class depgraph:
 
                        if myparent:
                                #we are a dependency, so we want to be unconditionally added
-                               soft_dep = soft_deps or vardb.match(x)
+                               soft_dep = bool(soft_deps or vardb.match(x))
                                if not self.create(selected_pkg[0:3], myparent,
                                        myuse=selected_pkg[-1], soft_dep=soft_dep,
                                        rev_dep=rev_deps, arg=arg):