From 332c54bf2bd8b7638a59a62628b37584737da069 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Tue, 7 Mar 2006 14:24:07 +0000 Subject: [PATCH] root_uid is a string, use int() for comparing it with uid. svn path=/main/branches/prefix/; revision=2822 --- pym/portage_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage_data.py b/pym/portage_data.py index ea8eacf46..269c70033 100644 --- a/pym/portage_data.py +++ b/pym/portage_data.py @@ -49,7 +49,7 @@ uid=os.getuid() wheelgid=portage_const.wheelgid wheelgroup=portage_const.wheelgroup -if uid==0 or uid==portage_const.rootuid: +if uid==0 or uid==int(portage_const.rootuid): secpass=2 try: wheelgid=grp.getgrnam(wheelgroup)[2] -- 2.26.2