Skip to content

Commit

Permalink
kernel: Move to new mainline link
Browse files Browse the repository at this point in the history
  • Loading branch information
darktohka committed Mar 23, 2024
1 parent 5f6412c commit a2861cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernelcollector/package_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get_kernel_releases(self):
def get_ubuntu_releases(self):
# We use the Ubuntu kernel mainline as the build source.
# This method will return a list of releases and prereleases, sorted in ascending order.
with requests.get('https://kernel.ubuntu.com/~kernel-ppa/mainline') as site:
with requests.get('https://kernel.ubuntu.com/mainline') as site:
data = site.content

soup = BeautifulSoup(data, 'html.parser')
Expand Down Expand Up @@ -164,7 +164,7 @@ def get_ubuntu_releases(self):

def get_daily_releases(self):
# We have to find the newest daily release version
with requests.get('https://kernel.ubuntu.com/~kernel-ppa/mainline/daily') as site:
with requests.get('https://kernel.ubuntu.com/mainline/daily') as site:
data = site.content

soup = BeautifulSoup(data, 'html.parser')
Expand All @@ -188,7 +188,7 @@ def get_daily_releases(self):
return sorted(versions, reverse=True)

def get_files(self, release_link, release_type):
with requests.get(f'https://kernel.ubuntu.com/~kernel-ppa/mainline/{release_link}') as site:
with requests.get(f'https://kernel.ubuntu.com/mainline/{release_link}') as site:
data = site.content

files = {}
Expand Down Expand Up @@ -295,7 +295,7 @@ def download_and_repack(self, release_link, release_name, release_type, pkg_name

for i, filename in enumerate(filenames):
primary_file = i == 0
link = f'https://kernel.ubuntu.com/~kernel-ppa/mainline/{release_link}/{filename}'
link = f'https://kernel.ubuntu.com/mainline/{release_link}/{filename}'

# Download the .deb
logging.info(f'Downloading package {pkg_name} (release v{release_name}) from {link}')
Expand Down

0 comments on commit a2861cd

Please sign in to comment.