[zypp-commit] r7064 - in /trunk/libzypp/devel/devel.ma: Parse.cc Tools.h
Author: mlandres
Date: Fri Aug 31 19:48:29 2007
New Revision: 7064
URL: http://svn.opensuse.org/viewcvs/zypp?rev=7064&view=rev
Log:
backup
Modified:
trunk/libzypp/devel/devel.ma/Parse.cc
trunk/libzypp/devel/devel.ma/Tools.h
Modified: trunk/libzypp/devel/devel.ma/Parse.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.ma/Parse.cc?rev=7064&r1=7063&r2=7064&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.ma/Parse.cc (original)
+++ trunk/libzypp/devel/devel.ma/Parse.cc Fri Aug 31 19:48:29 2007
@@ -34,6 +34,8 @@
#include "zypp/RepoManager.h"
#include "zypp/RepoInfo.h"
+#include "zypp/ui/PatchContents.h"
+
using namespace std;
using namespace zypp;
using namespace zypp::functor;
@@ -50,7 +52,8 @@
{
bool operator()( const PoolItem & obj_r )
{
- handle( asKind<Package>( obj_r ) );
+ //handle( asKind<Package>( obj_r ) );
+ handle( asKind<Patch>( obj_r ) );
//handle( asKind<Pattern>( obj_r ) );
//handle( asKind<Product>( obj_r ) );
return true;
@@ -61,7 +64,18 @@
if ( !p )
return;
- //MIL << p->diskusage() << endl;
+ MIL << p->diskusage() << endl;
+ }
+
+ void handle( const Patch_constPtr & p )
+ {
+ if ( !p )
+ return;
+
+ ui::PatchContents pc( p );
+ MIL << p << endl;
+ dumpRange( DBG << pc.size() << endl,
+ pc.begin(), pc.end() );
}
void handle( const Pattern_constPtr & p )
@@ -262,7 +276,7 @@
struct MediaChangeReceive : public callback::ReceiveReportmedia::MediaChangeReport
{
- virtual Action requestMedia( Repository source
+ virtual Action requestMedia( Url & source
, unsigned mediumNr
, Error error
, const std::string & description )
@@ -332,19 +346,6 @@
//zypp::base::LogControl::instance().logfile( "log.restrict" );
INT << "===[START]==========================================" << endl;
- {
- AutoDispose<int> fd( 0 );
- SEC << fd << endl;
- fd = ::open( "/tmp/foo", 1 );
- SEC << fd << endl;
-
- if ( fd == -1 )
- ; // error report
- else
- fd.setDispose( ::close );
- }
- return 0;
-
DigestReceive foo;
KeyRingSignalsReceive baa;
Modified: trunk/libzypp/devel/devel.ma/Tools.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/devel/devel.ma/Tools.h?rev=7064&r1=7063&r2=7064&view=diff
==============================================================================
--- trunk/libzypp/devel/devel.ma/Tools.h (original)
+++ trunk/libzypp/devel/devel.ma/Tools.h Fri Aug 31 19:48:29 2007
@@ -10,6 +10,7 @@
#include "Printing.h"
#include "FakePool.h"
+#include
participants (1)
-
mlandres@svn.opensuse.org