From 328ee333bd985079c4bffad2119540596f808147 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 22 Nov 2006 14:07:57 +0000 Subject: [PATCH] Use portage_data.lchown for compatibility. svn path=/main/trunk/; revision=5119 --- pym/portage_util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.26.2