X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvyum-worker;h=03e9568c1bb04f3f062f58dd75cdad449369885e;hb=HEAD;hp=460ec65406f2b78c524dad2a9ae323c06486bfd5;hpb=74c08a6eb40bed65b9ea55751dc6742dc4cf75ba;p=util-vserver.git diff --git a/scripts/vyum-worker b/scripts/vyum-worker index 460ec65..03e9568 100755 --- a/scripts/vyum-worker +++ b/scripts/vyum-worker @@ -56,19 +56,19 @@ Execution will continue in 5 seconds..." yum=${YUM:-yum} conf=yum.conf -case $($yum --version|tail -n 1) in +case $(python -c "import yum; print yum.__version__" 2>/dev/null) in (2.[012345]*) check 'import yum,sys; sys.exit(not hasattr(yum.config.yumconf, "getRootedPath"))' ;; - (2.[6789]*) + (2.[6789]*|3.[012]*) check 'import yum,sys; sys.exit(not hasattr(yum.config.YumConf, "getRootedPath"))' ;; (*) - warning"\ + warning "\ You are using a version of yum which current status is unknown to vyum. Just to be sure, 'vyum' will use dirty hacks which might not work when -the vsrever is running and local DOS attacks are possible. +the vserver is running and local DOS attacks are possible. Execution will continue in 5 seconds..." sleep 5