forked from importers/git-importer
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d605920ae2 | |||
9fee585897 |
@@ -268,12 +268,9 @@ 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 and root.find('scmsync') is not None:
|
if root is not None:
|
||||||
scmsync = root.find('scmsync').text
|
scmsync_exists = root.find('scmsync') is not None
|
||||||
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user