Skip to content

Commit

Permalink
PAUSE: eliminate 07mirror updates (and FTP_RUN config)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Apr 26, 2024
1 parent 858b29c commit 4776b46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
4 changes: 0 additions & 4 deletions lib/PAUSE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ push @INC, $pauselib;

$PAUSE::Config ||=
{
# previously also used for ftp password; still used in Error as
# contact address and as address to send internal notifications
# to:
FTP_RUN => qq{/home/ftp/run},
ABRA_EXPIRATION => 86400/4,
ADMIN => q{[email protected], [email protected]},
ADMINS => [qq(modules\@perl.org)],
Expand Down
21 changes: 0 additions & 21 deletions lib/PAUSE/mldistwatch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ sub rewrite_indexes {
$self->rewrite01();
$self->rewrite03();
$self->rewrite06();
$self->rewrite07();
$Logger->log("finished rewriting indexes");

$self->git->commit({ m => "indexer run at $^T, pid $$" })
Expand Down Expand Up @@ -1330,26 +1329,6 @@ Date: %s
}
}

sub rewrite07 {
my($self) = @_;
my $fromdir = $PAUSE::Config->{FTP_RUN} or $Logger->log("FTP_RUN not defined");
$fromdir .= "/mirroryaml";
-d $fromdir or $Logger->log("FTP_RUN directory [$fromdir] does not exist");
my $mlroot = $self->mlroot or $Logger->log("MLROOT not defined");
my $todir = "$mlroot/../../modules";
-d $todir or $Logger->log("mirror list target directory [$todir] does not exist");
for my $exte (qw(json yml)) {
my $f = "$fromdir/mirror.$exte";
my $t = "$todir/07mirror.$exte";
next unless -e $f;
rename $f, $t or $Logger->log([
"couldn't rename: %s",
{ old => $f, new => $t, err => "$!" },
]);
PAUSE::newfile_hook($t);
}
}

sub chdir_ln_chdir {
my ($self, $postdir, $link_target, $link_name, $log) = @_;
chdir $postdir or die "Couln't chdir to $postdir";
Expand Down

0 comments on commit 4776b46

Please sign in to comment.