From: Duncan Mac-Vicar P Date: Mon, 9 Jul 2007 21:34:37 +0000 (+0000) Subject: enable RepoReport X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~295 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c67d758d0905288daddc691f045f0e4842a68576;p=platform%2Fupstream%2Fzypper.git enable RepoReport --- diff --git a/src/zypper-source-callbacks.h b/src/zypper-source-callbacks.h index 6e1b343..0d0e114 100644 --- a/src/zypper-source-callbacks.h +++ b/src/zypper-source-callbacks.h @@ -30,7 +30,7 @@ namespace ZmartRecipients { /////////////////////////////////////////////////////////////////// /* // progress for probing a source - struct ProbeSourceReceive : public zypp::callback::ReceiveReport + struct ProbeSourceReceive : public zypp::callback::ReceiveReport { virtual void start(const zypp::Url &url) { @@ -69,7 +69,7 @@ namespace ZmartRecipients }; */ // progress for downloading a resolvable -struct DownloadResolvableReportReceiver : public zypp::callback::ReceiveReport +struct DownloadResolvableReportReceiver : public zypp::callback::ReceiveReport { zypp::Resolvable::constPtr _resolvable_ptr; zypp::Url _url; @@ -211,20 +211,19 @@ struct DownloadResolvableReportReceiver : public zypp::callback::ReceiveReport +struct RepoReportReceiver : public zypp::callback::ReceiveReport { - virtual void start( zypp::Source_Ref source, const std::string & task ) + virtual void start( zypp::Repository repo, const std::string & task ) { _task = task; - _source = source; + _repo = repo; display_step(0); } void display_step( int value ) { - display_progress ("(" + _source.alias() + ") " + _task , value); + display_progress ("(" + _repo.info().alias() + ") " + _task , value); } virtual bool progress( int value ) @@ -233,14 +232,14 @@ struct SourceReportReceiver : public zypp::callback::ReceiveReport