diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-12-09 16:20:04 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-12-28 21:51:24 +0000 |
commit | c6c5f88d41a75ef8626b3ddb987411c07454729d (patch) | |
tree | fe9cf9ff4d23412925650927b290c89ce074c2a7 /obnamlib/plugins/show_plugin.py | |
parent | 492dc888a3e5c7320a058f04d18045dd1aae5842 (diff) | |
download | obnam-c6c5f88d41a75ef8626b3ddb987411c07454729d.tar.gz |
Have "obnam ls" report generation times
Diffstat (limited to 'obnamlib/plugins/show_plugin.py')
-rw-r--r-- | obnamlib/plugins/show_plugin.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py index 188a92cb..286e77d0 100644 --- a/obnamlib/plugins/show_plugin.py +++ b/obnamlib/plugins/show_plugin.py @@ -93,7 +93,10 @@ class ShowPlugin(obnamlib.ObnamPlugin): # generation is a checkpointand the generation file count # and data size here using generation keys. This is not # yet implemented in the interface. - start, end = 0, 0 + start = self.repo.get_generation_key( + gen_id, obnamlib.REPO_GENERATION_STARTED) + end = self.repo.get_generation_key( + gen_id, obnamlib.REPO_GENERATION_ENDED) is_checkpoint = False file_count = 0 data_size = 0 @@ -349,7 +352,8 @@ class ShowPlugin(obnamlib.ObnamPlugin): perms[offset] = char perms = ''.join(perms) - timestamp = time.strftime('%Y-%m-%d %H:%M:%S', mtime_sec) + timestamp = time.strftime( + '%Y-%m-%d %H:%M:%S', time.gmtime(mtime_sec)) if stat.S_ISLNK(mode): name = '%s -> %s' % (filename, target) |