summaryrefslogtreecommitdiffstats
path: root/preps/perl.d/fetchcpan
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-06-01 19:45:05 +0200
committerJustin Davis <jrcd83@gmail.com>2012-06-01 19:45:05 +0200
commitd69b44bc8391f8adc3353e3778e291ff54e82e47 (patch)
tree22e80e392551a781114621c0ea43e171acf40ca4 /preps/perl.d/fetchcpan
parent29be38d2671db067c86e07fa6177cd14055a32ea (diff)
downloadgenpkg-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.d/fetchcpan')
-rwxr-xr-xpreps/perl.d/fetchcpan8
1 files changed, 4 insertions, 4 deletions
diff --git a/preps/perl.d/fetchcpan b/preps/perl.d/fetchcpan
index c39a3df..b9ddeaa 100755
--- a/preps/perl.d/fetchcpan
+++ b/preps/perl.d/fetchcpan
@@ -31,13 +31,13 @@ NR < 10 { next }
END {
for (dist in dists) {
ver = dists[dist]
- print dist, ver, paths[dist] | "sort >cpan.dists"
+ print dist, ver, paths[dist] | "sort > cpan.dists"
}
- close("sort >cpandists")
+ close("sort > cpan.dists")
# Prints modules out in sorted order, too!
- while(getline<"cpandists" > 0) {
- print $1 "\n" mods[$1,$2] >"cpan.mods"
+ while((getline < "cpan.dists") > 0) {
+ print $1 "\n" mods[$1,$2] > "cpan.mods"
}
}