Author: jkupec Date: Thu Sep 4 18:40:55 2008 New Revision: 10935 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10935&view=rev Log: - tell RepoManager the target distribution before refreshing services Modified: trunk/zypper/src/Zypper.cc trunk/zypper/src/main.cc Modified: trunk/zypper/src/Zypper.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/Zypper.cc?rev=10935&r1=10934&r2=10935&view=diff ============================================================================== --- trunk/zypper/src/Zypper.cc (original) +++ trunk/zypper/src/Zypper.cc Thu Sep 4 18:40:55 2008 @@ -2083,6 +2083,8 @@ // needed to be able to retrieve target distribution init_target(*this); + this->_gopts.rm_options.servicesTargetDistro = + God->target()->targetDistribution(); refresh_services(*this); @@ -2526,6 +2528,10 @@ setExitCode(ZYPPER_EXIT_ERR_PRIVILEGES); return; } + // needed to be able to retrieve target distribution + init_target(*this); + this->_gopts.rm_options.servicesTargetDistro = + God->target()->targetDistribution(); refresh_services(*this); } refresh_repos(*this); Modified: trunk/zypper/src/main.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/main.cc?rev=10935&r1=10934&r2=10935&view=diff ============================================================================== --- trunk/zypper/src/main.cc (original) +++ trunk/zypper/src/main.cc Thu Sep 4 18:40:55 2008 @@ -41,7 +41,7 @@ else*/ { // translators: this will show up if you press ctrl+c twice outside of zypper shell - cerr << _("OK OK! Exiting immediately...") << endl; + cerr << endl << _("OK OK! Exiting immediately...") << endl; zypper.cleanup(); exit(ZYPPER_EXIT_ON_SIGNAL); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org