aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2012-01-06 00:14:20 -0800
committerBrian Dolbec <dolsen@gentoo.org>2012-01-06 00:14:20 -0800
commit77fd9c78984df218d33520c6dce7a8a0c630c456 (patch)
tree98c2f94a6e2ec2cc43b3d0d9901120b3d30b1245
parentimprove the usage to include an example of multiple actions. (diff)
downloadlayman-77fd9c78984df218d33520c6dce7a8a0c630c456.tar.gz
layman-77fd9c78984df218d33520c6dce7a8a0c630c456.tar.bz2
layman-77fd9c78984df218d33520c6dce7a8a0c630c456.zip
Add cwd=base to git's add() run_command function call. This fixes Bug 396643 in selinux and newer git.
-rw-r--r--layman/overlays/git.py5
1 files changed, 4 insertions, 1 deletions
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):