From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-commits+bounces-415021-garchives=archives.gentoo.org@lists.gentoo.org>) id 1Rj4yO-0006LN-GZ for garchives@archives.gentoo.org; Fri, 06 Jan 2012 08:16:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4762521C02F; Fri, 6 Jan 2012 08:16:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1266421C02F for <gentoo-commits@lists.gentoo.org>; Fri, 6 Jan 2012 08:16:15 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D83C1B4011 for <gentoo-commits@lists.gentoo.org>; Fri, 6 Jan 2012 08:16:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A937E80042 for <gentoo-commits@lists.gentoo.org>; Fri, 6 Jan 2012 08:16:14 +0000 (UTC) From: "Brian Dolbec" <brian.dolbec@gmail.com> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" <brian.dolbec@gmail.com> Message-ID: <77fd9c78984df218d33520c6dce7a8a0c630c456.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/overlays/ X-VCS-Repository: proj/layman X-VCS-Files: layman/overlays/git.py X-VCS-Directories: layman/overlays/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 77fd9c78984df218d33520c6dce7a8a0c630c456 Date: Fri, 6 Jan 2012 08:16:14 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: bb1b9520-7313-4835-81c7-9531ecb39afd X-Archives-Hash: 413fefcbddbb1ecefa70d38b2a092b16 commit: 77fd9c78984df218d33520c6dce7a8a0c630c456 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Fri Jan 6 08:14:20 2012 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Fri Jan 6 08:14:20 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D77fd9c78 Add cwd=3Dbase to git's add() run_command function call. This fixes Bug= 396643 in selinux and newer git. --- layman/overlays/git.py | 5 ++++- 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=3Dself.type), + # adding cwd=3Dbase 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=3Dself.type, cwd=3D= base), cwd=3Dtarget) =20 def sync(self, base):