support for symlink named rug - autoenable rug compatibility
authorJosef Reidinger <jreidinger@suse.cz>
Thu, 15 May 2008 13:37:51 +0000 (13:37 +0000)
committerJosef Reidinger <jreidinger@suse.cz>
Thu, 15 May 2008 13:37:51 +0000 (13:37 +0000)
src/zypper.cc

index 370f478..9b6de60 100644 (file)
@@ -375,8 +375,9 @@ void Zypper::processGlobalOptions()
   }
 
   // ======== other global options ========
-
-  if (gopts.count("rug-compatible"))
+  
+  string rug_test(_argv[0]);
+  if (gopts.count("rug-compatible") || rug_test.rfind("rug") == rug_test.size()-3 )
   {
     _gopts.is_rug_compatible = true;
     out().info("Switching to rug-compatible mode.", Out::DEBUG);