summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-11-22 14:07:57 +0000
committerZac Medico <zmedico@gentoo.org>2006-11-22 14:07:57 +0000
commit328ee333bd985079c4bffad2119540596f808147 (patch)
treee6fa7d81589fcc5a4e485069049d48f16538505e
parentf361d47a0095736c3a8b099fa3dec60a342be9fe (diff)
downloadportage-328ee333bd985079c4bffad2119540596f808147.tar.gz
portage-328ee333bd985079c4bffad2119540596f808147.tar.bz2
portage-328ee333bd985079c4bffad2119540596f808147.zip
Use portage_data.lchown for compatibility.
svn path=/main/trunk/; revision=5119
-rw-r--r--pym/portage_util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py
index baae9544e..1b6adc202 100644
--- a/pym/portage_util.py
+++ b/pym/portage_util.py
@@ -523,7 +523,8 @@ def apply_permissions(filename, uid=-1, gid=-1, mode=-1, mask=-1,
if follow_links:
os.chown(filename, uid, gid)
else:
- os.lchown(filename, uid, gid)
+ import portage_data
+ portage_data.lchown(filename, uid, gid)
modified = True
except OSError, oe:
func_call = "chown('%s', %i, %i)" % (filename, uid, gid)