Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Mon, 17 Sep 2018 18:18:24
Message-Id: 1537208238.ebe96286279fde6dfc989d03e5da834f0382d1a2.mgorny@gentoo
1 commit: ebe96286279fde6dfc989d03e5da834f0382d1a2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 28 12:18:20 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 17 18:17:18 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ebe96286
7
8 estrip: Use find -delete instead of manual rm
9
10 Reviewed-by: Zac Medico <zmedico <AT> gentoo.org>
11 Closes: https://github.com/gentoo/portage/pull/364
12
13 bin/estrip | 3 +--
14 1 file changed, 1 insertion(+), 2 deletions(-)
15
16 diff --git a/bin/estrip b/bin/estrip
17 index 5709b862c..3ee4b01ac 100755
18 --- a/bin/estrip
19 +++ b/bin/estrip
20 @@ -363,10 +363,9 @@ done < <(
21 )
22 else
23 while IFS= read -d '' -r x ; do
24 - rm -f "${x}" || die
25 inode_link=$(get_inode_number "${x%.estrip}") || die "stat failed unexpectedly"
26 echo "${x%.estrip}" >> "${inode_link}" || die "echo failed unexpectedly"
27 -done < <(find "${ED}" -name '*.estrip' -print0)
28 +done < <(find "${ED}" -name '*.estrip' -delete -print0)
29 fi
30
31 # Now we look for unstripped binaries.