Skip to content

Commit

Permalink
do not track all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed Nov 21, 2024
1 parent 438bef5 commit 38af7b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 313 deletions.
8 changes: 4 additions & 4 deletions author/fatpack.pl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ ()
Path::Tiny->new($dir)->remove_tree({ safe => 0 }) if -d $dir;
}

sub generate_index ($from, $file) {
my $exit = system "perl-cpan-index-generate", "--output", $file, $from;
sub generate_index (@argv) {
my $exit = system "perl-cpan-index-generate", @argv;
$exit == 0 or die;
}

Expand Down Expand Up @@ -127,15 +127,15 @@ ($file, $describe, $url)

my @resolver;
if (-f "index.txt" && !$force && !$test && !$update_only) {
@resolver = ("-r", "02packages,index.txt,https://cpan.metacpan.org/", "--no-default-resolvers");
@resolver = ("-r", "02packages,index.txt,https://cpan.metacpan.org/");
} else {
@resolver = ("-r", 'Fixed,CPAN::Meta::[email protected]');
}

warn "Resolver: @resolver\n";
cpm "install", "--target-perl", $target, @resolver, "--cpmfile", "../cpm.yml";
cpm "install", "--target-perl", $target, @resolver, @extra;
generate_index "local/lib/perl5", "index.txt" if !$test;
generate_index "local/lib/perl5", "--exclude", $exclude, "--output", "index.txt" if !$test;
remove_version_xs;
exit if $update_only;

Expand Down
Loading

0 comments on commit 38af7b5

Please sign in to comment.