From 1d02766160d468797f604f75ad5dca532ec08f4f Mon Sep 17 00:00:00 2001 From: Karl Semich <0xloem@gmail.com> Date: Sat, 11 Jun 2016 06:45:38 -0400 Subject: backend updates --- backend/resilient/freenet.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'backend/resilient/freenet.py') 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) -- cgit v1.2.3