fix typo and missing classmethod declaration
authorMarius Mauch <genone@gentoo.org>
Fri, 9 Nov 2007 16:35:05 +0000 (16:35 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 9 Nov 2007 16:35:05 +0000 (16:35 -0000)
svn path=/main/trunk/; revision=8481

pym/portage/sets/shell.py

index 286ad31da04bcbe761a66cd5de23c49e279a59da..ba1b2422fffeaccf9cde8b7f8aed860931b6a615 100644 (file)
@@ -38,6 +38,7 @@ class CommandOutputSet(PackageSet):
                        self._setAtoms(text.split("\n"))
                
        def singleBuilder(self, options, settings, trees):
-               if not command in options:
+               if not "command" in options:
                        raise SetConfigError("no command specified")
                return CommandOutputSet(options["command"])
+       singleBuilder = classmethod(singleBuilder)