Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flameshot to use jammy release until kinetic is built #627

Merged
merged 3 commits into from Nov 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions 01-main/packages/flameshot
@@ -1,9 +1,14 @@
DEFVER=1
CODENAMES_SUPPORTED="buster bullseye focal jammy kinetic"
get_github_releases "https://api.github.com/repos/flameshot-org/flameshot/releases/latest"
if [ "${ACTION}" != "prettylist" ]; then
URL="$(grep "browser_download_url.*\.${UPSTREAM_ID}-${UPSTREAM_RELEASE}\.${HOST_ARCH}\.deb\"" "${CACHE_DIR}/${APP}.json" | head -n1 | cut -d'"' -f4)"
case ${UPSTREAM_RELEASE} in
22.10) ONLY_ONE="tail -1" ;;
*) ONLY_ONE="head -1"
esac
URL="$(grep -E "browser_download_url.*\.${UPSTREAM_ID}-${UPSTREAM_RELEASE:0:2}.*\.${HOST_ARCH}\.deb\"" "${CACHE_DIR}/${APP}.json" | $ONLY_ONE | cut -d'"' -f4)"
local VERSION_TMP="${URL##*/flameshot-}"
VERSION_PUBLISHED="${VERSION_TMP%%[-.]ubuntu*}"
VERSION_PUBLISHED="${VERSION_TMP%%[-.]${UPSTREAM_ID}*}"
philclifford marked this conversation as resolved.
Show resolved Hide resolved
fi
PRETTY_NAME="Flameshot"
WEBSITE="https://flameshot.org/"
Expand Down