Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCHv2 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob
Date: Mon, 20 Apr 2015 03:26:43
Message-Id: 553471EB.60106@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCHv2 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob by Bertrand Jaquin
1 On 04/19/2015 05:01 PM, Bertrand Jaquin wrote:
2 > diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
3 > index 36a3bb8..4c37f10 100755
4 > --- a/bin/misc-functions.sh
5 > +++ b/bin/misc-functions.sh
6 > @@ -276,7 +276,13 @@ install_mask() {
7 >
8 > # we also need to handle globs (*.a, *.h, etc)
9 > find "${root}" \( -path "${no_inst}" -or -name "${no_inst}" \) \
10 > - -exec rm -fR {} \; >/dev/null 2>&1
11 > + -print0 2> /dev/null \
12 > + | sort \
13
14 sort -z
15
16 Maybe also set LANG=C for locale independence?
17
18 --
19 Thanks,
20 Zac

Replies