From 2e76fb0f2332ce7f9714d009df5ca3c0dfacde4a Mon Sep 17 00:00:00 2001 From: Rudra Date: Wed, 10 Jan 2024 00:14:55 +0530 Subject: [PATCH] check for gitlab debian instance --- updatesnap/SnapModule/snapmodule.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/updatesnap/SnapModule/snapmodule.py b/updatesnap/SnapModule/snapmodule.py index f56db1b..d20d369 100644 --- a/updatesnap/SnapModule/snapmodule.py +++ b/updatesnap/SnapModule/snapmodule.py @@ -394,6 +394,9 @@ def _is_gitlab(self, repository): """ Evaluates the URI of a repository and returns an URI object with it, but only if it is a Gitlab URI. """ uri = self._get_uri(repository, 3) + # Check for gitlab instance used by debian + if "salsa" in uri.netloc: + return uri if "gitlab" not in uri.netloc: return None return uri