From 44b4d690dbc8532125399298d8765d2548c32b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Mon, 2 Dec 2024 09:34:49 +0100 Subject: [PATCH] Only stop importing when it isn't a jengelh repository --- lib/importer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/importer.py b/lib/importer.py index e72ffab..b82faa8 100644 --- a/lib/importer.py +++ b/lib/importer.py @@ -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