Bug 39876: Add build-git-snapshot type resolution
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 85b65afd1d)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
99f9213f5c
commit
def3de0564
|
|
@ -128,8 +128,9 @@ Lists Perl files (with extensions .pl, .PL, .pm, .t) that have been modified wit
|
|||
|
||||
sub ls_perl_files {
|
||||
my ($self) = @_;
|
||||
my $cmd = sprintf q{git ls-files '*.pl' '*.PL' '*.pm' '*.t' svc opac/svc %s}, $self->build_git_exclude('pl');
|
||||
my @files = qx{$cmd};
|
||||
my $cmd = sprintf q{git ls-files '*.pl' '*.PL' '*.pm' '*.t' svc opac/svc debian/build-git-snapshot %s},
|
||||
$self->build_git_exclude('pl');
|
||||
my @files = qx{$cmd};
|
||||
chomp for @files;
|
||||
return @files;
|
||||
}
|
||||
|
|
@ -179,6 +180,7 @@ sub get_filetype {
|
|||
return 'pl' if $file =~ m{^svc} || $file =~ m{^opac/svc};
|
||||
return 'pl' if $file =~ m{\.pl$} || $file =~ m{\.pm} || $file =~ m{\.t$};
|
||||
return 'pl' if $file =~ m{\.PL$};
|
||||
return 'pl' if $file =~ m{debian/build-git-snapshot};
|
||||
|
||||
return 'js' if $file =~ m{\.js$} || $file =~ m{\.ts$} || $file =~ m{\.vue$};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue