- Some cosmetic changes to display the cache ticks
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 27 Jul 2007 11:43:28 +0000 (11:43 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 27 Jul 2007 11:43:28 +0000 (11:43 +0000)
src/zypper-callbacks.cc
src/zypper-misc.cc
src/zypper-source-callbacks.h
src/zypper-sources.cc

index b45d4d0..ef5b47d 100644 (file)
@@ -24,8 +24,8 @@ void display_progress (const string& s, int percent) {
 
 void display_tick (const string& s) {
   static AliveCursor cursor;
-
-  cout_v << CLEARLN << cursor++ << " " << s;
+  cursor++;
+  cout_v << CLEARLN << cursor << " " << s;
   cout_v << flush;
 }
 
index 9308335..40c5d26 100644 (file)
@@ -460,7 +460,7 @@ void load_repo_resolvables()
         manager.buildCache(repo);
       }
       // TranslatorExplanation speaking of a repository
-      cout_n << format(_("Reading repository %s...")) % repo.alias() << flush;
+      //cout_n << format(_("Reading repository %s...")) % repo.alias() << flush;
       repository = manager.createFromCache(repo);
 
       ResStore store = repository.resolvables();
index 53f86ac..2991dde 100644 (file)
@@ -215,6 +215,7 @@ struct ProgressReportReceiver  : public zypp::callback::ReceiveReport<zypp::Prog
 {
   void tick( const zypp::ProgressData &data )
   {
+    //std::cout << "TICK!" << std::endl;
     if ( data.reportAlive() )
     {
       display_tick ( data.name() );
@@ -228,7 +229,9 @@ struct ProgressReportReceiver  : public zypp::callback::ReceiveReport<zypp::Prog
   }
   
   virtual void start( const zypp::ProgressData &data )
-  { tick(data); }
+  {
+    tick(data);
+  }
   
   virtual bool progress( const zypp::ProgressData &data )
   {
index c9d2fa4..43f5498 100644 (file)
@@ -180,7 +180,7 @@ void refresh_repos()
       cout_v << _("Creating repository cache...") << endl;
       manager.buildCache(repo);
 
-      cout_n << _("DONE") << endl << endl;
+      //cout_n << _("DONE") << endl << endl;
     }
     catch ( const Exception &e )
     {