Fix typo in emerge-webrsync PORTAGE_NICENESS handling for bug #124621 (regression...
authorZac Medico <zmedico@gentoo.org>
Thu, 2 Mar 2006 17:46:05 +0000 (17:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Mar 2006 17:46:05 +0000 (17:46 -0000)
svn path=/main/trunk/; revision=2805

bin/emerge-webrsync

index 2173ecd952e6aac1dd728740a0a06bf5cebfdf35..5f8aa67f01cc9c751f208d59ee45351e4528f388 100755 (executable)
@@ -5,10 +5,10 @@
 # Author: Karl Trygve Kalleberg <karltk@gentoo.org>
 # Rewritten from the old, Perl-based emerge-webrsync script
 
-if [ -z "$PULLED_NICENESS" ]; then
-       PULLED_NICENESS="$(/usr/lib/portage/bin/portageq envvar PORTAGE_NICENESS)"
-       if [ -n "$PULLED_NICENESS" ]; then
-               export PULLED_NICENESS
+if [ -z "$PORTAGE_NICENESS" ]; then
+       PORTAGE_NICENESS="$(/usr/lib/portage/bin/portageq envvar PORTAGE_NICENESS)"
+       if [ -n "$PORTAGE_NICENESS" ]; then
+               export PORTAGE_NICENESS
                exec nice -n $PORTAGE_NICENESS "$0" "$@"
                echo "failed pulling PORTAGE_NICENESS, disabling"
        fi