diff --git a/debian/patches/Fix-syntax-warnings.patch b/debian/patches/Fix-syntax-warnings.patch new file mode 100644 index 0000000..9b796fd --- /dev/null +++ b/debian/patches/Fix-syntax-warnings.patch @@ -0,0 +1,23 @@ +From: Sophie Brun +Date: Tue, 9 Mar 2021 12:06:05 +0100 +Subject: Fix syntax warnings + +Bug: https://bugs.kali.org/view.php?id=6626 + +--- + data/agent/agent.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/data/agent/agent.py b/data/agent/agent.py +index 73fe4fc..6af9780 100644 +--- a/data/agent/agent.py ++++ b/data/agent/agent.py +@@ -356,7 +356,7 @@ def process_packet(packetType, data, resultID): + cmdargs = data + + path = '/' # default to root +- if cmdargs is not None and cmdargs != '' and cmdargs != '/': # strip trailing slash for uniformity ++ if cmdargs != None and cmdargs != '' and cmdargs != '/': # strip trailing slash for uniformity + path = cmdargs.rstrip('/') + if path[0] != '/': # always scan relative to root for uniformity + path = '/{0}'.format(path) diff --git a/debian/patches/series b/debian/patches/series index 8fcf61c..cec839c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@ force-sudo-usage change-debug-downloads-dirs.patch change-default-database-location.patch +Fix-syntax-warnings.patch