Add a patch for yum 2.9.6 (for FC6).
[util-vserver.git] / scripts / vyum-worker
index 2000ffa..460ec65 100755 (executable)
@@ -60,9 +60,20 @@ case $($yum --version|tail -n 1) in
     (2.[012345]*)
        check 'import yum,sys; sys.exit(not hasattr(yum.config.yumconf, "getRootedPath"))'
        ;;
-    (2.6*)
+    (2.[6789]*)
        check 'import yum,sys; sys.exit(not hasattr(yum.config.YumConf, "getRootedPath"))'
        ;;
+    (*)
+       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.
+
+Execution will continue in 5 seconds..."
+       sleep 5
+       conf=yum-hack.conf
+       ;;
 esac
 
 rpmFake.exec $yum \