diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2021-09-02 12:24:39 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2021-09-02 12:24:39 +0300 |
commit | 1c3bc7a1d43557e47fbc91f38da250ab7506815e (patch) | |
tree | 37b55358eda74a4a10575b3cf34154878374f116 /bockbuild | |
parent | 0f5996c8cddec0f571c4c70a98ac5333eae1c9bb (diff) |
GitHub is removing support for unauthenticated git: https://github.blog/2021-09-01-improving-git-protocol-security-github/
Diffstat (limited to 'bockbuild')
-rw-r--r-- | bockbuild/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bockbuild/package.py b/bockbuild/package.py index 7d73206..9b9c1ca 100644 --- a/bockbuild/package.py +++ b/bockbuild/package.py @@ -380,7 +380,7 @@ class Package: # if source.startswith ('http://'): # raise Exception ('HTTP downloads are no longer allowed: %s', source) - if source.startswith(('http://', 'https://', 'ftp://')): + if source.startswith(('http://', 'https://', 'ftp://')) and not source.endswith('.git'): cache = get_download_dest(source, self.version) if self.profile.cache_host is not None: cached_source = os.path.join( @@ -1040,7 +1040,7 @@ class GitHubPackage (Package): configure_flags=configure_flags, configure=configure, sources=[ - 'git://github.com/%{organization}/%{name}.git'], + 'https://github.com/%{organization}/%{name}.git'], override_properties=override_properties) |