projects
/
platform
/
upstream
/
zypper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc596d2
)
support for symlink named rug - autoenable rug compatibility
author
Josef Reidinger
<jreidinger@suse.cz>
Thu, 15 May 2008 13:37:51 +0000
(13:37 +0000)
committer
Josef Reidinger
<jreidinger@suse.cz>
Thu, 15 May 2008 13:37:51 +0000
(13:37 +0000)
src/zypper.cc
patch
|
blob
|
history
diff --git
a/src/zypper.cc
b/src/zypper.cc
index
370f478
..
9b6de60
100644
(file)
--- a/
src/zypper.cc
+++ b/
src/zypper.cc
@@
-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);