Skip to content

Commit

Permalink
is_vcs_package_ood(): replace git:// with https:// in the fallbac…
Browse files Browse the repository at this point in the history
…k method as well.
  • Loading branch information
trizen committed Dec 1, 2022
1 parent e7c9b74 commit eef1eca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trizen
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ sub get_gitlab_commit_date ($commit_info) {
sub is_commit_new ($commit_date, $pkgname) {

# Get the build-date of the package
my $build_date = get_local_build_date($pkgname) // return;
my $build_date = get_local_build_date($pkgname) || return 0; # maybe?

if ($lconfig{debug}) {
msg(":: <<$pkgname>> comparing <<$build_date>> <=> <<$commit_date>>");
Expand Down Expand Up @@ -2425,6 +2425,7 @@ sub is_vcs_package_ood ($pkgname) {
my $source_url = $1;

$lconfig{quiet} || msg(":: <<$pkgname>> checking <<$source_url>> for updates...");
$source_url =~ s{^git://github\.com/}{https://github.com/};

return has_new_git_commit($source_url, $pkgname);
}
Expand Down

0 comments on commit eef1eca

Please sign in to comment.