From 85256ed31e67655530dc26a4a036bfda963e9722 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 17 Oct 2011 08:53:29 -0700 Subject: [PATCH] UpdateChangeLog: use struct_passwd attributes --- pym/repoman/utilities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py index e0687491a..588ca8d82 100644 --- a/pym/repoman/utilities.py +++ b/pym/repoman/utilities.py @@ -538,9 +538,9 @@ def UpdateChangeLog(pkgdir, category, package, new, removed, changed, msg, prete elif 'ECHANGELOG_USER' in os.environ: user = os.environ['ECHANGELOG_USER'] else: - (login, _, _, _, gecos, _, _) = pwd.getpwuid(os.getuid()) - gecos = gecos.split(',')[0] # bug #80011 - user = '%s <%s@gentoo.org>' % (gecos, login) + pwd_struct = pwd.getpwuid(os.getuid()) + gecos = pwd_struct.pw_gecos.split(',')[0] # bug #80011 + user = '%s <%s@gentoo.org>' % (gecos, pwd_struct.pw_name) if '