diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-06-01 19:45:05 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-06-01 19:45:05 +0200 |
commit | d69b44bc8391f8adc3353e3778e291ff54e82e47 (patch) | |
tree | 22e80e392551a781114621c0ea43e171acf40ca4 /preps/perl | |
parent | 29be38d2671db067c86e07fa6177cd14055a32ea (diff) | |
download | genpkg-d69b44bc8391f8adc3353e3778e291ff54e82e47.tar.gz genpkg-d69b44bc8391f8adc3353e3778e291ff54e82e47.tar.xz |
Update CPAN index filenames everywhere they are used.
cpandists => cpan.dists
cpanmods => cpan.mods
Fixes a bug where loadcore tried to use _vardir in perl-dist.
Diffstat (limited to 'preps/perl')
-rwxr-xr-x | preps/perl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ sub matchdist my $var = $ENV{'PKGVAR'} or err('PKGVAR env variable is unset'); - if(!-f "$var/cpandists" || -M "$var/cpandists" > 1) { + if(!-f "$var/cpan.dists" || -M "$var/cpan.dists" > 1) { print STDERR "$PROG: Refreshing local CPAN data... "; my $cwd = getcwd(); chdir $var or die "chdir: $!"; @@ -34,7 +34,7 @@ sub matchdist chdir $cwd or die "chdir: $!"; } - open(DISTS, '<', "$var/cpandists") or err("open: $!"); + open(DISTS, '<', "$var/cpan.dists") or err("open: $!"); while(<DISTS>) { my @f = split; my $d = lc $f[0]; $d =~ tr/-_/--/s; |