Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11625 - main/trunk/bin
Date: Sun, 05 Oct 2008 03:46:13
Message-Id: E1KmKZN-0005qb-Ny@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-10-05 03:46:08 +0000 (Sun, 05 Oct 2008)
3 New Revision: 11625
4
5 Modified:
6 main/trunk/bin/doins
7 Log:
8 Redirect pushd and popd output to /dev/null when appropriate.
9
10
11 Modified: main/trunk/bin/doins
12 ===================================================================
13 --- main/trunk/bin/doins 2008-10-05 03:40:25 UTC (rev 11624)
14 +++ main/trunk/bin/doins 2008-10-05 03:46:08 UTC (rev 11625)
15 @@ -68,13 +68,13 @@
16 # Follow any symlinks recursively until we've got
17 # a normal directory for 'find' to traverse.
18 while [ -L "$x" ] ; do
19 - pushd "$(readlink "$x")"
20 + pushd "$(readlink "$x")" >/dev/null
21 x=${PWD##*/}
22 - pushd "${PWD%/*}"
23 + pushd "${PWD%/*}" >/dev/null
24 done
25 find "$x" -type d -exec dodir "${INSDESTTREE}/{}" \;
26 find "$x" \( -type f -or -type l \) -print0 | _xdoins
27 - while popd >/dev/null ; do true ; done
28 + while popd >/dev/null 2>&1 ; do true ; done
29 ((++success))
30 else
31 _doins "${x}" && ((++success))