Define userpriv_groups earlier in order to avoid an AttributeError from
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 18:23:08 +0000 (18:23 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 18:23:08 +0000 (18:23 -0000)
lazy import code. Thanks to antarus for reporting. (trunk r15277)

svn path=/main/branches/2.1.7/; revision=15516

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(_(