Skip to content

Commit 430ee3b

Browse files
committed
distro: support GitLab hosted pkgs and manifests
1 parent 2619905 commit 430ee3b

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
@@ -192,6 +192,9 @@ def get_package_xml_for_additional_package(self, pkg_info):
192192
if "github.com" in raw_url_base:
193193
raw_url = self._construct_raw_url_github(pkg_info)
194194
return self._download_raw_pkg_xml_or_cached(url=raw_url)
195+
if "gitlab.com" in raw_url_base:
196+
raw_url = self._construct_raw_url_gitlab(pkg_info)
197+
return self._download_raw_pkg_xml_or_cached(url=raw_url)
195198
raise RuntimeError(f"Cannot handle unknown repository hoster: {raw_url_base}")
196199

197200
def _download_raw_pkg_xml_or_cached(self, url):

0 commit comments

Comments
 (0)