Only stop importing when it isn't a jengelh repository

This commit is contained in:
Dirk Müller 2024-12-02 09:34:49 +01:00
parent a69e861614
commit 44b4d690db
No known key found for this signature in database

View File

@ -268,9 +268,12 @@ class Importer:
return self.scmsync_cache[key]
root = self.obs._meta(key)
scmsync = None
scmsync_exists = False
if root is not None:
scmsync_exists = root.find('scmsync') is not None
if root and root.find('scmsync') is not None:
scmsync = root.find('scmsync').text
if scmsync:
scmsync_exists = scmsync.startswith('https://src.opensuse.org/pool/')
self.scmsync_cache[key] = scmsync_exists
return scmsync_exists