Gentoo Archives: gentoo-user

From: Alarig Le Lay <alarig@××××××××××.fr>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Avoid 'q' (from app-portage/portage-utils) output in eix-sync
Date: Tue, 03 Apr 2018 07:05:16
Message-Id: 20180403070438.i5b2p5blor5hwqgl@mew.swordarmor.fr
1 Hi,
2
3 app-portage/portage-utils installs a postsync hook in
4 /etc/portage/repo.postsync.d/q-reinit:
5 #!/bin/sh
6
7 repository_name=$1
8 repository_path=$3
9
10 if [ -n "${repository_name}" ]; then
11 q ${PORTAGE_QUIET:+-q} --reinitialize="${repository_path}"
12 fi
13
14 :
15
16 So, according to this script, -q should be used if $PORTAGE_QUIET is not
17 empty; and q -q -r does not produce any output.
18
19 But, if I use it with eix-sync, I still have the q output:
20 airmure ~ # PORTAGE_QUIET='1' eix-sync
21 * Running emerge --sync
22 >>> Syncing repository 'gentoo' into '/usr/portage'...
23 /usr/bin/git pull --quiet
24 === Sync completed for gentoo
25 q: Updating ebuild cache in /usr/portage ...
26 […]
27
28 Also, the variable is taken in account as '--quiet' is appended to the
29 git command.
30
31 Then, what should I do to avoid 'q: Updating ebuild cache in
32 /usr/portage ...' as well?
33
34 Thanks,
35 --
36 alarig

Attachments

File name MIME type
signature.asc application/pgp-signature