Skip to content

Commit

Permalink
fix(kernel_crawler): add a check for pkglist_url not none in get_repo…
Browse files Browse the repository at this point in the history
…db_url for rpm crawler.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP authored and poiana committed Oct 28, 2024
1 parent bcf6552 commit 67d28b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel_crawler/rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def get_repodb_url(self):
if not repomd:
return None
pkglist_url = self.get_loc_by_xpath(repomd, '//repo:repomd/repo:data[@type="primary_db"]/repo:location/@href')
if not pkglist_url:
return None
return self.base_url + pkglist_url

def get_package_tree(self, filter=''):
Expand Down

0 comments on commit 67d28b9

Please sign in to comment.