Skip to content

Commit

Permalink
fixup! fixup! fixup! Added checker to ensure that the currently used …
Browse files Browse the repository at this point in the history
…mariadb repository is available
  • Loading branch information
Mikhail Sandakov committed Dec 27, 2023
1 parent 80ae9f8 commit af616ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actions/mariadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def _do_check(self) -> bool:
return True

for repofile in repofiles:
print("Checking {}".format(repofile))
for repo in rpm.extract_repodata(repofile):
repo_id, _, repo_baseurl, _, _ = repo
if ".mariadb.org" not in repo_baseurl:
Expand All @@ -34,6 +35,8 @@ def _do_check(self) -> bool:
repo_baseurl.replace("$releasever", "7")
repo_baseurl.replace("$basearch", "x86_64")

print("going to send curl {}".format(repo))

result = subprocess.run(["curl", "-s", "-o", "/dev/null", repo_baseurl])
if result.returncode != 0:
self.description = self.description.format(repo_id)
Expand Down

0 comments on commit af616ca

Please sign in to comment.