next step to get my live cd working again
authorStephan Kulow <coolo@suse.de>
Sun, 2 Mar 2008 15:13:41 +0000 (15:13 +0000)
committerStephan Kulow <coolo@suse.de>
Sun, 2 Mar 2008 15:13:41 +0000 (15:13 +0000)
package/libzypp.changes
zypp/RepoManager.cc

index 919efa9..24be146 100644 (file)
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Sun Mar  2 16:13:16 CET 2008 - coolo@suse.de
+
+- refresh metadata if there is no cache to unbreak compat with
+  kiwi (that relied on "zypper sa <url> <alias>" to create a repo
+  that "zypper in" could work on)
+
+-------------------------------------------------------------------
 Sun Mar  2 10:28:13 CET 2008 - coolo@suse.de
 
 - create cache directory before calling rpmdb2solv (in an empty
index 94fd85d..8a522f1 100644 (file)
@@ -698,6 +698,12 @@ namespace zypp
 
       needs_cleaning = true;
     }
+    else {
+      /* if there is no cache at this point, we refresh the raw
+         in case this is the first time - if it's !autorefresh,
+         we may still refresh */
+      refreshMetadata(info, RefreshIfNeeded, progressrcv );
+    }
 
     ProgressData progress(100);
     callback::SendReport<ProgressReport> report;