Define userpriv_groups earlier in order to avoid an AttributeError from
authorZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 21:59:41 +0000 (21:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 21:59:41 +0000 (21:59 -0000)
lazy import code. Thanks to antarus for reporting.

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

pym/portage/data.py

index c30a3688a3e61c848f48fd79a4f194af3a81de2a..9ec3bc9243a27dbb44cb1899e5ebb198aaa2e227 100644 (file)
@@ -84,6 +84,7 @@ try:
 except KeyError:
        portage_uid=0
        portage_gid=0
+       userpriv_groups = [portage_gid]
        writemsg(colorize("BAD",
                _("portage: 'portage' user or group missing.")) + "\n", noiselevel=-1)
        writemsg(_(