- fixed malformed repo metadata download progress output (bnc #304277)
authorJan Kupec <jkupec@suse.cz>
Sun, 27 Apr 2008 15:05:57 +0000 (15:05 +0000)
committerJan Kupec <jkupec@suse.cz>
Sun, 27 Apr 2008 15:05:57 +0000 (15:05 +0000)
src/zypper-repos.cc

index 48840f3..a67872f 100644 (file)
@@ -94,7 +94,7 @@ static bool refresh_raw_metadata(Zypper & zypper,
               WAR << "new item in enum, which is not covered" << endl;
             }
           }
-          break; // don't check all the urls, just the first succussfull.
+          break; // don't check all the urls, just the first successfull.
         }
         catch (const Exception & e)
         {
@@ -111,8 +111,8 @@ static bool refresh_raw_metadata(Zypper & zypper,
 
     if (do_refresh)
     {
-      zypper.runtimeData().raw_refresh_progress_label =
-        boost::str(format(_("Downloading repository '%s' metadata.")) % repo.name());
+      plabel = str::form(
+          _("Downloading repository '%s' metadata."), repo.name().c_str());
       zypper.out().progressStart("raw-refresh", plabel, true);
 
       manager.refreshMetadata(repo,
@@ -123,6 +123,7 @@ static bool refresh_raw_metadata(Zypper & zypper,
               RepoManager::RefreshIfNeeded);
 
       zypper.out().progressEnd("raw-refresh", plabel);
+      plabel.clear();
     }
   }
   catch (const MediaException & e)