From 77fd9c78984df218d33520c6dce7a8a0c630c456 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Fri, 6 Jan 2012 00:14:20 -0800 Subject: Add cwd=base to git's add() run_command function call. This fixes Bug 396643 in selinux and newer git. --- layman/overlays/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layman/overlays/git.py b/layman/overlays/git.py index 3cdc21e..308c81f 100644 --- a/layman/overlays/git.py +++ b/layman/overlays/git.py @@ -68,7 +68,10 @@ class GitOverlay(OverlaySource): args.append(fix_git_source(self.src)) args.append(target) return self.postsync( - self.run_command(self.command(), args, cmd=self.type), + # adding cwd=base due to a new git bug in selinux due to + # not having user_home_dir_t and portage_fetch_t permissions + # but changing dir works around it. + self.run_command(self.command(), args, cmd=self.type, cwd=base), cwd=target) def sync(self, base): -- cgit v1.2.3-1-g7c22