From 0df726eed89c1b6c49df019aa6d2b08fc6fb44ee Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 7 Aug 2026 10:26:11 +0200 Subject: gitea-cli, python3-telethon: quieter tarball name fallback --- gitea-cli/gitea-cli.SlackBuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gitea-cli/gitea-cli.SlackBuild') diff --git a/gitea-cli/gitea-cli.SlackBuild b/gitea-cli/gitea-cli.SlackBuild index 6e2d457..393dbbf 100644 --- a/gitea-cli/gitea-cli.SlackBuild +++ b/gitea-cli/gitea-cli.SlackBuild @@ -68,10 +68,13 @@ cd $TMP # The gitea archive lands under one of two names depending on the downloader: # "v$VERSION.tar.gz" (URL path basename, e.g. plain wget) or # "$SRCNAM-v$VERSION.tar.gz" (Content-Disposition, e.g. slackrepo/sbodl). -# Accept either, the way other gitea-sourced SBo packages do. It extracts to a -# top dir named "$SRCNAM" (tea), not "$SRCNAM-$VERSION". +# Accept either: there's no way to know which tool the user downloaded with. +# Note "sbodl -n" ignores Content-Disposition, for checksum verification. +# It extracts to a top dir named "$SRCNAM" (tea), not "$SRCNAM-$VERSION". rm -rf $SRCNAM -tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$SRCNAM-v$VERSION.tar.gz +TARBALL=$CWD/$SRCNAM-v$VERSION.tar.gz +[ -e $TARBALL ] || TARBALL=$CWD/v$VERSION.tar.gz +tar xvf $TARBALL cd $SRCNAM chown -R root:root . -- cgit v1.2.3