Fix repo state error handling in pkglistgen
repository_arch_state doesn't raise HTTPError for 404 any more, but that's what pkglistgen uses to skip that repo/arch. Handle None as replacement instead.
This commit is contained in:
parent
2caa5a9e00
commit
440b0f7def
@ -330,10 +330,11 @@ class PkgListGen(ToolBase.ToolBase):
|
|||||||
if not os.path.exists(d):
|
if not os.path.exists(d):
|
||||||
os.makedirs(d)
|
os.makedirs(d)
|
||||||
|
|
||||||
try:
|
# Fetch state before mirroring in-case it changes during download.
|
||||||
# Fetch state before mirroring in-case it changes during download.
|
state = repository_arch_state(self.apiurl, project, repo, arch)
|
||||||
state = repository_arch_state(self.apiurl, project, repo, arch)
|
|
||||||
except HTTPError:
|
if state is None:
|
||||||
|
# Repo might not have this architecture
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Would be preferable to include hash in name, but cumbersome to handle without
|
# Would be preferable to include hash in name, but cumbersome to handle without
|
||||||
|
Loading…
x
Reference in New Issue
Block a user