diff options
author | Karl Semich <0xloem@gmail.com> | 2016-06-11 06:45:38 -0400 |
---|---|---|
committer | Karl Semich <0xloem@gmail.com> | 2016-06-11 06:45:38 -0400 |
commit | 1d02766160d468797f604f75ad5dca532ec08f4f (patch) | |
tree | d39469d35ef6f8bb6cfb03de2670ae13038ea0d7 /backend/resilient/freenet.py | |
parent | 804aa45fbbaf034b09b0f63ebe75630f02b32052 (diff) | |
download | standingwithresilience-1d02766160d468797f604f75ad5dca532ec08f4f.tar.gz standingwithresilience-1d02766160d468797f604f75ad5dca532ec08f4f.zip |
backend updates
Diffstat (limited to 'backend/resilient/freenet.py')
-rw-r--r-- | backend/resilient/freenet.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/backend/resilient/freenet.py b/backend/resilient/freenet.py index ea72760..0f5e741 100644 --- a/backend/resilient/freenet.py +++ b/backend/resilient/freenet.py @@ -10,10 +10,6 @@ class gitocalypse(git): if not found: print("WARNING: gitocalypse not found, changes won't be synced with freenet") - def __init__(self, pull_remote, push_remote = None): - self.remote = pull_remote - self.push_remote = push_remote - class freesitemgr(): found = (os.system("freesitemgr --version") == 0) if not found: @@ -23,7 +19,7 @@ class freesitemgr(): pass def push(self): - if not ikiwiki.synced: + if not ikiwiki.synced or not found or not running: return False config_path = os.path.join(auth_path, 'freesitemgr') status = os.system("freesitemgr -c '%s' -v -r 1 update" % config_path) |