- RawMetadataRefreshPolicy: CheckIfNeededIgnoreDelay added
authorJan Kupec <jkupec@suse.cz>
Sun, 13 Apr 2008 00:17:21 +0000 (00:17 +0000)
committerJan Kupec <jkupec@suse.cz>
Sun, 13 Apr 2008 00:17:21 +0000 (00:17 +0000)
  needed for explicit refresh request

zypp/RepoManager.cc
zypp/RepoManager.h

index d020a95..6ebc05c 100644 (file)
@@ -419,7 +419,7 @@ namespace zypp
       oldstatus = metadataStatus(info);
 
       // now we've got the old (cached) status, we can decide repo.refresh.delay
-      if (policy != RefreshForced)
+      if (policy != RefreshForced && policy != RefreshIfNeededIgnoreDelay)
       {
         // difference in seconds
         double diff = difftime(
index 131aaac..70e676b 100644 (file)
@@ -76,7 +76,8 @@ namespace zypp
     enum RawMetadataRefreshPolicy
     {
       RefreshIfNeeded,
-      RefreshForced
+      RefreshForced,
+      RefreshIfNeededIgnoreDelay
     };
 
     enum CacheBuildPolicy