aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-07-02 00:09:06 +0300
committerPriit Laes <plaes@plaes.org>2010-07-02 00:09:06 +0300
commit3cf05bc77858e470f302d59879135a09928d2811 (patch)
tree1eab55928276853d7bd76bc1412d32376ddf5446 /utils
parentMade --initial-sync option working (diff)
downloadgsoc2010-grumpy-3cf05bc77858e470f302d59879135a09928d2811.tar.gz
gsoc2010-grumpy-3cf05bc77858e470f302d59879135a09928d2811.tar.bz2
gsoc2010-grumpy-3cf05bc77858e470f302d59879135a09928d2811.zip
Store update file name in the settings
Diffstat (limited to 'utils')
-rwxr-xr-xutils/grumpy_sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/grumpy_sync.py b/utils/grumpy_sync.py
index b632580..111c8dc 100755
--- a/utils/grumpy_sync.py
+++ b/utils/grumpy_sync.py
@@ -52,7 +52,8 @@ def main(path, initial_sync):
# ...and delete if it exists
session.delete(updates)
session.flush()
- data = dict(moves=moves, mtime=int(os.stat(update_path).st_mtime))
+ data = dict(file=update_file, moves=moves, \
+ mtime=int(os.stat(update_path).st_mtime))
session.add(Setting('updates_info', data))
session.commit()
# Initial sync does not need to deal with moves