summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-03-03 18:31:15 +0000
committerAlec Warner <antarus@gentoo.org>2007-03-03 18:31:15 +0000
commit8cbf3ae4eb70be11052245d4111dfa0febe54405 (patch)
treecb4eb5ac53709141bb79081e06fe631f25f40a0a
parent7248742b2944f18e81cfb7de1bd088d5fdad3fe3 (diff)
downloadportage-8cbf3ae4eb70be11052245d4111dfa0febe54405.tar.gz
portage-8cbf3ae4eb70be11052245d4111dfa0febe54405.tar.bz2
portage-8cbf3ae4eb70be11052245d4111dfa0febe54405.zip
make sure uid is an int
svn path=/main/trunk/; revision=6155
-rw-r--r--pym/portage/news.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/news.py b/pym/portage/news.py
index 0f8c16da6..6cac55fee 100644
--- a/pym/portage/news.py
+++ b/pym/portage/news.py
@@ -58,7 +58,7 @@ class NewsManager(object):
if os.path.exists(timestamp_file):
# Make sure the timestamp has correct permissions.
apply_permissions( filename=timestamp_file,
- uid=self.config["PORTAGE_INST_UID"], gid=portage_gid, mode=664 )
+ uid=int(self.config["PORTAGE_INST_UID"]), gid=portage_gid, mode=664 )
timestamp = os.stat(timestamp_file).st_mtime
else:
timestamp = 0
@@ -96,7 +96,7 @@ class NewsManager(object):
open( path, "w" )
# Ensure correct perms on the unread file.
apply_permissions( filename=path,
- uid=self.config["PORTAGE_INST_UID"], gid=portage_gid, mode=664 )
+ uid=int(self.config["PORTAGE_INST_UID"]), gid=portage_gid, mode=664 )
# Make sure we have the correct permissions when created
unread_file = open( path, "a" )