Subject: | CPAN::Mini::Inject::updpackages() does not update the line count |
I've set up a local mirror and a repository for module injection. When reloading the indexes in the CPAN shell, I get the following:
Show quoted text
cpan> reload indexes
CPAN: Storable loaded ok
Going to read /home/jwest/.cpan/Metadata
Database was generated on Wed, 02 Mar 2005 13:40:25 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://localhost/pub/CPAN/authors/01mailrc.txt.gz
Going to read /home/jwest/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
ftp://localhost/pub/CPAN/modules/02packages.details.txt.gz
Going to read /home/jwest/.cpan/sources/modules/02packages.details.txt.gz
Warning: Your /home/jwest/.cpan/sources/modules/02packages.details.txt.gz
contains a Line-Count header of 30482 but I see 30483 lines there. Please
check the validity of the index file by comparing it to more than one
CPAN mirror. I'll continue but problems seem likely to happen.
Database was generated on Wed, 02 Mar 2005 13:40:25 GMT
Fetching with LWP:
ftp://localhost/pub/CPAN/modules/03modlist.data.gz
Going to read /home/jwest/.cpan/sources/modules/03modlist.data.gz
Going to write /home/jwest/.cpan/Metadata
Show quoted textcpan>
I'm only injecting one module currently, so this discrepancy is presumably caused by the injection.
Similarly, the next time I run mcpani --update and the module gets re-injected the line count increases by one. For example:
jwest@reanimator(0):~$ mcpani --update -v
Testing site: ftp://mirrors.rcn.net/pub/lang/CPAN/
ftp://mirrors.rcn.net/pub/lang/CPAN/ selected.
authors/01mailrc.txt.gz ... up to date
modules/02packages.details.txt.gz ... up to date
modules/03modlist.data.gz ... up to date
Injecting modules from /home/jwest/.myCPAN
/home/ftp/pub/CPAN/authors/id/C/CO/CORPTECH/CTI-Autobuild-Disk-0.08.tar.gz ... injected
jwest@reanimator(0):~$
And when the indexes are reloaded in the CPAN shell:
Show quoted textcpan> reload indexes
CPAN: Storable loaded ok
Going to read /home/jwest/.cpan/Metadata
Database was generated on Wed, 02 Mar 2005 13:40:25 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://localhost/pub/CPAN/authors/01mailrc.txt.gz
Going to read /home/jwest/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
ftp://localhost/pub/CPAN/modules/02packages.details.txt.gz
Going to read /home/jwest/.cpan/sources/modules/02packages.details.txt.gz
Warning: Your /home/jwest/.cpan/sources/modules/02packages.details.txt.gz
contains a Line-Count header of 30482 but I see 30484 lines there. Please
check the validity of the index file by comparing it to more than one
CPAN mirror. I'll continue but problems seem likely to happen.
Database was generated on Wed, 02 Mar 2005 13:40:25 GMT
Fetching with LWP:
ftp://localhost/pub/CPAN/modules/03modlist.data.gz
Going to read /home/jwest/.cpan/sources/modules/03modlist.data.gz
Going to write /home/jwest/.cpan/Metadata
Show quoted textcpan>
No additional modules were added to be injected. Upon inspecting the 02packages.details.txt.gz either downloaded by the shell or in my local CPAN mirror I see two entries for my injected module:
jwest@reanimator(0):~$ zgrep Autobuild .cpan/sources/modules/02packages.details.txt.gz
CTI::Autobuild::Disk 0.08 C/CO/CORPTECH/CTI-Autobuild-Disk-0.08.tar.gz
CTI::Autobuild::Disk 0.08 C/CO/CORPTECH/CTI-Autobuild-Disk-0.08.tar.gz
jwest@reanimator(0):~$
Hopefully, I'm correct in my guess that these two bugs are related. If not, I apologise for not submitting them seperately.
I'm running the latest and greatest of CPAN (1.7601), CPAN::Mini (0.36) and CPAN::Mini::Inject (0.16) under perl, v5.8.4 built for i386-linux-thread-multi.
Please don't hesitate to ask if there are more details I can provide.
Thanks!
--John