Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 02 May 2022 19:10:09
Message-Id: 1651518580.8a0fd695c886081083e2ed8dcd8ad2d876ef947d.flow@gentoo
1 commit: 8a0fd695c886081083e2ed8dcd8ad2d876ef947d
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 08:51:03 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 19:09:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a0fd695
7
8 ltprune.eclass: restrict find to regular files in example code
9
10 Akin to the (pending) change of the policy guide [1], adjust the example
11 code to restrict find to regular files.
12
13 1: https://github.com/gentoo/policy-guide/pull/24
14
15 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
16
17 eclass/ltprune.eclass | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20 diff --git a/eclass/ltprune.eclass b/eclass/ltprune.eclass
21 index e7d8cd2c4f92..5a36647d1d1c 100644
22 --- a/eclass/ltprune.eclass
23 +++ b/eclass/ltprune.eclass
24 @@ -1,4 +1,4 @@
25 -# Copyright 1999-2020 Gentoo Authors
26 +# Copyright 1999-2022 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 # @ECLASS: ltprune.eclass
30 @@ -12,7 +12,7 @@
31 #
32 # Discouraged. Whenever possible, please use much simpler:
33 # @CODE
34 -# find "${ED}" -name '*.la' -delete || die
35 +# find "${ED}" -type f -name '*.la' -delete || die
36 # @CODE
37
38 if [[ -z ${_LTPRUNE_ECLASS} ]]; then