From 4fcf3d69cdaa325060e55330a9e3feaacac4cb30 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 12 May 2019 09:21:17 -0500 Subject: [PATCH] fix config setup not returning bool for existing data directory --- .../communicatorutils/daemonqueuehandler.py | 2 +- onionr/communicatorutils/lookupadders.py | 2 +- onionr/onionr.py | 2 +- onionr/onionrservices/__init__.py | 19 +++++++++++++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/onionr/communicatorutils/daemonqueuehandler.py b/onionr/communicatorutils/daemonqueuehandler.py index 7b602f02..5c906f64 100644 --- a/onionr/communicatorutils/daemonqueuehandler.py +++ b/onionr/communicatorutils/daemonqueuehandler.py @@ -1,5 +1,5 @@ ''' - Onionr - P2P Microblogging Platform & Social network + Onionr - P2P Anonymous Storage Network Handle daemon queue commands in the communicator ''' diff --git a/onionr/communicatorutils/lookupadders.py b/onionr/communicatorutils/lookupadders.py index 14a2d6e0..6b9f474d 100644 --- a/onionr/communicatorutils/lookupadders.py +++ b/onionr/communicatorutils/lookupadders.py @@ -1,5 +1,5 @@ ''' - Onionr - P2P Microblogging Platform & Social network + Onionr - P2P Anonymous Storage Network Lookup new peer transport addresses using the communicator ''' diff --git a/onionr/onionr.py b/onionr/onionr.py index 1c19c6d5..bc176c12 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -150,7 +150,7 @@ class Onionr: self.killed = True def setupConfig(dataDir, self = None): - setupconfig.setup_config(dataDir, self) + return setupconfig.setup_config(dataDir, self) def cmdHeader(self): if len(sys.argv) >= 3: diff --git a/onionr/onionrservices/__init__.py b/onionr/onionrservices/__init__.py index 21ded6ec..cae33ab2 100644 --- a/onionr/onionrservices/__init__.py +++ b/onionr/onionrservices/__init__.py @@ -1,3 +1,22 @@ +''' + Onionr - P2P Anonymous Storage Network + + Onionr services provide the server component to direct connections +''' +''' + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +''' import time import stem import core