remove outdated examples
authorMichael Andres <ma@suse.de>
Thu, 13 Nov 2008 11:10:04 +0000 (11:10 +0000)
committerMichael Andres <ma@suse.de>
Thu, 13 Nov 2008 11:10:04 +0000 (11:10 +0000)
examples/README
examples/read_plaindir_source.cc [deleted file]

index 62523d4..5385f51 100644 (file)
@@ -2,7 +2,6 @@
 ZyPP Examples
 =============
 
-* read_plaindir_source.cc
-  Read a sirectory with rpm files (no metadata) and loop over the resolvables.
+* none so far :(
+  
   
-  
\ No newline at end of file
diff --git a/examples/read_plaindir_source.cc b/examples/read_plaindir_source.cc
deleted file mode 100644 (file)
index 03bf54b..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-// ZyPP Example
-// Read a directory with rpms as a source
-// No need for metadata, it is read from the rpms
-
-#include <zypp/base/Logger.h>
-#include <zypp/ZYpp.h>
-#include <zypp/ZYppFactory.h>
-
-#include "zypp/Product.h"
-#include "zypp/Package.h"
-
-#include "zypp/SourceFactory.h"
-
-using namespace std;
-using namespace zypp;
-using namespace zypp::source;
-
-int
-main (int argc, char **argv)
-{
-  if (argc < 2) {
-    cerr << "1|usage: " << argv[0] << " <dir:/somepath>" << endl;
-    return 1;
-  }
-  
-  try
-  {
-    ZYpp::Ptr z = getZYpp();
-    
-    // plaindir sources are not signed so we don't need to initialize the
-    // target to import the system public keys.
-    //z->initializeTarget("/");
-   
-    Source_Ref source = SourceFactory().createFrom( Url(argv[1]), "/", "testsource", Pathname() );
-    ResStore store = source.resolvables();
-    //zypp::testsuite::utils::dump(store, true, true);
-    
-    for (ResStore::const_iterator it = store.begin(); it != store.end(); ++it)
-    {
-      zypp::Package::Ptr res = asKind<zypp::Package>( *it );
-      MIL << res->name() << " " << res->edition() << " " << res->location() << std::endl;
-    }
-        
-  }
-  catch ( const Exception &e )
-  {
-    MIL << "Exception ocurred, bye" << endl;
-  }
-}
-
-
-