diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-07 10:26:11 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-07 10:26:11 +0200 |
| commit | 0df726eed89c1b6c49df019aa6d2b08fc6fb44ee (patch) | |
| tree | fae9b012e960e51bd9a0c2f8bfe4714b13c37d1d /python3-telethon/python3-telethon.SlackBuild | |
| parent | a9c5450157b0a72f54a6b887e766659e1f6fd2d9 (diff) | |
| download | my-slackbuilds-0df726eed89c1b6c49df019aa6d2b08fc6fb44ee.tar.gz my-slackbuilds-0df726eed89c1b6c49df019aa6d2b08fc6fb44ee.zip | |
gitea-cli, python3-telethon: quieter tarball name fallback
Diffstat (limited to 'python3-telethon/python3-telethon.SlackBuild')
| -rw-r--r-- | python3-telethon/python3-telethon.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python3-telethon/python3-telethon.SlackBuild b/python3-telethon/python3-telethon.SlackBuild index c1d2510..9680442 100644 --- a/python3-telethon/python3-telethon.SlackBuild +++ b/python3-telethon/python3-telethon.SlackBuild @@ -77,10 +77,14 @@ cd $TMP # The codeberg archive lands under one of two names depending on the # downloader: "v$VERSION.tar.gz" (URL path basename, e.g. plain wget) or # "Telethon-v$VERSION.tar.gz" (Content-Disposition, which uses the upstream -# repo's capitalization, e.g. slackrepo/sbodl). +# repo's capitalization, e.g. slackrepo/sbodl). 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", not "$SRCNAM-$VERSION". rm -rf $SRCNAM -tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/Telethon-v$VERSION.tar.gz +TARBALL=$CWD/Telethon-v$VERSION.tar.gz +[ -e $TARBALL ] || TARBALL=$CWD/v$VERSION.tar.gz +tar xvf $TARBALL cd $SRCNAM chown -R root:root . find -L . \ |
