Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH 3/3] eapply: Update default patch arguments
Date: Fri, 16 Oct 2015 10:12:48
Message-Id: 1444990336-16542-4-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCHES] EAPI 6 updates by "Michał Górny"
1 ---
2 bin/phase-helpers.sh | 5 ++++-
3 1 file changed, 4 insertions(+), 1 deletion(-)
4
5 diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
6 index 5be71fa..2fea0b2 100644
7 --- a/bin/phase-helpers.sh
8 +++ b/bin/phase-helpers.sh
9 @@ -990,7 +990,10 @@ if ___eapi_has_eapply; then
10 # -p1 as a sane default
11 # -f to avoid interactivity
12 # -s to silence progress output
13 - patch -p1 -f -s "${patch_options[@]}" < "${f}"
14 + # -g0 to guarantee no VCS interaction
15 + # --no-backup-if-mismatch not to pollute the sources
16 + patch -p1 -f -s -g0 --no-backup-if-mismatch \
17 + "${patch_options[@]}" < "${f}"
18 if ! eend ${?}; then
19 __helpers_die "patch -p1 ${patch_options[*]} failed with ${f}"
20 failed=1
21 --
22 2.6.1