Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: git-r3.eclass ChangeLog
Date: Wed, 04 Feb 2015 09:44:28
Message-Id: 20150204094424.81ACC11081@oystercatcher.gentoo.org
1 ulm 15/02/04 09:44:24
2
3 Modified: git-r3.eclass ChangeLog
4 Log:
5 Respect the EVCS_UMASK variable to override the default umask when writing to the repository.
6
7 Revision Changes Path
8 1.48 eclass/git-r3.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/git-r3.eclass?rev=1.48&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/git-r3.eclass?rev=1.48&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/git-r3.eclass?r1=1.47&r2=1.48
13
14 Index: git-r3.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v
17 retrieving revision 1.47
18 retrieving revision 1.48
19 diff -u -r1.47 -r1.48
20 --- git-r3.eclass 28 Jul 2014 14:13:50 -0000 1.47
21 +++ git-r3.eclass 4 Feb 2015 09:44:24 -0000 1.48
22 @@ -1,6 +1,6 @@
23 -# Copyright 1999-2014 Gentoo Foundation
24 +# Copyright 1999-2015 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.47 2014/07/28 14:13:50 mgorny Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/git-r3.eclass,v 1.48 2015/02/04 09:44:24 ulm Exp $
28
29 # @ECLASS: git-r3.eclass
30 # @MAINTAINER:
31 @@ -131,6 +131,17 @@
32 # @DESCRIPTION:
33 # If non-empty, this variable prevents any online operations.
34
35 +# @ECLASS-VARIABLE: EVCS_UMASK
36 +# @DEFAULT_UNSET
37 +# @DESCRIPTION:
38 +# Set this variable to a custom umask. This is intended to be set by
39 +# users. By setting this to something like 002, it can make life easier
40 +# for people who do development as non-root (but are in the portage
41 +# group), and then switch over to building with FEATURES=userpriv.
42 +# Or vice-versa. Shouldn't be a security issue here as anyone who has
43 +# portage group write access already can screw the system over in more
44 +# creative ways.
45 +
46 # @ECLASS-VARIABLE: EGIT_BRANCH
47 # @DEFAULT_UNSET
48 # @DESCRIPTION:
49 @@ -309,8 +320,16 @@
50
51 addwrite "${EGIT3_STORE_DIR}"
52 if [[ ! -d ${GIT_DIR} ]]; then
53 + local saved_umask
54 + if [[ ${EVCS_UMASK} ]]; then
55 + saved_umask=$(umask)
56 + umask "${EVCS_UMASK}" || die "Bad options to umask: ${EVCS_UMASK}"
57 + fi
58 mkdir "${GIT_DIR}" || die
59 git init --bare || die
60 + if [[ ${saved_umask} ]]; then
61 + umask "${saved_umask}" || die
62 + fi
63 fi
64 }
65
66 @@ -507,7 +526,11 @@
67 fi
68
69 # try to fetch from the remote
70 - local r success
71 + local r success saved_umask
72 + if [[ ${EVCS_UMASK} ]]; then
73 + saved_umask=$(umask)
74 + umask "${EVCS_UMASK}" || die "Bad options to umask: ${EVCS_UMASK}"
75 + fi
76 for r in "${repos[@]}"; do
77 einfo "Fetching ${r} ..."
78
79 @@ -668,6 +691,9 @@
80 break
81 fi
82 done
83 + if [[ ${saved_umask} ]]; then
84 + umask "${saved_umask}" || die
85 + fi
86 [[ ${success} ]] || die "Unable to fetch from any of EGIT_REPO_URI"
87
88 # submodules can reference commits in any branch
89
90
91
92 1.1521 eclass/ChangeLog
93
94 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1521&view=markup
95 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1521&content-type=text/plain
96 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1520&r2=1.1521
97
98 Index: ChangeLog
99 ===================================================================
100 RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
101 retrieving revision 1.1520
102 retrieving revision 1.1521
103 diff -u -r1.1520 -r1.1521
104 --- ChangeLog 1 Feb 2015 12:01:06 -0000 1.1520
105 +++ ChangeLog 4 Feb 2015 09:44:24 -0000 1.1521
106 @@ -1,6 +1,10 @@
107 # ChangeLog for eclass directory
108 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
109 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1520 2015/02/01 12:01:06 dilfridge Exp $
110 +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1521 2015/02/04 09:44:24 ulm Exp $
111 +
112 + 04 Feb 2015; Ulrich Müller <ulm@g.o> git-r3.eclass:
113 + Respect the EVCS_UMASK variable to override the default umask when writing
114 + to the repository.
115
116 01 Feb 2015; Andreas K. Huettel <dilfridge@g.o> perl-module.eclass:
117 Drop support for EAPI=4