Merge pull request 'Revert "Only stop importing when it isn't a jengelh repository"' (#35) from adamm/main into main

Reviewed-on: importers/git-importer#35
This commit is contained in:
Dirk Mueller 2025-02-28 21:02:03 +01:00
commit d605920ae2

View File

@ -268,12 +268,9 @@ class Importer:
return self.scmsync_cache[key]
root = self.obs._meta(key)
scmsync = None
scmsync_exists = False
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/')
if root is not None:
scmsync_exists = root.find('scmsync') is not None
self.scmsync_cache[key] = scmsync_exists
return scmsync_exists