Use PORTAGE_USERNAME when populating userpriv_groups.
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Mar 2010 05:31:16 +0000 (22:31 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Mar 2010 05:31:16 +0000 (22:31 -0700)
pym/portage/data.py

index 6d19b6455bc26dfb2f3b049ed72594eae1d13cc9..ff23dbe001de381ee14e62a65bd37a2a36759e41 100644 (file)
@@ -106,7 +106,7 @@ else:
                        from subprocess import getstatusoutput
                except ImportError:
                        from commands import getstatusoutput
-               mystatus, myoutput = getstatusoutput("id -G portage")
+               mystatus, myoutput = getstatusoutput("id -G %s" % PORTAGE_USERNAME)
                if mystatus == os.EX_OK:
                        for x in myoutput.split():
                                try: