summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2021-01-12 04:57:49 -0500
committerbrent s <bts@square-r00t.net>2021-01-12 04:57:49 -0500
commit379795ee06489406f40645ec3ca123494d72fe7f (patch)
treec93de67ff14af27a016bea6a15b775f4b07501b7
parent436bc3d083ee2a4317bd3eed9df8ae35117c7166 (diff)
downloadOpTools-379795ee06489406f40645ec3ca123494d72fe7f.tar.xz
adding example JSON
-rwxr-xr-xarch/relchk.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/relchk.py b/arch/relchk.py
index 8ec78e2..2f5d0a9 100755
--- a/arch/relchk.py
+++ b/arch/relchk.py
@@ -1,5 +1,16 @@
#!/usr/bin/env python3
+# TODO: logging
+# Example .arch.json:
+# {
+# "date": "Fri, 01 Jan 2021 00:00:00 +0000",
+# "mirror": "http://arch.mirror.constant.com/",
+# "country": "US",
+# "notes": "https://archlinux.org/releng/releases/2021.01.01/",
+# "ver": "2021.01.01",
+# "sha1": "c3082b13d3cf0a253e1322568f2fd07479f86d52"
+# }
+
import datetime
import json
import hashlib