projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Squeeze extra blank lines when dumping metadata logs.
[cumulus.git]
/
lbs-util
diff --git
a/lbs-util
b/lbs-util
index
d617705
..
942a601
100755
(executable)
--- a/
lbs-util
+++ b/
lbs-util
@@
-126,7
+126,13
@@
def cmd_read_metadata(snapshot):
d = lbs.parse_full(store.load_snapshot(snapshot))
check_version(d['Format'])
metadata = lbs.read_metadata(store, d['Root'])
d = lbs.parse_full(store.load_snapshot(snapshot))
check_version(d['Format'])
metadata = lbs.read_metadata(store, d['Root'])
+ blank = True
for l in metadata:
for l in metadata:
+ if l == '\n':
+ if blank: continue
+ blank = True
+ else:
+ blank = False
sys.stdout.write(l)
store.cleanup()
sys.stdout.write(l)
store.cleanup()