aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-11-29 23:14:57 +0100
committerMichał Górny <mgorny@gentoo.org>2014-11-29 23:14:57 +0100
commit25fa36024a2df34362c4675db53c88603b187b10 (patch)
tree926caffe428d91028bc0aec4faaf3df1c9c42279
parentRevert "setup.py: Move sbin scripts in bin/" (diff)
downloadportage-25fa36024a2df34362c4675db53c88603b187b10.tar.gz
portage-25fa36024a2df34362c4675db53c88603b187b10.tar.bz2
portage-25fa36024a2df34362c4675db53c88603b187b10.zip
git sync: create repo directory with proper ownership
-rw-r--r--pym/portage/sync/controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/sync/controller.py b/pym/portage/sync/controller.py
index 02128426a..3d21d754b 100644
--- a/pym/portage/sync/controller.py
+++ b/pym/portage/sync/controller.py
@@ -185,7 +185,8 @@ class SyncManager(object):
st = None
if st is None:
writemsg_level(">>> '%s' not found, creating it." % repo.location)
- portage.util.ensure_dirs(repo.location, mode=0o755)
+ portage.util.ensure_dirs(repo.location, mode=0o755,
+ uid=self.sync_user_pw.uid, gid=self.sync_user_pw.gid)
st = os.stat(repo.location)
self.usersync_uid = None