From 2b24eeb56e3591b4a64b653e36a42dfba7bbfd72 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Thu, 28 Jul 2022 10:11:14 +0200 Subject: [PATCH 1/2] transifex-cli: update to 1.3.0 --- srcpkgs/transifex-cli/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/transifex-cli/template b/srcpkgs/transifex-cli/template index 999b461c7c51..c8d753ad7226 100644 --- a/srcpkgs/transifex-cli/template +++ b/srcpkgs/transifex-cli/template @@ -1,6 +1,6 @@ # Template file for 'transifex-cli' pkgname=transifex-cli -version=1.2.1 +version=1.3.0 revision=1 wrksrc="cli-${version}" build_style=go @@ -12,7 +12,7 @@ license="Apache-2.0" homepage="https://github.com/transifex/cli" changelog="https://github.com/transifex/cli/releases" distfiles="https://github.com/transifex/cli/archive/refs/tags/v${version}.tar.gz" -checksum=f8a76381294cdd75872de5b69acf2781d912e3a7e5e870bc41f0ee358715a3be +checksum=e1cbf24e4c0dcb08d3d13c543e36156b50d420e6cc6198f30fba354016f4fd32 post_install() { mv ${DESTDIR}/usr/bin/{cli,transifex} From 4ecfe9e142cb9ddafc317e4dc5d865581f814320 Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Thu, 28 Jul 2022 16:20:07 +0200 Subject: [PATCH 2/2] transifex-cli: disable self-updates --- .../patches/disable-self-updates.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/transifex-cli/patches/disable-self-updates.patch diff --git a/srcpkgs/transifex-cli/patches/disable-self-updates.patch b/srcpkgs/transifex-cli/patches/disable-self-updates.patch new file mode 100644 index 000000000000..b2ae0b0fd224 --- /dev/null +++ b/srcpkgs/transifex-cli/patches/disable-self-updates.patch @@ -0,0 +1,14 @@ +diff --git a/internal/txlib/update.go b/internal/txlib/update.go +index 98b6f6d..8b397a9 100644 +--- a/internal/txlib/update.go ++++ b/internal/txlib/update.go +@@ -18,6 +18,9 @@ type UpdateCommandArguments struct { + } + + func UpdateCommand(arguments UpdateCommandArguments) error { ++ fmt.Println("This version cannot perform self-updates") ++ return nil ++ + if arguments.Debug { + selfupdate.EnableLog() + }