Skip to content

Commit

Permalink
Fix flameshot to use jammy release until kinetic is built (wimpysworl…
Browse files Browse the repository at this point in the history
…d#627)

* jammy version works fine and will upgrade when kinetic is built

* fixed to work with debian too

* But lets not break jammy when kinetic arrives
  • Loading branch information
philclifford committed Nov 20, 2022
1 parent 3bf0f4f commit d8ffb89
Showing 1 changed file with 7 additions and 2 deletions.
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}*}"
fi
PRETTY_NAME="Flameshot"
WEBSITE="https://flameshot.org/"
Expand Down

0 comments on commit d8ffb89

Please sign in to comment.