summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-07-11 23:18:17 +0300
committerLars Wirzenius <liw@liw.fi>2011-07-11 23:18:17 +0300
commit9133fe5b4150f2abc48f53e734a99bc865e7f183 (patch)
tree5a10818745ea5cf638e4b2576bf314b82161e30b
parenta60b9e3b04ebf83901ffc1343f35efb8b38a4577 (diff)
downloadseivot-9133fe5b4150f2abc48f53e734a99bc865e7f183.tar.gz
Sort seivot files in numeric and not textual order (for revision numbers).
-rwxr-xr-xseivots-summary4
1 files changed, 2 insertions, 2 deletions
diff --git a/seivots-summary b/seivots-summary
index 1cb3fdf..c60a9f3 100755
--- a/seivots-summary
+++ b/seivots-summary
@@ -152,8 +152,8 @@ class SeivotsSummary(cliapp.Application):
return cp
def getkey(self, seivot):
- return (seivot.get('meta', 'revision'),
- seivot.get('meta', 'larch-revision'))
+ return (seivot.getint('meta', 'revision'),
+ seivot.getint('meta', 'larch-revision'))
def get_size(self, seivot):
return seivot.getint('0', 'backup.new-data')