From nobody Thu Jul 28 17:54:28 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ltyvm6mCkz4XRBp; Thu, 28 Jul 2022 17:54:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ltyvm6DLcz3Tdy; Thu, 28 Jul 2022 17:54:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659030868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xQkWELx3s9Y+P72SLtaW9r3STSrxUkNBaNVXOwE+wS0=; b=swyvPheZBMA84e/XI5mb5hG7wY8JRhjX4Yrh3PniCqb4EWW9SXdJNKk7E9Ji4f3DGyL0Tz HmSHzrzk5Nz4teGJLS6tL/qFqCuEZt3DSmO0yrBSWTOW9u9l6sir9RUDnAIRbYxTGQyHRo Gpv3C07BSL+KSsUjNLxehg4qvGOJ4REG/NT1fsEzyRpY8bejmVx5l6u1DjbaJYqLp6n9mz H24pGWh3+98cUeIZdFmT9LjXm8ma8kRiVuu+GdUQUB6YsQNxH/1lC8s/Oa3hqPKUSmlrPf 2fq2Ym1Pel7MaDj1DNB+YwjwFEYiVdfYJp86Tv6hUAj2NBAbAc4O7bWaWsdCog== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ltyvm5GKWz154k; Thu, 28 Jul 2022 17:54:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26SHsSbV001393; Thu, 28 Jul 2022 17:54:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26SHsSj0001392; Thu, 28 Jul 2022 17:54:28 GMT (envelope-from git) Date: Thu, 28 Jul 2022 17:54:28 GMT Message-Id: <202207281754.26SHsSj0001392@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: e034480085e7 - main - www/yt-dlp: Customize the message recommeding to update yt-dlp List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e034480085e7a5ba65d0762c5929b7ed41883c08 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659030868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xQkWELx3s9Y+P72SLtaW9r3STSrxUkNBaNVXOwE+wS0=; b=ibjMaOA6bGfzPNNuDuQQiSQOldRdghWhkvnDi4DujncYWQRtQ66U698+6CR/svvwOStYHp RCOfIwWusDmyZ7d64t0IhlPtPVElBphEgAe1/kHV/BZbTQ23aV4gEwN2AaSI0cp971sINv e1WJEVqEwcxLnTz3AndOl5qUXCrKQ9LcwbWQuHAXyNZKD2LZFUiwcXR9KMd9t+FJ6vWw9D EQKxtVAmt4UxUZUmmj25vUjQapbm4W1EfARu0stUHqrDlEpvtWuccYzma74JiHD9Ds7nic BGSUPCt8aXAsRro4wTDxFYwD9KLUPX7thjbYZJx2m7wtZpB29H6GFIOOr1LqEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659030868; a=rsa-sha256; cv=none; b=rtyy0wbTAoA6s4O61NQYK+eMMvpz9ewFTxuWWoPT/56lCdMHh4HhdSaLlUPEn3UqF+t0SJ l3HAjrrl8Q19MpXYOLZiCBNrtve4OpSJ+3MFOLFwF4EJFlX+pcdtP4AcR38+S0NctdogeG 19rOH/b5jTInwsSZHJJ8d8siN20uQoQtHJ6QD5P8WnLOLTVWrghE/A8euyPOzAQ3rWGv01 xpnmwUD3Obf1x0wsrjf5HlZbbeOt5FYI0/qNpJ+eumSNFufq55EbmA+gzU5jfMhEg1p/lR UsuqMO6tYUnUnTIIkWtTMHVsMA/qceOwExBXhWoBQ9PEN7xPrEZ6rwNXHzIItA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=e034480085e7a5ba65d0762c5929b7ed41883c08 commit e034480085e7a5ba65d0762c5929b7ed41883c08 Author: Yuri Victorovich AuthorDate: 2022-07-28 17:49:39 +0000 Commit: Yuri Victorovich CommitDate: 2022-07-28 17:54:25 +0000 www/yt-dlp: Customize the message recommeding to update yt-dlp ... for FreeBSD. --- www/yt-dlp/Makefile | 1 + www/yt-dlp/files/patch-yt__dlp_update.py | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/www/yt-dlp/Makefile b/www/yt-dlp/Makefile index c0e696fb4d86..80d0a1dd34a3 100644 --- a/www/yt-dlp/Makefile +++ b/www/yt-dlp/Makefile @@ -1,5 +1,6 @@ PORTNAME= yt-dlp DISTVERSION= 2022.07.18 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= yuri@FreeBSD.org diff --git a/www/yt-dlp/files/patch-yt__dlp_update.py b/www/yt-dlp/files/patch-yt__dlp_update.py index 605de73d672c..964f4d186e10 100644 --- a/www/yt-dlp/files/patch-yt__dlp_update.py +++ b/www/yt-dlp/files/patch-yt__dlp_update.py @@ -1,8 +1,8 @@ - this patch prevents -U from updating yt-dlp - it makes it "unrecognized" ---- yt_dlp/update.py.orig 2022-06-22 01:54:04 UTC +--- yt_dlp/update.py.orig 2022-07-18 00:03:50 UTC +++ yt_dlp/update.py -@@ -29,7 +29,7 @@ def _get_variant_and_executable_path(): +@@ -39,7 +39,7 @@ def _get_variant_and_executable_path(): path = os.path.dirname(__file__) if isinstance(__loader__, zipimporter): @@ -11,3 +11,12 @@ 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': 'It looks like you installed yt-dlp with a package manager, pip or setup.py; Use that to update', ++ 'unknown': 'Please use the command \'pkg upgrade yt-dlp\' to upgrade.', + 'other': 'It looks like you are using an unofficial build of yt-dlp; Build the executable again', + } +