mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user