| 1 | #!perl | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use OrePAN2::Repository; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Pod::Usage; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Getopt::Long; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | my $p = Getopt::Long::Parser->new( | |||||||||
| 9 | config => [qw(posix_default no_ignore_case auto_help)] | ||||||||||
| 10 | ); | ||||||||||
| 11 | 1 | $p->getoptions( | |||||||||
| 12 | 'text!' => \my $text, | ||||||||||
| 13 | ); | ||||||||||
| 14 | |||||||||||
| 15 | 1 | ▶ | my $directory = shift(@ARGV) or pod2usage; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 1 | my $repository = OrePAN2::Repository->new( | |||||||||
| 17 | directory => $directory, | ||||||||||
| 18 | compress_index => !$text, | ||||||||||
| 19 | ); | ||||||||||
| 20 | 1 | $repository->gc; | |||||||||
| 21 | |||||||||||
| 22 | __END__ | ||||||||||
| 23 | |||||||||||
| 24 | =head1 SYNOPSIS | ||||||||||
| 25 | |||||||||||
| 26 | > orepan2-gc /path/to/darkpan/ | ||||||||||
| 27 | |||||||||||
| 28 | =head1 DESCRIPTION | ||||||||||
| 29 | |||||||||||
| 30 | Remove tar files which do not exist in 02packages.txt.gz | ||||||||||
| 31 | |||||||||||
| 32 | =head1 DEVELOPMENT STATUS | ||||||||||
| 33 | |||||||||||
| 34 | B<Unstable> | ||||||||||
| 35 | |||||||||||