[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [onionoo/master] Add workaround to avoid bulk-editing details files.
commit b026d6dccea5be76b2b257787562542a4ab34a3e
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Tue Jan 28 14:47:42 2014 +0100
Add workaround to avoid bulk-editing details files.
Workaround for bug fixed in 427111314eea8a01b43ad30bc10f744a8edcca81.
---
src/org/torproject/onionoo/ResponseBuilder.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/org/torproject/onionoo/ResponseBuilder.java b/src/org/torproject/onionoo/ResponseBuilder.java
index b79623e..898f957 100644
--- a/src/org/torproject/onionoo/ResponseBuilder.java
+++ b/src/org/torproject/onionoo/ResponseBuilder.java
@@ -779,6 +779,11 @@ public class ResponseBuilder {
break;
} else if (line.startsWith("\"desc_published\":")) {
continue;
+ } else if (line.startsWith("\"hibernating\":True")) {
+ /* TODO This workaround saves us from bulk-editing all details
+ * files in out/details/ and status/details/. May take this out
+ * when all/most of those files with invalid JSON are gone. */
+ sb.append(line.replaceAll("T", "t") + "\n");
} else if (this.fields != null) {
if (line.startsWith("\"")) {
includeLine = false;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits