diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-04-29 10:51:03 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-05-02 21:09:40 +0200 |
commit | 8a0fd695c886081083e2ed8dcd8ad2d876ef947d (patch) | |
tree | d2a3181cc555839c8d325b7decc03b3e837bf396 /eclass | |
parent | app-vim/gentoo-syntax: Bump to v2 (diff) | |
download | gentoo-8a0fd695c886081083e2ed8dcd8ad2d876ef947d.tar.gz gentoo-8a0fd695c886081083e2ed8dcd8ad2d876ef947d.tar.bz2 gentoo-8a0fd695c886081083e2ed8dcd8ad2d876ef947d.zip |
ltprune.eclass: restrict find to regular files in example code
Akin to the (pending) change of the policy guide [1], adjust the example
code to restrict find to regular files.
1: https://github.com/gentoo/policy-guide/pull/24
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ltprune.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/ltprune.eclass b/eclass/ltprune.eclass index e7d8cd2c4f92..5a36647d1d1c 100644 --- a/eclass/ltprune.eclass +++ b/eclass/ltprune.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: ltprune.eclass @@ -12,7 +12,7 @@ # # Discouraged. Whenever possible, please use much simpler: # @CODE -# find "${ED}" -name '*.la' -delete || die +# find "${ED}" -type f -name '*.la' -delete || die # @CODE if [[ -z ${_LTPRUNE_ECLASS} ]]; then |