about summary refs log tree commit diff
path: root/pkgs/by-name/pe/persepolis/0003-Search-PATH-for-aria2c-on-darwin.patch
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-05-18 00:12:56 +0000
committerGitHub <noreply@github.com>2024-05-18 00:12:56 +0000
commit154bc6bfe607be732374fc57554b165e692b77a8 (patch)
tree60ad3d3927c23db46d7c904b3293906d56ef1f7d /pkgs/by-name/pe/persepolis/0003-Search-PATH-for-aria2c-on-darwin.patch
parent58045842897730e7b47c578ad9f175dbf35ad782 (diff)
parent8a33016960fc556929f10df9efae7fb372877441 (diff)
Merge master into haskell-updates
Diffstat (limited to 'pkgs/by-name/pe/persepolis/0003-Search-PATH-for-aria2c-on-darwin.patch')
-rw-r--r--pkgs/by-name/pe/persepolis/0003-Search-PATH-for-aria2c-on-darwin.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/by-name/pe/persepolis/0003-Search-PATH-for-aria2c-on-darwin.patch b/pkgs/by-name/pe/persepolis/0003-Search-PATH-for-aria2c-on-darwin.patch
new file mode 100644
index 0000000000000..505961d1ce6b7
--- /dev/null
+++ b/pkgs/by-name/pe/persepolis/0003-Search-PATH-for-aria2c-on-darwin.patch
@@ -0,0 +1,29 @@
+---
+ persepolis/scripts/download.py | 10 +---------
+ 1 file changed, 1 insertion(+), 9 deletions(-)
+
+diff --git a/persepolis/scripts/download.py b/persepolis/scripts/download.py
+index aaabb35..69676d3 100644
+--- a/persepolis/scripts/download.py
++++ b/persepolis/scripts/download.py
+@@ -72,16 +72,8 @@ def startAria():
+ 
+     # in macintosh
+     elif os_type == OS.OSX:
+-        if aria2_path == "" or aria2_path == None or os.path.isfile(str(aria2_path)) == False:
+-
+-            cwd = sys.argv[0]
+-            current_directory = os.path.dirname(cwd)
+-            aria2d = os.path.join(current_directory, 'aria2c')
+ 
+-        else:
+-            aria2d = aria2_path
+-
+-        subprocess.Popen([aria2d, '--no-conf',
++        subprocess.Popen(['aria2c', '--no-conf',
+                           '--enable-rpc', '--rpc-listen-port=' + str(port),
+                           '--rpc-max-request-size=2M',
+                           '--rpc-listen-all', '--quiet=true'],
+-- 
+2.39.3 (Apple Git-145)
+