Skip to content

Commit

Permalink
Add GNOME iso to Current patter
Browse files Browse the repository at this point in the history
Requested in #349
  • Loading branch information
andrii-suse committed Feb 9, 2023
1 parent ff67753 commit 5fa14eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/MirrorCache/WebAPI/Plugin/Dir.pm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ sub _redirect_project_ln_geo {
}

$c->log->error('pedantic: ' . ($dm->pedantic // 'undef')) if $MCDEBUG;
if ($path =~ m/.*(Media|Current)\.iso(\.sha256(\.asc)?)?/ && $dm->pedantic) {
if ($path =~ m/(GNOME_.*|.*(Media|Current|Next))\.iso(\.sha256(\.asc)?)?/ && $dm->pedantic) {
my $ln = $root->detect_ln_in_the_same_folder($path);
$c->log->error("ln for $path : " . ($ln // 'null')) if $MCDEBUG;
if ($ln) {
Expand Down
2 changes: 1 addition & 1 deletion lib/MirrorCache/WebAPI/Plugin/RootLocal.pm
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ if ($TOP_FOLDERS) {

sub _detect_ln_in_the_same_folder {
my ($dir, $file) = @_;
return undef unless $file && $file =~ m/.*(Media|Current)\.iso(\.sha256)?/;
return undef unless $file && $file =~ m/(GNOME_.*|.*(Media|Current|Next))\.iso(\.sha256(\.asc)?)?/;

my $dest;
for my $root (@roots) {
Expand Down

0 comments on commit 5fa14eb

Please sign in to comment.