transifex-cli: update to 1.3.0, disable self-updates
This commit is contained in:
parent
41f0cdd852
commit
bb5ae3aee7
14
srcpkgs/transifex-cli/patches/disable-self-updates.patch
Normal file
14
srcpkgs/transifex-cli/patches/disable-self-updates.patch
Normal file
@ -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()
|
||||
}
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user