Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Bertrand Jacquin <bertrand@×××××××.bzh>
Subject: Re: [gentoo-portage-dev] [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK
Date: Mon, 20 Apr 2015 23:39:17
Message-Id: 55358E1D.1070801@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCHv3 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK by Bertrand Jaquin
1 These are in the master branch now:
2
3 https://gitweb.gentoo.org/proj/portage.git/commit/?id=5a1b870fe54ac06f864a648c3ea5cc118f6ce911
4
5 https://gitweb.gentoo.org/proj/portage.git/commit/?id=e74e2670e3f043608fced9847e54bdbb19f35169
6
7
8 On 04/20/2015 12:45 PM, Bertrand Jaquin wrote:
9 >
10 > # normal stuff
11 > - rm -Rf "${root}"/${no_inst} >&/dev/null
12 > + if [[ -e "${root}"/${no_inst} ]] ; then
13 > + __quiet_mode || einfo "Removing ${no_inst}"
14 > + rm -Rf "${root}"/${no_inst} >&/dev/null
15 > + fi
16
17 I modified the test as follows in order to ensure that it still works
18 with shell globs:
19
20 if [[ -e "${root}"/${no_inst} || "${root}"/${no_inst} != $(echo
21 "${root}"/${no_inst}) ]] ; then
22
23 --
24 Thanks,
25 Zac

Replies