403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/www/yt-dlp/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/www/yt-dlp/files/patch-yt__dlp_update.py
- this patch prevents -U from updating yt-dlp - it makes it "unrecognized"

--- yt_dlp/update.py.orig	2022-08-08 22:15:24 UTC
+++ yt_dlp/update.py
@@ -39,7 +39,7 @@ def _get_variant_and_executable_path():
 
     path = os.path.dirname(__file__)
     if isinstance(__loader__, zipimporter):
-        return 'zip', os.path.join(path, '..')
+        return 'unknown', os.path.join(path, '..')
     elif (os.path.basename(sys.argv[0]) in ('__main__.py', '-m')
           and os.path.exists(os.path.join(path, '../.git/HEAD'))):
         return 'source', path
@@ -64,7 +64,7 @@ _NON_UPDATEABLE_REASONS = {
     **{variant: f'Auto-update is not supported for unpackaged {name} executable; Re-download the latest release'
        for variant, name in {'win32_dir': 'Windows', 'darwin_dir': 'MacOS', 'linux_dir': 'Linux'}.items()},
     'source': 'You cannot update when running from source code; Use git to pull the latest changes',
-    'unknown': 'You installed yt-dlp with a package manager or setup.py; Use that to update',
+    'unknown': 'Please use the command \'pkg upgrade yt-dlp\' to upgrade.',
     'other': 'You are using an unofficial build of yt-dlp; Build the executable again',
 }
 

Youez - 2016 - github.com/yon3zu
LinuXploit