From d162ba1860a88062f4cd61f8b52fc303ba0b2991 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 7 Aug 2021 00:16:33 +0100 Subject: gentoo resync : 07.08.2021 --- media-gfx/hydrus/files/upnpc.patch | 40 -------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 media-gfx/hydrus/files/upnpc.patch (limited to 'media-gfx/hydrus/files/upnpc.patch') diff --git a/media-gfx/hydrus/files/upnpc.patch b/media-gfx/hydrus/files/upnpc.patch deleted file mode 100644 index ea78f2b70b63..000000000000 --- a/media-gfx/hydrus/files/upnpc.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff --git a/hydrus/core/networking/HydrusNATPunch.py b/hydrus/core/networking/HydrusNATPunch.py -index c959753..6792d89 100644 ---- a/hydrus/core/networking/HydrusNATPunch.py -+++ b/hydrus/core/networking/HydrusNATPunch.py -@@ -3,6 +3,7 @@ import socket - import subprocess - import threading - import traceback -+import shutil - - from hydrus.core import HydrusConstants as HC - from hydrus.core import HydrusData -@@ -18,7 +19,7 @@ if HC.PLATFORM_WINDOWS: - - else: - -- possible_bin_filenames = [ 'upnpc-static', 'upnpc-shared', 'miniupnpc' ] -+ possible_bin_filenames = [ 'upnpc', 'upnpc-static', 'upnpc-shared', 'miniupnpc' ] - - if HC.PLATFORM_LINUX: - -@@ -42,7 +43,17 @@ for filename in possible_bin_filenames: - - UPNPC_PATH = possible_path - -- -+ break -+ -+ maybe_in_path = shutil.which( filename ) -+ -+ if maybe_in_path: -+ -+ UPNPC_PATH = maybe_in_path -+ -+ break -+ -+ - EXTERNAL_IP = {} - EXTERNAL_IP[ 'ip' ] = None - EXTERNAL_IP[ 'time' ] = 0 -- cgit v1.2.3