From: Bertrand Jaquin <bertrand@jacquin.bzh>
To: gentoo-portage-dev@lists.gentoo.org
Cc: Bertrand Jacquin <bertrand@jacquin.bzh>
Subject: [gentoo-portage-dev] [PATCH 1/2] MEDIUM: misc-functions: Be more quiet when removing non existing INSTALL_MASK
Date: Mon, 20 Apr 2015 00:35:44 +0200 [thread overview]
Message-ID: <1429482945-24032-1-git-send-email-bertrand@jacquin.bzh> (raw)
From: Bertrand Jacquin <bertrand@jacquin.bzh>
When FEATURES="nodoc noinfo noman" is used, you will get the following
output for every packages, even virtual that contain no file:
# FEATURES="nodoc noinfo noman" emerge -va1t virtual/cron
..
>>> Installing (1 of 1) virtual/cron-0::gentoo
* Removing /usr/share/man
* Removing /usr/share/info
* Removing /usr/share/doc
* checking 0 files for package collisions
>>> Merging virtual/cron-0 to /
The following patch makes the output as:
# FEATURES="nodoc noinfo noman" emerge -va1t virtual/cron
..
>>> Installing (1 of 1) virtual/cron-0::gentoo
* checking 0 files for package collisions
>>> Merging virtual/cron-0 to /
Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh>
---
bin/misc-functions.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index e08c228..36a3bb8 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -267,9 +267,12 @@ install_mask() {
local no_inst
for no_inst in ${install_mask}; do
set +o noglob
- __quiet_mode || einfo "Removing ${no_inst}"
+
# normal stuff
- rm -Rf "${root}"/${no_inst} >&/dev/null
+ if [[ -e "${root}"/${no_inst} ]] ; then
+ __quiet_mode || einfo "Removing ${no_inst}"
+ rm -Rf "${root}"/${no_inst} >&/dev/null
+ fi
# we also need to handle globs (*.a, *.h, etc)
find "${root}" \( -path "${no_inst}" -or -name "${no_inst}" \) \
next reply other threads:[~2015-04-19 22:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-19 22:35 Bertrand Jaquin [this message]
2015-04-19 22:35 ` [gentoo-portage-dev] [PATCH 2/2] MEDIUM: misc-functions: Be more verbose when removing INSTALL_MASK glob Bertrand Jaquin
2015-04-19 23:05 ` Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1429482945-24032-1-git-send-email-bertrand@jacquin.bzh \
--to=bertrand@jacquin.bzh \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox