Skip to content

Commit

Permalink
Fix postinst on new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed Nov 3, 2022
1 parent f91fe2d commit 2a98d8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ubuntu-make (22.10) kinetic; urgency=medium
ubuntu-make (22.10) UNRELEASED; urgency=medium

[ Galileo Sartor ]
* Update url parsing and tests
Expand Down
6 changes: 5 additions & 1 deletion debian/ubuntu-make.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ set -e

case "$1" in
configure)
register-python-argcomplete3 umake > /etc/bash_completion.d/umake
if [ -f "$(which register-python-argcomplete3)" ]; then
register-python-argcomplete3 umake > /etc/bash_completion.d/umake
else
register-python-argcomplete umake > /etc/bash_completion.d/umake
fi
;;

*)
Expand Down
2 changes: 1 addition & 1 deletion umake/frameworks/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parse_download_link(self, line, in_download):
version = re.search(r'release-notes-(.*).md', item["name"]).group(1)
with suppress(AttributeError):
self.new_download_url = \
f"https://download2.gluonhq.com/openjfx/{version}/openjfx-{version}_linux-x64_bin-sdk.zip.sha256"
"https://download2.gluonhq.com/openjfx/{}/openjfx-{}_linux-x64_bin-sdk.zip.sha256".format(version, version)
return (None, in_download)

@MainLoop.in_mainloop_thread
Expand Down

0 comments on commit 2a98d8f

Please sign in to comment.