Author: lslezak Date: Tue Jun 16 16:01:57 2009 New Revision: 57594 URL: http://svn.opensuse.org/viewcvs/yast?rev=57594&view=rev Log: - Do not call RefreshStarted callback when refresh is not needed, do not change "Abort" button label when not necessary (bnc#504131) Modified: branches/tmp/SLE-11-SP1-Stash/pkg-bindings/package/yast2-pkg-bindings.changes branches/tmp/SLE-11-SP1-Stash/pkg-bindings/src/Source_Load.cc Modified: branches/tmp/SLE-11-SP1-Stash/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/pkg-bindings/package/yast2-pkg-bindings.changes?rev=57594&r1=57593&r2=57594&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ branches/tmp/SLE-11-SP1-Stash/pkg-bindings/package/yast2-pkg-bindings.changes Tue Jun 16 16:01:57 2009 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Jun 16 15:50:59 CEST 2009 - lslezak@suse.cz + +- Do not call RefreshStarted callback when refresh is not needed, + do not change "Abort" button label when not necessary + (bnc#504131) + +------------------------------------------------------------------- Fri Feb 20 13:16:39 CET 2009 - ma@suse.de - Removed fragile test for service being modified. Leave it up to libzypp Modified: branches/tmp/SLE-11-SP1-Stash/pkg-bindings/src/Source_Load.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/pkg-bindings/src/Source_Load.cc?rev=57594&r1=57593&r2=57594&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/pkg-bindings/src/Source_Load.cc (original) +++ branches/tmp/SLE-11-SP1-Stash/pkg-bindings/src/Source_Load.cc Tue Jun 16 16:01:57 2009 @@ -285,6 +285,15 @@ } } + + zypp::RepoManager::RefreshCheckStatus ref_stat = repomanager.checkIfToRefreshMetadata((*it)->repoInfo(), *((*it)->repoInfo().baseUrlsBegin())); + + if (ref_stat != zypp::RepoManager::REFRESH_NEEDED) + { + y2internal("Skipping repository '%s' - refresh is not needed", (*it)->repoInfo().alias().c_str()); + continue; + } + try { y2milestone("Autorefreshing source: %s", (*it)->repoInfo().alias().c_str()); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org