public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] ltprune.eclass: restrict find to regular files in example code
@ 2022-04-29  8:53 Florian Schmaus
  0 siblings, 0 replies; only message in thread
From: Florian Schmaus @ 2022-04-29  8:53 UTC (permalink / raw
  To: gentoo-dev; +Cc: Florian Schmaus

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>
---
 eclass/ltprune.eclass | 4 ++--
 1 file 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
-- 
2.35.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-29  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-29  8:53 [gentoo-dev] [PATCH] ltprune.eclass: restrict find to regular files in example code Florian Schmaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox