summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2013-11-06 16:00:27 +0200
committerrmerlino <regis.merlino@intel.com>2013-12-12 11:46:01 +0100
commit47340b755eca8f365a7c015ecf569ca132dd69c9 (patch)
tree5ff13d4cddc8669ad7664dd6d12430695f8c1538
parent8e67ca17381ac31224f83533d01075c4c01dc219 (diff)
downloaddleyna-server-47340b755eca8f365a7c015ecf569ca132dd69c9.tar.gz
[test] Save changed ServiceResetToken in configuration
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-rw-r--r--test/dbus/download_sync_controller.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/dbus/download_sync_controller.py b/test/dbus/download_sync_controller.py
index c9438ee..e45b869 100644
--- a/test/dbus/download_sync_controller.py
+++ b/test/dbus/download_sync_controller.py
@@ -320,11 +320,11 @@ class DscController(object):
if cur_id == -1 or cur_srt != new_srt:
print
print u'Server {0} needs *full* sync:'.format(uuid)
- yield item, uuid, 0, new_id, True
+ yield item, uuid, 0, new_id, new_srt, True
elif cur_id < new_id:
print
print u'Server {0} needs sync:'.format(uuid)
- yield item, uuid, cur_id, new_id, False
+ yield item, uuid, cur_id, new_id, new_srt, False
def __check_trackable(self, server):
try:
@@ -451,7 +451,7 @@ class DscController(object):
"""
print u'Syncing...'
- for item, uuid, cur, new, full_sync in \
+ for item, uuid, cur, new_id, new_srt, full_sync in \
self.__need_sync(self.__upnp.get_servers()):
sync = self.__config.getboolean(uuid, DscController.SYNC_OPTION)
@@ -474,7 +474,9 @@ class DscController(object):
else:
store.sync_item(obj)
- self.__config.set(uuid, DscController.SUID_OPTION, str(new))
+ self.__config.set(uuid, DscController.SUID_OPTION, str(new_id))
+ if full_sync:
+ self.__config.set(uuid, DscController.SRT_OPTION, str(new_srt))
self.__write_config()
print