Subject: | backpan-init should not die if broken tarballs exist at backpan |
This happens when trying to import Encode using "git backpan-init
Encode" (apologies for the non-English locale, the messages just say
that the tar file is broken):
opening backpan index
Use of uninitialized value in string eq at
/usr/local/share/perl/5.8.8/Parse/BACKPAN/Packages.pm line 83.
Use of uninitialized value in string eq at
/usr/local/share/perl/5.8.8/Parse/BACKPAN/Packages.pm line 83.
Use of uninitialized value in string eq at
/usr/local/share/perl/5.8.8/Parse/BACKPAN/Packages.pm line 83.
[MSG] No '/home/slavenr/.cpanplus/custom-sources' dir, skipping custom
sources
created tag '2.27' (c9f394fddd30c698042f9906273c9f00a4db2177)
importing Encode-2.28
importing Encode
(http://backpan.perl.org/authors/id/D/DA/DANKOGAI/Encode-2.28.tar.gz)
downloading Encode-2.28.tar.gz
extracting distribution
[ERROR] Unable to extract '/tmp/NX1yI_s3I5/Encode-2.28.tar.gz' to
/tmp/NX1yI_s3
I5': Unable to read '/tmp/NX1yI_s3I5/Encode-2.28.tar.gz': Invalid header
block a
t offset unknown
Error listing contents of archive '/tmp/NX1yI_s3I5/Encode-2.28.tar.gz':
/bin/tar: Ovo ne izgleda kao tar arhiva
/bin/tar: Preskačem do slijedećeg zaglavlja
/bin/tar: Pogrešan izlaz (naknadno) zbog prijašnjih pogrešaka
In fact, the backpan file
http://backpan.perl.org/authors/id/D/DA/DANKOGAI/Encode-2.28.tar.gz is
broken: it's HTML, not a tarball. I suspect that there will be here and
then broken distribution tarballs on backpan and are impossible to be
removed by the author, so it would be nice if backpan-init could ignore
tarballs automatically.
Regards,
Slaven