From 5eb93f426412c80e40bc95865fb180aeae0ef7f3 Mon Sep 17 00:00:00 2001 From: Harsh Barsaiyan Date: Tue, 21 May 2024 18:59:51 +0530 Subject: [PATCH] add support for mirrors for fedora --- bin/package_build.py | 93 ++++++++++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 37 deletions(-) diff --git a/bin/package_build.py b/bin/package_build.py index d32b558..f25bee3 100755 --- a/bin/package_build.py +++ b/bin/package_build.py @@ -1,4 +1,6 @@ #!/usr/bin/python3 +from urllib.parse import unquote +from bs4 import BeautifulSoup import requests import re import sys @@ -112,46 +114,63 @@ def clefos(): print(f"Saved!\nfilename: {q}") def fedora(): - global DATA,DATA_FILE_LOCATION + global DATA, DATA_FILE_LOCATION sources = [38, 39, 40] - pkg_reg = r'