Mailinglist Archive: yast-commit (195 mails)

< Previous Next >
[yast-commit] r63509 - in /branches/tmp/jsuchome/snapper/agent-snapper/src: SnapperAgent.cc SnapperAgent.h
Author: jsuchome
Date: Fri Mar 4 14:03:52 2011
New Revision: 63509

URL: http://svn.opensuse.org/viewcvs/yast?rev=63509&view=rev
Log:
adapt to library (patch from arvin)

Modified:
branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.cc
branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.h

Modified: branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.cc?rev=63509&r1=63508&r2=63509&view=diff
==============================================================================
--- branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.cc (original)
+++ branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.cc Fri Mar 4
14:03:52 2011
@@ -160,9 +160,10 @@
unsigned int num2 = getIntValue (argmap, "to", 0);

const Snapshots& snapshots = sh->getSnapshots();
- sh->setComparison (snapshots.find(num1), snapshots.find(num2));

- const Files& files = sh->getFiles();
+ const Comparison comparison(sh, snapshots.find(num1),
snapshots.find(num2));
+
+ const Files& files = comparison.getFiles();
for (Files::const_iterator it = files.begin(); it != files.end();
++it)
{
YCPMap filemap;

Modified: branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.h
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.h?rev=63509&r1=63508&r2=63509&view=diff
==============================================================================
--- branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.h (original)
+++ branches/tmp/jsuchome/snapper/agent-snapper/src/SnapperAgent.h Fri Mar 4
14:03:52 2011
@@ -16,6 +16,7 @@
#include <snapper/Snapper.h>
#include <snapper/Factory.h>
#include <snapper/Snapshot.h>
+#include <snapper/Comparison.h>
#include <snapper/File.h>

/**

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

< Previous Next >
This Thread
  • No further messages