2 Commits
main ... main

Author SHA1 Message Date
d605920ae2 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
2025-02-28 21:02:03 +01:00
9fee585897 Revert "Only stop importing when it isn't a jengelh repository"
this breaks detection of scmsync projects. Jan can live with not synced
git for a few weeks

This reverts commit 44b4d690db.
2025-02-28 16:14:58 +01:00

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