forked from importers/git-importer
Only stop importing when it isn't a jengelh repository
This commit is contained in:
parent
a69e861614
commit
44b4d690db
@ -268,9 +268,12 @@ class Importer:
|
|||||||
return self.scmsync_cache[key]
|
return self.scmsync_cache[key]
|
||||||
|
|
||||||
root = self.obs._meta(key)
|
root = self.obs._meta(key)
|
||||||
|
scmsync = None
|
||||||
scmsync_exists = False
|
scmsync_exists = False
|
||||||
if root is not None:
|
if root and root.find('scmsync') is not None:
|
||||||
scmsync_exists = 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
|
self.scmsync_cache[key] = scmsync_exists
|
||||||
return scmsync_exists
|
return scmsync_exists
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user