Author: jkupec Date: Tue Feb 12 13:25:59 2008 New Revision: 8626 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8626&view=rev Log: - added the old ar and mr options for backward compatibility Modified: branches/tmp/ma/jump_sat/zypper/src/zypper-repos.cc branches/tmp/ma/jump_sat/zypper/src/zypper.cc Modified: branches/tmp/ma/jump_sat/zypper/src/zypper-repos.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/zypper/src/zypper-repos.cc?rev=8626&r1=8625&r2=8626&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/zypper/src/zypper-repos.cc (original) +++ branches/tmp/ma/jump_sat/zypper/src/zypper-repos.cc Tue Feb 12 13:25:59 2008 @@ -1164,9 +1164,9 @@ // autorefresh tribool autoref = indeterminate; - if (copts.count("refresh")) + if (copts.count("refresh") || copts.count("enable-autorefresh")) autoref = true; - if (copts.count("no-refresh")) + if (copts.count("no-refresh") || copts.count("disable-autorefresh")) { if (autoref) { Modified: branches/tmp/ma/jump_sat/zypper/src/zypper.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/zypper/src/zypper.cc?rev=8626&r1=8625&r2=8626&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/zypper/src/zypper.cc (original) +++ branches/tmp/ma/jump_sat/zypper/src/zypper.cc Tue Feb 12 13:25:59 2008 @@ -781,6 +781,7 @@ static struct option service_add_options[] = { {"type", required_argument, 0, 't'}, {"disable", no_argument, 0, 'd'}, + {"disabled", no_argument, 0, 0}, // backward compatibility {"no-refresh", no_argument, 0, 'n'}, {"repo", required_argument, 0, 'r'}, {"help", no_argument, 0, 'h'}, @@ -866,7 +867,9 @@ {"disable", no_argument, 0, 'd'}, {"enable", no_argument, 0, 'e'}, {"refresh", no_argument, 0, 'r'}, + {"enable-autorefresh", no_argument, 0, 'a'}, // backward compatibility {"no-refresh", no_argument, 0, 'n'}, + {"disable-autorefresh", no_argument, 0, 0 }, // backward compatibility {0, 0, 0, 0} }; specific_options = service_modify_options; @@ -1392,7 +1395,7 @@ tribool enabled(indeterminate); tribool refresh(indeterminate); - if (copts.count("disable")) + if (copts.count("disable") || copts.count("disabled")) enabled = false; if (copts.count("no-refresh")) refresh = false; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org