Skip to content

Commit

Permalink
1.10.2: fixed KPM update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
k4yt3x committed Dec 12, 2020
1 parent 2665e64 commit 1d30404
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# KPM Changelog

## 1.10.2 (December 12, 2020)

- Fixed KPM update errors

## 1.10.1 (December 12, 2020)

- Continue running the program when GitHub API requests fail
Expand Down Expand Up @@ -32,4 +36,4 @@

## 1.7.2 (October 19, 2018)

- I know this is not wise but, updated for avalon framework 1.6.1.
- I know this is not wise but, updated for avalon framework 1.6.1.
8 changes: 3 additions & 5 deletions src/kpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from avalon_framework import Avalon
import requests

VERSION = "1.10.1"
VERSION = "1.10.2"

# global constants
INTERNET_TEST_PAGE = "http://detectportal.firefox.com/success.txt"
Expand All @@ -53,10 +53,8 @@ def upgrade_kpm():
).json()

for asset in latest_json["assets"]:
if latest_json["assets"][asset]["name"] == "kpm.py":
latest_version_url = latest_json["assets"][asset][
"browser_download_url"
]
if asset["name"] == "kpm.py":
latest_version_url = asset["browser_download_url"]
break
else:
Avalon.warning("Unable to find the latest version's download URL")
Expand Down

0 comments on commit 1d30404

Please sign in to comment.