From: Zac Medico Date: Wed, 22 Nov 2006 14:07:57 +0000 (-0000) Subject: Use portage_data.lchown for compatibility. X-Git-Tag: v2.1.2~430 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=328ee333bd985079c4bffad2119540596f808147;p=portage.git Use portage_data.lchown for compatibility. svn path=/main/trunk/; revision=5119 --- 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)