Author: dmacvicar Date: Tue May 6 17:32:37 2008 New Revision: 9962 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9962&view=rev Log: - add cmd line option to query pool to look for objects that can be registered instead if using the @system catalog as a filter Modified: trunk/libzypp/tools/registration/zypp-query-pool.cc Modified: trunk/libzypp/tools/registration/zypp-query-pool.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/tools/registration/zypp-query-pool.cc?rev=9962&r1=9961&r2=9962&view=diff ============================================================================== --- trunk/libzypp/tools/registration/zypp-query-pool.cc (original) +++ trunk/libzypp/tools/registration/zypp-query-pool.cc Tue May 6 17:32:37 2008 @@ -95,7 +95,7 @@ else if (filter == "products") kind = ResTraitszypp::Product::kind; else if (filter != FILTER_ALL) { - std::cerr << "usage: zypp-query-pool [-i] [packages|patches|patterns|products] [<alias>]" << endl; + std::cerr << "usage: zypp-query-pool [--registrable|-r] [packages|patches|patterns|products] [<alias>]" << endl; exit( 1 ); } @@ -178,7 +178,8 @@ bool only_installed = false; int offset = 1; - if ( (argc>1) && (string(argv[offset]) == "-i")) + if ( (argc>1) && ( (string(argv[offset]) == "--registrable") + || ( string(argv[offset]) == "-r" ) ) ) { only_installed = true; ++offset; --argc; @@ -206,8 +207,6 @@ Z->initializeTarget( "/" ); - std::cout << argc << "#" << filter << std::endl; - query_pool( Z, filter, repository, only_installed ); MIL << "END zypp-query-pool, result 0" << endl; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org