Skip to content

Commit 809260a

Browse files
committed
mkpkgbreak: add missing change for prev commit
1 parent cd57b93 commit 809260a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: mkpkgbreak/mkpkgbreak

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ def get_package_version(package_name: str) -> str:
3131
response = requests.get(
3232
"https://raw.githubusercontent.com/AOSC-Dev/aosc-os-abbs/stable/{}/{}/spec".format(
3333
package_section, package_directory_name))
34-
if response.status_code != 200:
35-
print("get_package_version: response github.com failed or package doesn't exist in GitHub repo!")
36-
exit(1)
34+
response.raise_for_status()
3735
package_spec = response.text.split("\n")
3836
for i in package_spec:
3937
if i.startswith("VER="):

0 commit comments

Comments
 (0)