summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-05 17:51:44 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-05 17:51:44 +0100
commit3d55b2ca36321042e7ddc824334a03651aa1a1f0 (patch)
treeb213aeef6c08448314cd94e1777b9e0f3068ed17
parent68ec1267c8d774540a0f70aa6831bb57bc3ac552 (diff)
downloadobnam-3d55b2ca36321042e7ddc824334a03651aa1a1f0.tar.gz
Don't print formatted lines at once.
-rw-r--r--obnamlib/plugins/show_plugin.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py
index b3ce9c6a..3a9a6c42 100644
--- a/obnamlib/plugins/show_plugin.py
+++ b/obnamlib/plugins/show_plugin.py
@@ -92,13 +92,17 @@ class ShowPlugin(obnamlib.ObnamPlugin):
print
print '%s:' % dirname
subdirs = []
- nondirs = []
+ everything = []
for basename in self.repo.listdir(gen, dirname):
fields = self.fields(gen, dirname, basename)
full = os.path.join(dirname, basename)
- print self.format(fields)
+ everything.append(fields)
if self.isdir(gen, full):
subdirs.append(full)
+
+ for fields in everything:
+ print self.format(fields)
+
for subdir in subdirs:
self.show_objects(gen, subdir)