Set Atom.use = None when there are no USE deps (instead of the empty
authorZac Medico <zmedico@gentoo.org>
Tue, 27 May 2008 05:45:48 +0000 (05:45 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 May 2008 05:45:48 +0000 (05:45 -0000)
tuple returned from dep_getusedeps()).

svn path=/main/trunk/; revision=10447

pym/portage/dep.py

index a98979969574e685c2826b9f6a2a474619794c39..993c23bdd220442544ac56b92dfb85dad31c4227 100644 (file)
@@ -409,6 +409,8 @@ class Atom(str):
                self.use = dep_getusedeps(s)
                if self.use:
                        self.use = _use_dep(self.use)
+               else:
+                       self.use = None
 
 def get_operator(mydep):
        """