1 |
Akin to the (pending) change of the policy guide [1], adjust the example |
2 |
code to restrict find to regular files. |
3 |
|
4 |
1: https://github.com/gentoo/policy-guide/pull/24 |
5 |
|
6 |
Signed-off-by: Florian Schmaus <flow@g.o> |
7 |
--- |
8 |
eclass/ltprune.eclass | 4 ++-- |
9 |
1 file changed, 2 insertions(+), 2 deletions(-) |
10 |
|
11 |
diff --git a/eclass/ltprune.eclass b/eclass/ltprune.eclass |
12 |
index e7d8cd2c4f92..5a36647d1d1c 100644 |
13 |
--- a/eclass/ltprune.eclass |
14 |
+++ b/eclass/ltprune.eclass |
15 |
@@ -1,4 +1,4 @@ |
16 |
-# Copyright 1999-2020 Gentoo Authors |
17 |
+# Copyright 1999-2022 Gentoo Authors |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
|
20 |
# @ECLASS: ltprune.eclass |
21 |
@@ -12,7 +12,7 @@ |
22 |
# |
23 |
# Discouraged. Whenever possible, please use much simpler: |
24 |
# @CODE |
25 |
-# find "${ED}" -name '*.la' -delete || die |
26 |
+# find "${ED}" -type f -name '*.la' -delete || die |
27 |
# @CODE |
28 |
|
29 |
if [[ -z ${_LTPRUNE_ECLASS} ]]; then |
30 |
-- |
31 |
2.35.1 |