Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 01 Feb 2022 18:23:31
Message-Id: 1643739792.4894fba4c7869d2642986da360d41e5760facb9a.soap@gentoo
1 commit: 4894fba4c7869d2642986da360d41e5760facb9a
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 1 18:23:12 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 1 18:23:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4894fba4
7
8 vcs-clean.eclass: add missing die
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 eclass/vcs-clean.eclass | 12 +++++++++---
13 1 file changed, 9 insertions(+), 3 deletions(-)
14
15 diff --git a/eclass/vcs-clean.eclass b/eclass/vcs-clean.eclass
16 index 991f680582f4..e4c61ac7164a 100644
17 --- a/eclass/vcs-clean.eclass
18 +++ b/eclass/vcs-clean.eclass
19 @@ -23,9 +23,11 @@ _VCS_CLEAN_ECLASS=1
20 # Remove CVS directories and .cvs* files recursively. Useful when a
21 # source tarball contains internal CVS directories. Defaults to ${PWD}.
22 ecvs_clean() {
23 + debug-print-function ${FUNCNAME} "${@}"
24 +
25 [[ $# -eq 0 ]] && set -- .
26 find "$@" '(' -type d -name 'CVS' -prune -o -type f -name '.cvs*' ')' \
27 - -exec rm -rf '{}' +
28 + -exec rm -rf '{}' + || die
29 }
30
31 # @FUNCTION: esvn_clean
32 @@ -34,8 +36,10 @@ ecvs_clean() {
33 # Remove .svn directories recursively. Useful when a source tarball
34 # contains internal Subversion directories. Defaults to ${PWD}.
35 esvn_clean() {
36 + debug-print-function ${FUNCNAME} "${@}"
37 +
38 [[ $# -eq 0 ]] && set -- .
39 - find "$@" -type d -name '.svn' -prune -exec rm -rf '{}' +
40 + find "$@" -type d -name '.svn' -prune -exec rm -rf '{}' + || die
41 }
42
43 # @FUNCTION: egit_clean
44 @@ -44,8 +48,10 @@ esvn_clean() {
45 # Remove .git* directories recursively. Useful when a source tarball
46 # contains internal Git directories. Defaults to ${PWD}.
47 egit_clean() {
48 + debug-print-function ${FUNCNAME} "${@}"
49 +
50 [[ $# -eq 0 ]] && set -- .
51 - find "$@" -type d -name '.git*' -prune -exec rm -rf '{}' +
52 + find "$@" -type d -name '.git*' -prune -exec rm -rf '{}' + || die
53 }
54
55 fi