Skip to content

Commit 38b3d1c

Browse files
committed
constant for deb repo url
1 parent 222809f commit 38b3d1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/gardenlinux/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,4 @@
154154
S3_DOWNLOADS_DIR = Path(os.path.dirname(__file__)) / ".." / "s3_downloads"
155155

156156
GLVD_BASE_URL = "https://glvd.ingress.glvd.gardnlinux.shoot.canary.k8s-hana.ondemand.com/v1"
157+
GL_DEB_REPO_BASE_URL = "https://packages.gardenlinux.io/gardenlinux"

src/gardenlinux/github/release_notes/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
from gardenlinux.apt import DebsrcFile, GardenLinuxRepo
77
from gardenlinux.apt.package_repo_info import compare_repo
8-
from gardenlinux.constants import REQUESTS_TIMEOUTS
8+
from gardenlinux.constants import GL_DEB_REPO_BASE_URL, REQUESTS_TIMEOUTS
99

1010

1111
def get_package_list(gardenlinux_version):
12-
url = f"https://packages.gardenlinux.io/gardenlinux/dists/{gardenlinux_version}/main/binary-amd64/Packages.gz"
12+
url = f"{GL_DEB_REPO_BASE_URL}/dists/{gardenlinux_version}/main/binary-amd64/Packages.gz"
1313
response = requests.get(url, timeout=REQUESTS_TIMEOUTS)
1414
response.raise_for_status()
1515

0 commit comments

Comments
 (0)