Skip to content

Commit 0fa52f4

Browse files
committed
distro: support GitLab hosted pkgs and manifests
1 parent 096ce10 commit 0fa52f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vinca/distro.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ def get_package_xml_for_additional_package(self, pkg_info):
194194
if "github.com" in raw_url_base:
195195
raw_url = self._construct_raw_url_github(pkg_info)
196196
return self._download_raw_pkg_xml_or_cached(url=raw_url)
197+
if "gitlab.com" in raw_url_base:
198+
raw_url = self._construct_raw_url_gitlab(pkg_info)
199+
return self._download_raw_pkg_xml_or_cached(url=raw_url)
197200
raise RuntimeError(f"Cannot handle unknown repository hoster: {raw_url_base}")
198201

199202
def _download_raw_pkg_xml_or_cached(self, url):

0 commit comments

Comments
 (0)