yumupdate: ulimit -v unlimited
authorlace <>
Tue, 11 May 2010 03:37:37 +0000 (03:37 +0000)
committerlace <>
Tue, 11 May 2010 03:37:37 +0000 (03:37 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 974d60c..b8037b7 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -387,7 +387,7 @@ function rpmsrclist
        fi
 }
 function valgrind {(set -e;unset valgrind;s=~/.python.valgrind;rm -f $s;cp -p /usr/share/doc/python-devel-2.*/valgrind-python.supp $s;patch $s <$s.patch;perl -i -e 'undef $/;$_=<>;1 while s/^(?:###)?({\n)(?:###)?( *ADDRESS_IN_RANGE.*\n(?:[^}#].*\n)*)###/$1$2/gm;print;' $s;valgrind --suppressions=$s "$@";);}
-function yumupdate { yum makecache;yum -y --skip-broken update; }
+function yumupdate {(ulimit -v unlimited;yum makecache;yum -y --skip-broken update "$@";);}
 
 ulimit -S -c 0
 set +H