ref: refs/heads/master
commit 8b482c28e147463a2eaabf2325fb0652b0f7fc1d
Author: Michael Calmer
Date: Thu Feb 12 15:04:53 2009 +0100
refresh repository only if it is enabled.
---
mof/SUSE_SoftwareRepository.mof | 2 +-
src/SUSE_SoftwareRepositoryProvider.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mof/SUSE_SoftwareRepository.mof b/mof/SUSE_SoftwareRepository.mof
index d3bbc25..800942a 100644
--- a/mof/SUSE_SoftwareRepository.mof
+++ b/mof/SUSE_SoftwareRepository.mof
@@ -84,7 +84,7 @@ class SUSE_SoftwareRepository : CIM_RemoteServiceAccessPoint {
uint16 RepositoryType;
[Description (
- "Refresh this repository and load the new metadata into the pool."),
+ "Refresh this repository and load the new metadata into the pool if it is enabled."),
ValueMap { "0", "1", ".." },
Values { "Completed with no Errors", "Error", "Vendor Specific" }]
uint32 Refresh(
diff --git a/src/SUSE_SoftwareRepositoryProvider.cc b/src/SUSE_SoftwareRepositoryProvider.cc
index 512613a..87edfbb 100644
--- a/src/SUSE_SoftwareRepositoryProvider.cc
+++ b/src/SUSE_SoftwareRepositoryProvider.cc
@@ -681,7 +681,7 @@ CmpiStatus SUSE_SoftwareRepositoryProviderClass::refresh(const CmpiContext &ctx,
{
RepoInfo repo( repoManager.getRepo( ln ) );
- if( pol != RepoManager::RefreshForced && !repo.enabled() )
+ if( !repo.enabled() )
{
rslt.returnData( CmpiData(CMPIUint32(0)) ); // Completed with No Error
rslt.returnDone();
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org