Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11573 - /trunk/libzypp-testsuite/solver/src/deptestomatic.cc
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Tue, 04 Nov 2008 15:11:01 -0000
  • Message-id: <20081104151101.C7CBC2EFEB@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Tue Nov 4 16:11:01 2008
New Revision: 11573

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11573&view=rev
Log:
- add showselectable option to see selectable information

Modified:
trunk/libzypp-testsuite/solver/src/deptestomatic.cc

Modified: trunk/libzypp-testsuite/solver/src/deptestomatic.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/solver/src/deptestomatic.cc?rev=11573&r1=11572&r2=11573&view=diff
==============================================================================
--- trunk/libzypp-testsuite/solver/src/deptestomatic.cc (original)
+++ trunk/libzypp-testsuite/solver/src/deptestomatic.cc Tue Nov 4 16:11:01 2008
@@ -64,6 +64,8 @@
#include "zypp/base/Exception.h"
#include "zypp/base/Algorithm.h"

+#include "zypp/ui/Selectable.h"
+
#include "zypp/media/MediaManager.h"

#include "zypp/pool/GetResolvablesToInsDel.h"
@@ -97,6 +99,7 @@

using namespace std;
using namespace zypp;
+using zypp::ui::Selectable;
using zypp::solver::detail::InstallOrder;
using zypp::solver::detail::Testcase;
using zypp::ResolverProblemList;
@@ -1084,7 +1087,20 @@
string verbose = node->getProp ("verbose");
print_pool( resolver, prefix, !all.empty(), get_licence,
!verbose.empty() );

- } else if (node->equals ("graphic")) {
+ }
+ else if (node->equals ("showselectable")){
+ Selectable::Ptr item;
+ string kind_name = node->getProp ("kind");
+ if ( kind_name.empty() )
+ kind_name = "package";
+ string name = node->getProp ("name");
+ item = Selectable::get( ResKind(kind_name), name );
+ if ( item )
+ dumpOn(cout, *item);
+ else
+ cout << "Selectable '" << name << "' not valid" << endl;
+ }
+ else if (node->equals ("graphic")) {
resolver->resolvePool();
QApplication app(0, NULL);
QZyppSolverDialog *dialog = new QZyppSolverDialog(resolver);
@@ -1446,3 +1462,4 @@
return 0;
}

+

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages