summaryrefslogtreecommitdiff
path: root/backend/resilient
diff options
context:
space:
mode:
Diffstat (limited to 'backend/resilient')
-rw-r--r--backend/resilient/__init__.py1
-rw-r--r--backend/resilient/bsv_metanet.py9
2 files changed, 8 insertions, 2 deletions
diff --git a/backend/resilient/__init__.py b/backend/resilient/__init__.py
index 73ad2db..1df09bd 100644
--- a/backend/resilient/__init__.py
+++ b/backend/resilient/__init__.py
@@ -108,7 +108,6 @@ class ikiwiki:
if not found:
print("ikiwiki not found: attempting to build")
os.system("%s/build_ikiwiki.sh" % dep_path)
- binary = "%s/prefix/bin/ikiwiki" % dep_path
found = (os.system("%s --version" % binary) == 0)
if not found:
print("WARNING: ikiwiki not found. did build fail on this platform?")
diff --git a/backend/resilient/bsv_metanet.py b/backend/resilient/bsv_metanet.py
index 3d21b3e..62bf6c1 100644
--- a/backend/resilient/bsv_metanet.py
+++ b/backend/resilient/bsv_metanet.py
@@ -7,9 +7,16 @@ import time
class bsvup():
binary = "bsvup"
- found = (os.system("%s" % binary) == 0)
+ found = (os.system("%s --version" % binary) == 0)
# TODO: check dep_path for alternate location for binary
if not found:
+ binary = "%s/prefix/bin/bsvup" % dep_path
+ found = (os.system("%s --version" % binary) == 0)
+ if not found:
+ print("bsvup not found: attempting to install")
+ os.system("npm install --prefix %s/prefix -g %s/bsvup" % (dep_path, dep_path))
+ found = (os.system("%s --version" % binary) == 0)
+ if not found:
print("WARNING: bsvup not found. bsv metanet won't be updated")
def __init__(self, keyfile):