From 32e9559e6e9a7e38a5adc08316d7726845331a76 Mon Sep 17 00:00:00 2001 From: Pranav Jerry Date: Wed, 29 Sep 2021 08:37:59 +0530 Subject: [PATCH] fixed bug in main() For some days I've been testing this program without realising that gateway_mode was set to off every time. Remove dependencies from install in Makefile, which we don't need anyway, since it builds twice when installing from the AUR PKGBUILD. --- Makefile | 2 +- naxalnet/scripts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4f8e5f3..e50aafc 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ build: build/lib/naxalnet/__init__.py build/lib/naxalnet/__init__.py: naxalnet/__init__.py $(PYTHON) setup.py build -install: build +install: $(PYTHON) setup.py install --root="$(DESTDIR)" --optimize=1 --skip-build uninstall: diff --git a/naxalnet/scripts.py b/naxalnet/scripts.py index 27b5389..cd45db8 100644 --- a/naxalnet/scripts.py +++ b/naxalnet/scripts.py @@ -260,7 +260,7 @@ def main(): try: setup_devices() - setup_mesh() + setup_mesh(gateway_mode=gateway_mode) # Start the daemon so that setup_devices() is called every # time a device is connected or removed.