aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-12-16 19:22:40 -0600
committerRob Landley <rob@landley.net>2015-12-16 19:22:40 -0600
commit1efcb17d971666d334468149c5a604e76b5d9092 (patch)
tree82e04c65c8276af0fc9abd5f5ee1d0a6cc3aa101
parentf96bb3d8e7ec3882c70b861b998d8573083ffe55 (diff)
downloadtoybox-1efcb17d971666d334468149c5a604e76b5d9092.tar.gz
Don't discard previous block when mkstatus finds another span tag with same id.
-rwxr-xr-xscripts/mkstatus.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mkstatus.py b/scripts/mkstatus.py
index 3b1bbc8b..f9d3a1b0 100755
--- a/scripts/mkstatus.py
+++ b/scripts/mkstatus.py
@@ -11,7 +11,8 @@ def readit(args, shell=False):
for i in blob.stdout.read().split("\n"):
if not i: continue
i=i.split()
- ret[i[0]]=i[1:]
+ try: ret[i[0]].extend(i[1:])
+ except: ret[i[0]]=i[1:]
arr.extend(i)
return ret,arr