CPAN-SQLite-0.219000755000000000000 013664647331 13751 5ustar00unknownunknown000000000000README100644000000000000 554613664647331 14724 0ustar00unknownunknown000000000000CPAN-SQLite-0.219This is the README for CPAN::SQLite, which is used for setting up, maintaining, and searching through a local CPAN database consisting of information in the three main CPAN index files: $CPAN/modules/03modlist.data.gz $CPAN/modules/02packages.details.txt.gz $CPAN/authors/01mailrc.txt.gz DBD::SQLite is used as the database engine. Installation proceeds through the usual perl Makefile.PL $MAKE $MAKE test $MAKE install or, if Module::Build is available, perl Build.PL perl Build perl Build test perl Build install The package consists of a number of modules: CPAN::SQLite: the top-level package CPAN::SQLite::Index: set up and maintain the database CPAN::SQLite::Info: extract information from the CPAN indices CPAN::SQLite::META: helper module for CPAN.pm integration CPAN::SQLite::State: gather information on the state of the database CPAN::SQLite::Search: methods to search the database CPAN::SQLite::Populate: populate the database tables CPAN::SQLite::DBI: DBI information for the database CPAN::SQLite::DBI::Index: DBI information for indexing the database CPAN::SQLite::DBI:Search: DBI information for searching the database See the pod documentation of the specific modules for details. Perhaps the easiest way to set up and maintain the database is through the supplied cpandb script. If we assume that there is a CPAN.pm client available and configured, the database can be created via cpandb --setup which will create the database file cpandb.sql under the "cpan_home" defined in CPAN::Config (this is the same location as where CPAN.pm's Metadata is found). Subsequent updates to the database can be done through cpandb --update This scenario assumes that updates to the CPAN index files are handled by CPAN.pm. The cpandb script also provides some elementary searches: cpandb --module My::Module cpandb --dist My-Dist cpandb --cpanid ME which will provide some information on, respectively, the specified CPAN module, distribution, and CPAN author id. The query terms are assumed to match exactly, and are case-insensitive. As of CPAN.pm version 1.88_65, there is experimental support within CPAN.pm for using CPAN::SQLite to obtain information on packages, modules, and authors. One goal of this is to reduce the memory footprint of the CPAN.pm shell, as this information is no longer all preloaded into memory. This can be enabled through perl -MCPAN -e shell cpan> o conf use_sqlite 1 This version is considered alpha. Please report bugs and feature requests to CPAN's request tracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=CPAN-SQLite or directly to the author. Development takes place at http://cpan-search.svn.sourceforge.net/viewvc/cpan-search/CPAN-SQLite/ This software is copyright 2006,2008 by Randy Kobes . Use and redistribution are under the same terms as Perl itself. INSTALL100644000000000000 62013664647331 15041 0ustar00unknownunknown000000000000CPAN-SQLite-0.219This package requires the following Perl modules: File::Spec Archive::Tar IO::Zlib CPAN::DistnameInfo DBD::SQLite File::HomeDir Installation follows the standard perl Makefile.PL $MAKE $MAKE test $MAKE install or, if Module::Build is available, perl Build.PL perl Build perl Build test perl Build install See the README file for a quick overview of the useage. Changes100644000000000000 1646613664647331 15362 0ustar00unknownunknown000000000000CPAN-SQLite-0.219Revision history for Perl extension CPAN::SQLite. 0.219 May 30, 2020 - More FP protections 0.218 May 27, 2020 - Make Test::Memory::Cycle test optional - Modified the dot-cpan directory for t/0[234]* - Added a FP protection again one particular crappy cpan tester 0.217 Jan 29, 2019 - Updated HTTP::Tiny prerequisite to make it working with proxy auth - Removed search limits (RT#128387) 0.216 Jan 24, 2019 - Fixed test problems in Perl 5.8 0.215 Jan 23, 2019 - Weaken some references to avoid memory leaks 0.214 Jan 4, 2019 - Removed 03modlist-related code as that file is not updated anymore - Made sure tests pass when CPAN_SQLITE_DOWNLOAD variable is set 0.213 Jan 3, 2019 - Added ability to download precompiled database to save even more memory/CPU 0.212 Aug 3, 2018 - Fixed a long-standing bug with missing CPAN::Shell on some systems 0.211 Jul 14, 2015 - Fixed t/06retrieve.t by using predefined CPAN urllist 0.210 Jul 11, 2015 - Moved from LWP::Simple to HTTP::Tiny 0.209 Jul 8, 2015 - Removed some additional tests that don't work well on 5.6.2 - Better handling of parallel testing 0.208 Jul 5, 2015 - Got rid of [AssertOS] 0.207 Jul 4, 2015 - Detect HARNESS_OPTIONS and bail out - Back to Dist::Zilla 0.206 Jun 29, 2015 - No more Module::Build - Fixed test failures on Windows - Typo fixed RT#86588: https://rt.cpan.org/Public/Bug/Display.html?id=86588 (reported by David Steinbrunner) 0.205 Nov 22, 2014 - Fixed test failures 0.204 Aug 04, 2014 - Fixed problem with locked database in DBD::SQLite 1.38_01 and higher RT#90635: https://rt.cpan.org/Ticket/Display.html?id=90635 (reported by Alexandr Ciornii) 0.203 Jun 29, 2013 - Automatically cleanup log files older than 30 days. Use CPAN_SQLITE_LOG_FILES_CLEANUP environment variable to override. RT#76943: https://rt.cpan.org/Ticket/Update.html?id=76943 (reported by Nigel Horne) See also RT#36411 - Fixed POD RT#83818 :https://rt.cpan.org/Ticket/Display.html?id=83818 (reported by Alceu Rodrigues de Freitas Junior) - Added additional checks to make sure cpandb.sql is correctly populated RT#64628: https://rt.cpan.org/Ticket/Display.html?id=64628 RT#71323: https://rt.cpan.org/Ticket/Display.html?id=71323 RT#76197: https://rt.cpan.org/Ticket/Display.html?id=76197 (reported by Slaven Rezic, Alexandr Ciornii, Randy Stauner) - Tests updated - "base" replaced with "parent" - Minor tweaks 0.202 Jun 25, 2011 - Fixed test configuration which caused problems on Cygwin - Added CPAN root directory creation in case it's missing 0.201 Jun 16, 2011 - Fixed problem with 3-argument open with '>&' on 5.6.2 - Updated repository link 0.200 Jun 11, 2011 - SQLite REGEXP is used instead of custom function to prevent "Use of uninitialized value $x in pattern match" warning in modern Perl versions RT#67442: https://rt.cpan.org/Ticket/Display.html?id=67442 (reported by Mike Doherty) - "warn"s are replaced with $CPAN::FrontEnd calls RT#59691: https://rt.cpan.org/Ticket/Display.html?id=59691 (reported by Randy J. Ray) 0.199 Dec 29, 2009 - require CPAN::DistnameInfo 0.09, which normalizes dist() for CGI.pm (reported by Pete Armstrong) 0.198 Sep 19, 2009 - CPAN::SQLite::DBI::Index had an extra right parenthesis (reported by Alexey Borzenkov) - CPAN::SQLite::META braces bug in oneliner; see http://rt.cpan.org/Ticket/Display.html?id=47353 - add Compress:Zib dependency; see http://rt.cpan.org/Ticket/Display.html?id=45783 - better error reporting in cases where index files aren't fetched; see http://rt.cpan.org/Ticket/Display.html?id=47322 0.197 Feb 16, 2009 - add LWP::Simple to prerequisites of Build.PL, to help CPAN testers: http://www.cpantesters.org/show/CPAN-SQLite.html#CPAN-SQLite-0.196 0.196 June 6, 2008 - turn off creation of log files during indexing procedures via setting $ENV{CPAN_SQLITE_NO_LOG_FILES}, as suggested by DAGOLDEN: http://rt.cpan.org/Ticket/Display.html?id=36411 0.195 Feb 16, 2008 - fix further bugs where sometimes a regex search for distributions and/or modules, followed by a distribution search for a specific distribution, didn't properly populate the CONTAINSMODS field - add CPAN::Shell->reload('index') in the t/05meta.t test to ensure the database is created, and test that it has non-zero size - fix bug where sometimes a regex module search, followed by a distribution search for a specific distribution, didn't properly set the abstract and version fields - fix bug in t/05meta_*.t tests so as to correctly compare modules in a distribution. - honour $Config::CPAN->{index_expire} to decide when to update the database - improved error checking for the exisitence of the database, including also a check on the size, if it exists, when deciding whether to update or create the database. 0.19 Feb 3, 2008 - fix bug whereby a query for a module, followed by a query for the distribution containing that module, would only list the module first queried for CONTAINSMODS - fix (hopefully) failing tests on Darwin: http://rt.cpan.org/Ticket/Display.html?id=28890 resulting from CPAN::MyConfig not getting picked up from PERL5LIB (thanks to Michael Schwern and David Wheeler) - have information messages printed out only if CPAN_SQLITE_DEBUG is set, as requested at http://rt.cpan.org/Ticket/Display.html?id=32740 (thanks to ZOFFIX) 0.18 Aug 15, 2007 - as some older versions of DBD::SQLite don't support "drop table if exists $table", use an alternate construction - add vcmp function in TestSQL.pm to test equality of versions - when testing with CPAN.pm, remove the database file before testing 0.15 July 26, 2007 - add a message of when the database was last updated: http://rt.cpan.org/Ticket/Display.html?id=27953 - don't ignore a previously set PERL5LIB in the tests: http://rt.cpan.org/Ticket/Display.html?id=28297 0.1 Feb 17, 2007 - first non-developer release; no code changes from 0.1_04 0.1_04 Jan 11, 2007 - improve diagnostics of some of the tests using Test::More - check that we loaded the correct CPAN::Config in 05meta.t (test suggested by Andreas Koenig) - add auto_commit variable to the test's CPAN::Config, so as to work with CPAN.pm 1.88_69 0.1_03 Dec 31, 2006 - in the t/05meta.t test, remove an underscore from the version strings, as older versions of CPAN::Version seem to have problems comparing versions with underscores. - don't try to update database if a $db_name-journal file exists, indicating another process is updating the database - in a regex search for Bundles within CPAN::SQLite::META, don't prepend 'Bundle' if special regex characters are present, to help in tab completion of Bundles within CPAN.pm - get tab completion within CPAN.pm working 0.1_02 Dec 21, 2006 - change name of database to cpandb.sql, and make it fixed, as there was little need to have it configureable. - support cpan> d ANDK/CPAN-xxx.tar.gz for distributions. - fixes to handle Bundle ids - undef $sth after an $sth->finish, to help with concurrent access - when using Test::More, use is(), rather than ok() 0.1_01 Dec 12, 2006 - initial version, derived from a minimal version of CPAN::Search::Lite LICENSE100644000000000000 4367713664647331 15100 0ustar00unknownunknown000000000000CPAN-SQLite-0.219This software is copyright (c) 2019 by Serguei Trouchelle. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2019 by Serguei Trouchelle. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2019 by Serguei Trouchelle. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End MANIFEST100644000000000000 127313664647331 15166 0ustar00unknownunknown000000000000CPAN-SQLite-0.219bin/cpandb INSTALL lib/CPAN/SQLite.pm lib/CPAN/SQLite/DBI.pm lib/CPAN/SQLite/DBI/Index.pm lib/CPAN/SQLite/DBI/Search.pm lib/CPAN/SQLite/Index.pm lib/CPAN/SQLite/Info.pm lib/CPAN/SQLite/META.pm lib/CPAN/SQLite/Populate.pm lib/CPAN/SQLite/Search.pm lib/CPAN/SQLite/State.pm lib/CPAN/SQLite/Util.pm Makefile.PL MANIFEST This list of files README Changes t/01basic.t t/02drop.t t/03info.t t/04search.t t/04search_everything.t t/05meta_new.t t/05meta_update.t t/06retrieve.t t/07download.t t/08circular_references.t t/cpan/authors/01mailrc.txt.gz t/cpan/modules/02packages.details.txt.gz t/dot-cpan/CPAN/TestConfig.pm t/lib/TestShell.pm t/lib/TestShellDiag.pm t/lib/TestSQL.pm t/testrules.yml META.yml100644000000000000 213713664647331 15306 0ustar00unknownunknown000000000000CPAN-SQLite-0.219--- abstract: 'maintain and search a minimal CPAN database' author: - 'Serguei Trouchelle ' build_requires: CPAN::HandleConfig: '0' CPAN::Version: '0' Carp: '0' DBD::SQLite: '0' ExtUtils::MakeMaker: '0' File::Copy: '0' File::Spec: '0' FindBin: '0' IO::Handle: '0' IPC::Open3: '0' Test::More: '0.94' base: '0' lib: '0' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: CPAN-SQLite requires: CPAN: '0' CPAN::DistnameInfo: '0' Compress::Zlib: '0' Cwd: '0' DBI: '0' English: '0' Exporter: '0' File::Basename: '0' File::Find: '0' File::HomeDir: '0' File::Path: '0' File::Spec: '0' File::Spec::Functions: '0' Getopt::Long: '0' HTTP::Tiny: '0' Safe: '0' Scalar::Util: '0' constant: '0' parent: '0' strict: '0' utf8: '0' warnings: '0' version: '0.219' x_generated_by_perl: v5.28.2 x_serialization_backend: 'YAML::Tiny version 1.73' META.json100644000000000000 463613664647331 15464 0ustar00unknownunknown000000000000CPAN-SQLite-0.219{ "abstract" : "maintain and search a minimal CPAN database", "author" : [ "Serguei Trouchelle " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "CPAN-SQLite", "prereqs" : { "configure" : { "requires" : { "ExtUtils::MakeMaker" : "0" } }, "develop" : { "requires" : { "Test::CPAN::Meta" : "0", "Test::CPAN::Meta::JSON" : "0.16", "Test::EOL" : "0", "Test::Kwalitee" : "1.21", "Test::MinimumVersion" : "0", "Test::More" : "0.88", "Test::NoTabs" : "0", "Test::PAUSE::Permissions" : "0", "Test::Perl::Critic" : "0", "Test::Pod" : "1.41" } }, "runtime" : { "requires" : { "CPAN" : "0", "CPAN::DistnameInfo" : "0", "Compress::Zlib" : "0", "Cwd" : "0", "DBI" : "0", "English" : "0", "Exporter" : "0", "File::Basename" : "0", "File::Find" : "0", "File::HomeDir" : "0", "File::Path" : "0", "File::Spec" : "0", "File::Spec::Functions" : "0", "Getopt::Long" : "0", "HTTP::Tiny" : "0", "Safe" : "0", "Scalar::Util" : "0", "constant" : "0", "parent" : "0", "strict" : "0", "utf8" : "0", "warnings" : "0" } }, "test" : { "recommends" : { "CPAN::Meta" : "2.120900" }, "requires" : { "CPAN::HandleConfig" : "0", "CPAN::Version" : "0", "Carp" : "0", "DBD::SQLite" : "0", "ExtUtils::MakeMaker" : "0", "File::Copy" : "0", "File::Spec" : "0", "FindBin" : "0", "IO::Handle" : "0", "IPC::Open3" : "0", "Test::More" : "0.94", "base" : "0", "lib" : "0" } } }, "release_status" : "stable", "version" : "0.219", "x_generated_by_perl" : "v5.28.2", "x_serialization_backend" : "Cpanel::JSON::XS version 4.11" } t000755000000000000 013664647331 14135 5ustar00unknownunknown000000000000CPAN-SQLite-0.21902drop.t100644000000000000 133213664647331 15567 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 02drop.t 71 2019-01-15 01:46:34Z stro $ use strict; use warnings; use Test::More; use DBD::SQLite; plan tests => 6; my $db_name = 't/dot-cpan/cpandb.sql'; my $dbh = DBI->connect("DBI:SQLite:$db_name", { RaiseError => 1, AutoCommit => 0 }) or die "Cannot connect to $db_name"; ok $dbh ; isa_ok($dbh, 'DBI::db'); my @tables = qw(mods auths dists info); my $sql = 'SELECT name FROM sqlite_master WHERE type="table" AND name=?'; my $sth = $dbh->prepare($sql); foreach my $table (@tables) { $sth->execute($table); my $results = $sth->fetchrow_array; if ($results) { $dbh->do(qq{drop table $table}); pass('Drop ' . $table); } else { pass('Skip ' . $table); } } $sth->finish; $dbh->disconnect; 03info.t100644000000000000 516013664647331 15562 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 03info.t 81 2019-01-30 21:53:22Z stro $ use strict; use warnings; use Test::More; use Cwd; use File::Spec::Functions; use File::Path; use CPAN::DistnameInfo; use FindBin; use lib "$FindBin::Bin/lib"; use TestSQL qw($mods $auths $dists has_hash_data); use CPAN::SQLite::Info; plan tests => 2929; my $cwd = getcwd; my $CPAN = catdir $cwd, 't', 'cpan'; my $t_dir = catdir $cwd, 't'; my $db_name = 'cpandb.sql'; my $db_dir = catdir $cwd, 't', 'dot-cpan'; unlink($db_name) if (-e $db_name); ok(-d $CPAN); use CPAN::SQLite::Info; my $info = CPAN::SQLite::Info->new(CPAN => $CPAN, db_dir => $db_dir); isa_ok($info, 'CPAN::SQLite::Info'); $info->fetch_info(); my $info_dists = $info->{dists}; my $info_mods = $info->{mods}; my $info_auths = $info->{auths}; ok(has_hash_data($info_dists)); ok(has_hash_data($info_mods)); ok(has_hash_data($info_auths)); foreach my $cpanid (keys %$auths) { ok(defined $info_auths->{$cpanid}); foreach (qw(fullname email)) { next unless $auths->{$cpanid}->{$_}; is($info_auths->{$cpanid}->{$_}, $auths->{$cpanid}->{$_}); } } foreach my $dist_name (keys %$dists) { ok(defined $info_dists->{$dist_name}); foreach (qw(dist_vers dist_file dist_abs dist_dslip cpanid)) { next unless $dists->{$dist_name}->{$_}; is($info_dists->{$dist_name}->{$_}, $dists->{$dist_name}->{$_}); } my $modules = $dists->{$dist_name}->{modules}; if (has_hash_data($modules)) { foreach my $key (keys %$modules) { ok(exists $info_dists->{$dist_name}->{modules}->{$key}); next unless $modules->{$key}; is($info_dists->{$dist_name}->{modules}->{$key}, $modules->{$key}); } } } foreach my $mod_name (keys %$mods) { ok(defined $info_mods->{$mod_name}); foreach (qw(mod_abs dist_name mod_vers)) { next unless $mods->{$mod_name}->{$_}; is($info_mods->{$mod_name}->{$_}, $mods->{$mod_name}->{$_}); } } ok(not defined $info->{auths}->{ZZZ}); ok(not defined $info->{mods}->{ZZZ}); ok(not defined $info->{dists}->{ZZZ}); my @tables = qw(dists mods auths info); my $index; my $package = 'CPAN::SQLite::Index'; foreach my $table (@tables) { my $class = $package . '::' . $table; my $this = { info => $info->{$table} }; $index->{$table} = bless $this, $class; } use CPAN::SQLite::DBI qw($tables); my $cdbi = CPAN::SQLite::DBI::Index->new( CPAN => $CPAN, db_name => $db_name, db_dir => $db_dir ); isa_ok($cdbi, 'CPAN::SQLite::DBI::Index'); use CPAN::SQLite::Populate; my $pop = CPAN::SQLite::Populate->new( db_name => $db_name, db_dir => $db_dir, setup => 1, CPAN => $CPAN, index => $index ); isa_ok($pop, 'CPAN::SQLite::Populate'); $pop->populate(); ok(1); bin000755000000000000 013664647331 14442 5ustar00unknownunknown000000000000CPAN-SQLite-0.219cpandb100644000000000000 1515413664647331 16002 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/bin#!usr/bin/perl -w # $Id: cpandb 84 2020-05-31 06:29:34Z stro $ use strict; use warnings; use CPAN::SQLite; use Getopt::Long; our $VERSION = 0.219; my ($CPAN, $setup, $help, $reindex, $index, $query, $db_name, $db_dir, $module, $dist, $cpanid, $update); my $rc = GetOptions('CPAN=s' => \$CPAN, 'db_name=s' => \$db_name, 'db_dir=s' => \$db_dir, 'setup' => \$setup, 'update' => \$update, 'help' => \$help, 'module=s' => \$module, 'dist=s' => \$dist, 'cpanid=s' => \$cpanid, 'reindex=s' => \$reindex); $query = ($module or $dist or $cpanid); $index = ($update or $reindex or $setup); if ($help or not $rc or not ($index or $query)) { print <<"END"; Setup, maintain, and search the CPAN::SQLite database Usage: $^X $0 --setup $^X $0 --update $^X $0 --reindex dist_name $^X $0 --module Mod::Name $^X $0 --dist Distname $^X $0 --cpanid CPANID $^X $0 --help END exit(1); } if (defined $setup and defined $reindex) { die "Must reindex on an existing database"; } if ($index) { my $obj = CPAN::SQLite->new(CPAN => $CPAN, setup => $setup, db_name => $db_name, db_dir => $db_dir, reindex => $reindex, ); $obj->index(); } else { my $max_results = $ENV{'CPAN_SQLITE_MAX_RESULTS'}; my $obj = CPAN::SQLite->new(CPAN => $CPAN, db_name => $db_name, db_dir => $db_dir, max_results => $max_results); my $results; RESULTS : { $module and do { $obj->query(mode => 'module', name => $module); $results = $obj->{results}; if (not $results) { print qq{\nNo module by name of "$module" was found.\n}; print qq{Error: $obj->{error}\n} if $obj->{error}; } else { my $abs = $results->{mod_abs} || ''; print << "EOI"; Module: $results->{mod_name} Abstract: $abs Version: $results->{mod_vers} Distribution: $results->{dist_name} CPAN author: $results->{cpanid} CPAN file: $results->{dist_file} Download: $results->{download} EOI } last RESULTS; }; $dist and do { $obj->query(mode => 'dist', name => $dist); $results = $obj->{results}; if (not $results) { print qq{\nNo distribution by name of "$dist" was found.\n}; print qq{Error: $obj->{error}\n} if $obj->{error}; } else { my $abs = $results->{dist_abs} || ''; print << "EOI"; Distribution: $results->{dist_name} Abstract: $abs Version: $results->{dist_vers} CPAN author: $results->{cpanid} CPAN file: $results->{dist_file} Download: $results->{download} EOI } my $mods = $results->{mods}; if ($mods and (ref($mods) eq 'ARRAY')) { print qq{\nProvided modules:\n}; foreach my $item(@$mods) { my $abs = $item->{mod_abs} || ''; print qq{ $item->{mod_name}: $abs\n}; } } last RESULTS; }; $cpanid and do { $obj->query(mode => 'author', name => $cpanid); $results = $obj->{results}; if (not $results) { print qq{\nNo cpanid by name of "$cpanid" was found.\n}; print qq{Error: $obj->{error}\n} if $obj->{error}; } else { print << "EOI"; CPANID: $results->{cpanid} Full Name: $results->{fullname} email: $results->{email} EOI } my $dists = $results->{dists}; if ($dists and (ref($dists) eq 'ARRAY')) { print qq{\nAvailable distributions:\n}; foreach my $item(@$dists) { my $abs = $item->{dist_abs} || ''; print qq{ $item->{dist_file}: $abs\n}; } } last RESULTS; }; } } __END__ =head1 NAME cpandb - interface to C =head1 VERSION version 0.219 =head1 DESCRIPTION This script is an interface to the routines of L for setting up, maintaining and searching a C database of CPAN. Available options can be grouped into three categories. =head2 Common options These are options which are common to both setting up and maintaining the database or performing queries on it. These are =over 3 =item * C<--CPAN '/path/to/CPAN'> This specifies the path to where the index files are to be stored. This could be a local CPAN mirror, defined here by the presence of a F file beneath this directory, or a local directory in which to store these files from a remote CPAN mirror. In the latter case, the index files are fetched from a remote CPAN mirror, using the same list that C uses, if this is configured, and are updated if they are more than one day old. If the C option is not given, it will default to C of L, if this is configured, with the sources being found under C. A fatal error results if such a directory isn't found. Updates to these index files are assumed here to be handled by C. =item * C<--db_name 'cpan-sqlite'> This is the name of the database that C will use. If not given, this defaults to C. =item * C<--db_dir '/path/to/db/dir'> This specifies the path to where the database file is found. If not given, it defaults to the C directory of C, if present, or to the directory in which the script was invoked. =back =head2 Indexing options These are options which are used for setting up and maintaining the database. These include =over 3 =item * C<--setup> This specifies that the database is to be created and populated from the CPAN indices; any existing database will be overwritten. =item * C<--update> This is used to update an existing database, which must have first been created with the C option. =item * C<--reindex 'dist_name'> This specifies that the CPAN distribution C is to be reindexed. =back =head2 Querying options These options are used to query the database. Available options are =over 3 =item * C<--module Mod::Name> This provides information on the specified module name. =item * C<--dist Dist-Name> This provides information on the specified distribution name. =item * C<--cpanid CPANID> This provides information on the specified CPAN author id =back All search terms are assumed to be exact matches in a case-insensitive manner. There's no limit on maximum number of records. If you need to adjust the number because you get too many results, set the CPAN_SQLITE_MAX_RESULTS environment variable. =head1 SEE ALSO L. =cut 01basic.t100644000000000000 36313664647331 15666 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 01basic.t 70 2019-01-04 19:39:59Z stro $ use strict; use warnings; use Test::More; plan tests => 4; require_ok('CPAN::SQLite::Index'); require_ok('CPAN::SQLite::Search'); require_ok('CPAN::SQLite'); require_ok('CPAN::SQLite::META'); Makefile.PL100644000000000000 470013664647331 16005 0ustar00unknownunknown000000000000CPAN-SQLite-0.219# $Id: Makefile.PL 84 2020-05-31 06:29:34Z stro $ use strict; use warnings; use ExtUtils::MakeMaker; my %broken_smokers_roots = map { $_ => 1 } ( '/home/opc/perl5/perlbrew', '/home/njh/perl5/perlbrew', ); if ($ENV{'PERLBREW_ROOT'} && $broken_smokers_roots{ $ENV{'PERLBREW_ROOT'} }) { my $honest_answer = ExtUtils::MakeMaker::prompt('This smoker setup is most definitely broken and the author is tired of FP. Please type "Yes. I swear I fixed it. Please continue." to continue: '); unless ($honest_answer and $honest_answer eq 'Yes. I swear I fixed it. Please continue.') { print 'Kthxbye', $/; exit 0; } } my @exe_files = map {"bin/$_"} qw(cpandb); my $goners = join ' ', qw( cpandb.sql t/dot-cpan/cpandb.sql t/dot-cpan/FTPstats.yml t/dot-cpan/CPAN/MyConfig.pm t/dot-cpan/cpan_sqlite_log.* t/dot-cpan/sources/authors/01mailrc.txt.gz t/dot-cpan/sources/modules/02packages.details.txt.gz t/dot-cpan/sources/modules/03modlist.data.gz t/cpan-t-06/* t/cpan-t-07/* t/cpan-t-08/* ); my %opts = ( 'NAME' => 'CPAN::SQLite', 'VERSION_FROM' => 'lib/CPAN/SQLite.pm', 'EXE_FILES' => \@exe_files, 'PL_FILES' => {}, 'dist' => { 'SUFFIX' => 'gz', 'COMPRESS' => 'gzip -9f', }, 'clean' => { 'FILES' => $goners }, ); my $eu_version = $ExtUtils::MakeMaker::VERSION; $eu_version =~ s/_//msgx; if ($eu_version >= 5.43) { %opts = (%opts, 'ABSTRACT_FROM' => 'lib/CPAN/SQLite.pm', 'AUTHOR' => 'Serguei Trouchelle ', ); } my $prereqs = { 'File::Spec' => 0, 'Archive::Tar' => 1.54, 'IO::Zlib' => 0, 'Compress::Zlib' => 0, 'CPAN::DistnameInfo' => 0.09, 'DBD::SQLite' => 1.27, # for REGEXP implementation 'File::HomeDir' => 0, 'HTTP::Tiny' => 0.041, 'CPAN::Index' => 1.93, # No more false negatives because of CPAN-Index 'parent' => 0, }; my $test_prereqs = { }; if ($ENV{'HARNESS_OPTIONS'}) { # Parallel testing requires Test::Harness 3.31 $prereqs->{'Test::Harness'} = 3.31; } if ($eu_version >= '6.64') { %opts = (%opts, 'PREREQ_PM' => $prereqs, 'TEST_REQUIRES' => $test_prereqs, ); } else { %opts = (%opts, 'PREREQ_PM' => { %{$prereqs}, %{$test_prereqs} }, ); } WriteMakefile( %opts ); 04search.t100644000000000000 1104413664647331 16113 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 04search.t 81 2019-01-30 21:53:22Z stro $ use strict; use warnings; use Test::More; use Cwd; use CPAN::SQLite::Search; use FindBin; use File::Spec::Functions; use lib "$FindBin::Bin/lib"; use TestSQL qw($dists $mods $auths vcmp); use CPAN::SQLite::DBI::Search; use CPAN::SQLite::DBI qw($dbh); my $cwd = getcwd; my $CPAN = catfile $cwd, 't', 'cpan'; plan tests => 2668; my $db_name = 'cpandb.sql'; my $db_dir = catfile $cwd, 't', 'dot-cpan'; my $cdbi = CPAN::SQLite::DBI::Search->new( db_name => $db_name, db_dir => $db_dir ); my $query = CPAN::SQLite::Search->new( db_name => $db_name, db_dir => $db_dir ); ok(defined $query); isa_ok($query, 'CPAN::SQLite::Search'); my $results; for my $cpanid (keys %$auths) { $query->query(mode => 'author', name => $cpanid); $results = $query->{results}; ok(defined $results); is($results->{cpanid}, $cpanid); for (qw(fullname email)) { is($results->{$_}, $auths->{$cpanid}->{$_}); } } for my $dist_name (keys %$dists) { $query->query(mode => 'dist', name => $dist_name); $results = $query->{results}; ok(defined $results); is($results->{dist_name}, $dist_name); foreach (qw(dist_file dist_abs dist_dslip cpanid)) { next unless $dists->{$dist_name}->{$_}; is($results->{$_}, $dists->{$dist_name}->{$_}); } next unless $dists->{$dist_name}->{dist_vers}; is(vcmp($results->{dist_vers}, $dists->{$dist_name}->{dist_vers}), 0); } foreach my $mod_name (keys %$mods) { $query->query(mode => 'module', name => $mod_name); $results = $query->{results}; ok(defined $results); is($results->{mod_name}, $mod_name); foreach (qw(mod_abs dist_name)) { next unless $mods->{$mod_name}->{$_}; is($results->{$_}, $mods->{$mod_name}->{$_}); } next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($results->{mod_vers}, $mods->{$mod_name}->{mod_vers}), 0); } my %keys = map { $_ => 1 } qw(email fullname); for my $auth_search (qw(G G\w+A)) { my $auth_searches = []; for my $cpanid (keys %$auths) { next unless ($cpanid =~ /$auth_search/i or $auths->{$cpanid}->{fullname} =~ /$auth_search/i); push @$auth_searches, { cpanid => $cpanid, %{ $auths->{$cpanid} } }; } $query->query(mode => 'author', query => $auth_search); $results = $query->{results}; ok(defined $results); isa_ok($results, 'ARRAY'); is(scalar @$results, scalar @$auth_searches); compare_arrays($results, $auth_searches, \%keys); } %keys = map { $_ => 1 } qw(dist_vers cpanid dist_file); for my $dist_search (qw(apache test.*perl)) { my $dist_searches = []; for my $dist_name (keys %$dists) { next unless $dist_name =~ /$dist_search/i; push @$dist_searches, { dist_name => $dist_name, %{ $dists->{$dist_name} } }; } $query->query(mode => 'dist', query => $dist_search); $results = $query->{results}; ok(defined $results); isa_ok($results, 'ARRAY'); is(scalar @$results, scalar @$dist_searches); compare_arrays($results, $dist_searches, \%keys); } %keys = map { $_ => 1 } qw(dist_name mod_vers); for my $mod_search (qw(net ^uri::.*da)) { my $mod_searches = []; for my $mod_name (keys %$mods) { next unless $mod_name =~ /$mod_search/i; push @$mod_searches, { mod_name => $mod_name, %{ $mods->{$mod_name} } }; } $query->query(mode => 'module', query => $mod_search); $results = $query->{results}; ok(defined $results); isa_ok($results, 'ARRAY'); is(scalar @$results, scalar @$mod_searches); compare_arrays($results, $mod_searches, \%keys); } my $no_such = 'ZZZ'; for my $mode (qw(author dist module)) { for my $type (qw(name query)) { $query->query(mode => $mode, $type => $no_such); $results = $query->{results}; ok(not defined $results); } } # compare two array of hashes, disregarding order, with the # hashes having the same keys # the first argument is what's received, the 2nd what's expected # and the third the expected keys that should match sub compare_arrays { my ($x, $y, $keys) = @_; my $N = scalar @$x; for (my $i = 0 ; $i < $N ; $i++) { my $href = $x->[$i]; for my $key (keys %$href) { next unless defined $keys->{$key}; next unless $x->[$i]->{$key}; my $flag = 0; for (my $j = 0 ; $j < $N ; $j++) { if ($y->[$j]->{$key}) { my $test = ($key =~ /vers$/) ? (vcmp($x->[$i]->{$key}, $y->[$j]->{$key}) == 0) : $x->[$i]->{$key} eq $y->[$j]->{$key}; if ($test) { pass("Found matching $key"); $flag++; last; } } } unless ($flag) { fail(qq{Matching $key not found}); } } } } 07download.t100644000000000000 171413664647331 16443 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 07download.t 73 2019-01-23 22:29:38Z stro $ use strict; use warnings; use Test::More; use Cwd; use File::Spec::Functions; use File::Path; use FindBin; use lib "$FindBin::Bin/lib", 'lib', '../lib'; use TestShell; use CPAN::SQLite::Index; plan tests => 4; my $cwd = getcwd; my $db_dir = catdir $cwd, 't', 'cpan-t-07'; my $CPAN = $db_dir; my $log_dir = $db_dir; my $filename = 'cpansql.db'; my $filepath = catfile $db_dir, $filename; unlink $filepath if -e $filepath; mkdir $db_dir; ok(-d $CPAN); ok(-d $db_dir); my $info = CPAN::SQLite::Index->new( 'CPAN' => $CPAN, 'db_dir' => $db_dir, 'db_name' => $filename, 'urllist' => ['http://search.cpan.org/CPAN/'], ); isa_ok($info, 'CPAN::SQLite::Index'); SKIP: { $ENV{'CPAN_SQLITE_DOWNLOAD'} = 1; $ENV{'CPAN_SQLITE_DOWNLOAD_URL'} = 'http://cpansqlite.trouchelle.com/'; my $rv = $info->download_index(); skip 'Potential connection problems', 1 unless $rv; ok(-e $filepath); } 05meta_new.t100644000000000000 2212713664647331 16452 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 05meta_new.t 76 2019-01-24 19:50:04Z stro $ use strict; use warnings; use Test::More; use File::Spec; use Cwd; use File::Copy; use File::Path; use Config; use FindBin; use CPAN::DistnameInfo; use CPAN::SQLite::Util qw(download); use lib 't/lib'; use TestSQL qw($mods $auths $dists has_hash_data vcmp); use TestShell; $ENV{'CPAN_SQLITE_DOWNLOAD'} = $ENV{'CPAN_SQLITE_DOWNLOAD_URL'} = undef; my $cwd = cwd; my $path_sep = $Config{path_sep} || ':'; $ENV{PERL5LIB} = join $path_sep, (File::Spec->catdir($cwd, qw(t dot-cpan)), map { File::Spec->catdir($cwd, 'blib', $_) } qw(arch lib)), $ENV{PERL5LIB} || ''; # so that a real $HOME/.cpan isn't used $ENV{HOME} = File::Spec->catdir($cwd, qw(t dot-cpan)); # hack to get tests to pass on Darwin, as File::HomeDir # doesn't use HOME or PERL5LIB to specify where CPAN::MyConfig lives $ENV{CPAN_SQLITE_TESTING} = 1; my $from = File::Spec->catfile($cwd, qw(t dot-cpan CPAN TestConfig.pm)); my $to = File::Spec->catfile($cwd, qw(t dot-cpan CPAN MyConfig.pm)); unless (-f $to) { copy($from, $to) or die qq{Cannot cp $from to $to: $!}; } unshift @INC, File::Spec->catdir($cwd, qw(t dot-cpan)); eval { require CPAN::MyConfig; require CPAN; require CPAN::HandleConfig; require CPAN::Version; }; my $min_cpan_v = '1.88_64'; my $actual_cpan_v = $CPAN::VERSION; # older CPAN::Version's seem to have problems with underscores $min_cpan_v =~ s/_//g; $actual_cpan_v =~ s/_//g if $actual_cpan_v; if ($@ or CPAN::Version->vcmp($actual_cpan_v, $min_cpan_v) < 0) { plan skip_all => qq{Need CPAN.pm version $min_cpan_v or higher}; } else { plan tests => 2768; } # verify that we loaded the right CPAN::Config is($CPAN::Config->{QAZWSX}, 'PLMOKN'); my $home = $CPAN::Config->{cpan_home}; my $sources = $CPAN::Config->{keep_source_where}; my @dirs = map { File::Spec->catdir($sources, $_) } qw(authors modules); for (@dirs) { next if -d $_; mkpath($_) or die qq{Cannot mkpath $_: $!}; } my $db = File::Spec->catfile($home, 'cpandb.sql'); unlink($db) if -e $db; { my $mod_name = q{Date::Language}; my $mod = CPAN::Shell->expand("Module", $mod_name); is(-e $db, 1, "$db exists"); is(-s $db > 0, 1, "$db has non-zero size"); is($mod->id, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } { my $dist_file = q{TimeDate-1.16.tar.gz}; my $dist_name = q{TimeDate}; my $cpanid = q{GBARR}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } for my $mod_search (qw(Apache::)) { for my $mod (CPAN::Shell->expand("Module", "/$mod_search/")) { my $mod_name = $mod->id; is(defined $mods->{$mod_name}, 1, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } } { my $dist_file = q{Apache-GzipChain-1.14.tar.gz}; my $dist_name = q{Apache-GzipChain}; my $cpanid = q{ANDK}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } for my $dist_search (qw(CPAN-Test)) { for my $dist (CPAN::Shell->expand("Distribution", "/$dist_search/")) { my $id = $dist->id; my $pathname = "authors/id/$id"; my $d = CPAN::DistnameInfo->new($pathname); my $dist_name = $d->dist; is(defined $dists->{$dist_name}, 1, $dist_name); my $cpanid = $dist->author->id; my $download = download($cpanid, $dists->{$dist_name}->{dist_file}); is($id, $download, $download); is($cpanid, $dists->{$dist_name}->{cpanid}, $dists->{$dist_name}->{cpanid}); my %mods = map { $_ => 1 } $dist->containsmods; my $mods = $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } } { my $dist_file = q{CPAN-Test-Dummy-Perl5-Make-1.05.tar.gz}; my $dist_name = q{CPAN-Test-Dummy-Perl5-Make}; my $cpanid = q{ANDK}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } foreach my $cpanid (keys %$auths) { my $auth = CPAN::Shell->expand("Author", $cpanid); is($auth->id, $cpanid, "verify '$cpanid'"); foreach (qw(fullname email)) { next unless $auths->{$cpanid}->{$_}; is($auth->$_, $auths->{$cpanid}->{$_}); } } foreach my $mod_name (keys %$mods) { next if $mod_name =~ /^Bundle/; my $mod = CPAN::Shell->expand("Module", $mod_name); is($mod->id, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } foreach my $mod_name (keys %$mods) { next unless ($mod_name =~ /^Bundle::/); my $bundle = CPAN::Shell->expand("Bundle", $mod_name); is($bundle->id, $mod_name); like($bundle->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($bundle->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } for my $dist_name (keys %$dists) { my $dist_file = $dists->{$dist_name}->{dist_file}; my $cpanid = $dists->{$dist_name}->{cpanid}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } for my $mod_search (qw(net ^uri::.*da)) { for my $mod (CPAN::Shell->expand("Module", "/$mod_search/")) { my $mod_name = $mod->id; is(defined $mods->{$mod_name}, 1, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } } for my $mod_search (qw(CPAN MP)) { for my $bundle (CPAN::Shell->expand("Bundle", "/$mod_search/")) { my $mod_name = $bundle->id; is(defined $mods->{$mod_name}, 1, $mod_name); like($bundle->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($bundle->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } } for my $dist_search (qw(apache test.*perl)) { for my $dist (CPAN::Shell->expand("Distribution", "/$dist_search/")) { my $id = $dist->id; my $pathname = "authors/id/$id"; my $d = CPAN::DistnameInfo->new($pathname); my $dist_name = $d->dist; is(defined $dists->{$dist_name}, 1, $dist_name); my $cpanid = $dist->author->id; my $download = download($cpanid, $dists->{$dist_name}->{dist_file}); is($id, $download, $download); is($cpanid, $dists->{$dist_name}->{cpanid}, $dists->{$dist_name}->{cpanid}); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } } for my $auth_search (qw(G G\w+A)) { for my $auth (CPAN::Shell->expand("Author", "/$auth_search/")) { my $id = $auth->id; is(defined $auths->{$id}, 1, $id); foreach (qw(fullname email)) { next unless $auths->{$id}->{$_}; is($auth->$_, $auths->{$id}->{$_}, $auths->{$id}->{$_}); } } } my $no_such = 'ZZZ'; foreach my $type (qw(Author Distribution Module)) { my $query = ($type eq 'Distribution') ? "/$no_such/" : $no_such; my $item = CPAN::Shell->expand($type, $query); is($item, undef, "no such $type"); next if $type eq 'Distribution'; $item = CPAN::Shell->expand($type, "/$no_such/"); is($item, undef, "no such $type"); } # Local Variables: # mode: cperl # cperl-indent-level: 2 # End: 06retrieve.t100644000000000000 146113664647331 16457 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 06retrieve.t 73 2019-01-23 22:29:38Z stro $ use strict; use warnings; use Test::More; use Cwd; use File::Spec::Functions; use File::Path; use CPAN::DistnameInfo; use FindBin; use lib "$FindBin::Bin/lib"; use CPAN::SQLite::Index; use TestShell; $ENV{'CPAN_SQLITE_DOWNLOAD'} = $ENV{'CPAN_SQLITE_DOWNLOAD_URL'} = undef; plan tests => 4; my $cwd = getcwd; my $CPAN = catdir $cwd, 't', 'cpan-t-06'; mkdir $CPAN; ok(-d $CPAN); my $info = CPAN::SQLite::Index->new( 'CPAN' => $CPAN, 'db_dir' => $CPAN, 'urllist' => ['http://search.cpan.org/CPAN/'], ); isa_ok($info, 'CPAN::SQLite::Index'); SKIP: { skip 'Potential connection problems', 2 unless $info->fetch_cpan_indices(); ok(-e catfile($CPAN, 'authors', '01mailrc.txt.gz')); ok(-e catfile($CPAN, 'modules', '02packages.details.txt.gz')); } 00-compile.t100644000000000000 574313664647331 16340 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/tuse 5.006; use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058 use Test::More; plan tests => 12 + ($ENV{AUTHOR_TESTING} ? 1 : 0); my @module_files = ( 'CPAN/SQLite.pm', 'CPAN/SQLite/DBI.pm', 'CPAN/SQLite/DBI/Index.pm', 'CPAN/SQLite/DBI/Search.pm', 'CPAN/SQLite/Index.pm', 'CPAN/SQLite/Info.pm', 'CPAN/SQLite/META.pm', 'CPAN/SQLite/Populate.pm', 'CPAN/SQLite/Search.pm', 'CPAN/SQLite/State.pm', 'CPAN/SQLite/Util.pm' ); my @scripts = ( 'bin/cpandb' ); # no fake home requested my @switches = ( -d 'blib' ? '-Mblib' : '-Ilib', ); use File::Spec; use IPC::Open3; use IO::Handle; open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!"; my @warnings; for my $lib (@module_files) { # see L my $stderr = IO::Handle->new; diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} } $^X, @switches, '-e', "require q[$lib]")) if $ENV{PERL_COMPILE_TEST_DEBUG}; my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]"); binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$lib loaded ok"); shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ and not eval { +require blib; blib->VERSION('1.01') }; if (@_warnings) { warn @_warnings; push @warnings, @_warnings; } } foreach my $file (@scripts) { SKIP: { open my $fh, '<', $file or warn("Unable to open $file: $!"), next; my $line = <$fh>; close $fh and skip("$file isn't perl", 1) unless $line =~ /^#!\s*(?:\S*perl\S*)((?:\s+-\w*)*)(?:\s*#.*)?$/; @switches = (@switches, split(' ', $1)) if $1; close $fh and skip("$file uses -T; not testable with PERL5LIB", 1) if grep { $_ eq '-T' } @switches and $ENV{PERL5LIB}; my $stderr = IO::Handle->new; diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} } $^X, @switches, '-c', $file)) if $ENV{PERL_COMPILE_TEST_DEBUG}; my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-c', $file); binmode $stderr, ':crlf' if $^O eq 'MSWin32'; my @_warnings = <$stderr>; waitpid($pid, 0); is($?, 0, "$file compiled ok"); shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/ and not eval { +require blib; blib->VERSION('1.01') }; # in older perls, -c output is simply the file portion of the path being tested if (@_warnings = grep { !/\bsyntax OK$/ } grep { chomp; $_ ne (File::Spec->splitpath($file))[2] } @_warnings) { warn @_warnings; push @warnings, @_warnings; } } } is(scalar(@warnings), 0, 'no warnings found') or diag 'got warnings: ', ( Test::More->can('explain') ? Test::More::explain(\@warnings) : join("\n", '', @warnings) ) if $ENV{AUTHOR_TESTING}; author-eol.t100644000000000000 402613664647331 16543 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::EOL 0.19 use Test::More 0.88; use Test::EOL; my @files = ( 'bin/cpandb', 'lib/CPAN/SQLite.pm', 'lib/CPAN/SQLite/DBI.pm', 'lib/CPAN/SQLite/DBI/Index.pm', 'lib/CPAN/SQLite/DBI/Search.pm', 'lib/CPAN/SQLite/Index.pm', 'lib/CPAN/SQLite/Info.pm', 'lib/CPAN/SQLite/META.pm', 'lib/CPAN/SQLite/Populate.pm', 'lib/CPAN/SQLite/Search.pm', 'lib/CPAN/SQLite/State.pm', 'lib/CPAN/SQLite/Util.pm', 't/00-all_prereqs.t', 't/00-compile.t', 't/00-compile/lib_CPAN_SQLite_DBI_Index_pm.t', 't/00-compile/lib_CPAN_SQLite_DBI_Search_pm.t', 't/00-compile/lib_CPAN_SQLite_DBI_pm.t', 't/00-compile/lib_CPAN_SQLite_Index_pm.t', 't/00-compile/lib_CPAN_SQLite_Info_pm.t', 't/00-compile/lib_CPAN_SQLite_META_pm.t', 't/00-compile/lib_CPAN_SQLite_Populate_pm.t', 't/00-compile/lib_CPAN_SQLite_Search_pm.t', 't/00-compile/lib_CPAN_SQLite_State_pm.t', 't/00-compile/lib_CPAN_SQLite_Util_pm.t', 't/00-compile/lib_CPAN_SQLite_pm.t', 't/00-report-prereqs.dd', 't/00-report-prereqs.t', 't/000-report-versions.t', 't/01basic.t', 't/02drop.t', 't/03info.t', 't/04search.t', 't/04search_everything.t', 't/05meta_new.t', 't/05meta_update.t', 't/06retrieve.t', 't/07download.t', 't/08circular_references.t', 't/author-critic.t', 't/author-eol.t', 't/author-minimum-version.t', 't/author-no-tabs.t', 't/author-pod-syntax.t', 't/lib/TestSQL.pm', 't/lib/TestShell.pm', 't/lib/TestShellDiag.pm', 't/release-changes_has_content.t', 't/release-distmeta.t', 't/release-fixme.t', 't/release-has-version.t', 't/release-kwalitee.t', 't/release-meta-json.t', 't/release-pause-permissions.t', 't/testrules.yml' ); eol_unix_ok($_, { trailing_whitespace => 1 }) foreach @files; done_testing; testrules.yml100644000000000000 60413664647331 17032 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t--- seq: # tests that are not parallel-ready (will run in isolation) - seq: - t/02drop.t - t/03info.t - t/04search.t - t/04search_everything.t - t/05meta_new.t - t/05meta_update.t # tests that can run in parallel - par: # wildcard for everything else - ** lib000755000000000000 013664647331 14703 5ustar00unknownunknown000000000000CPAN-SQLite-0.219/tTestSQL.pm100644000000000000 25540313664647331 16751 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t/lib# $Id: TestSQL.pm 71 2019-01-15 01:46:34Z stro $ package TestSQL; use strict; use warnings; use base qw(Exporter); our (@EXPORT_OK, $dists, $mods, $auths); @EXPORT_OK = qw($dists $mods $auths has_hash_data vcmp); $dists = { 'CPAN-Test-Dummy-Perl5-Make' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Make' => 1, 'Bundle::CpanTestDummies' => 1 }, 'dist_vers' => '1.05', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Make-1.05.tar.gz' }, 'Apache-MP3' => { 'modules' => { 'Apache::MP3::L10N::sh' => 1, 'Apache::MP3::L10N::ms' => 1, 'Apache::MP3::L10N::nl_be' => 1, 'Apache::MP3::L10N::no' => 1, 'Apache::MP3' => 1, 'Apache::MP3::L10N::en' => 1, 'Apache::MP3::L10N::uk' => 1, 'Apache::MP3::L10N::nn' => 1, 'Apache::MP3::L10N::sr' => 1, 'Apache::MP3::L10N::hr' => 1, 'Apache::MP3::L10N::zh_tw' => 1, 'Apache::MP3::L10N::ga' => 1, 'Apache::MP3::L10N::tr' => 1, 'Apache::MP3::L10N::nl' => 1, 'Apache::MP3::L10N::sl' => 1, 'Apache::MP3::L10N::ru' => 1, 'Apache::MP3::L10N::fa' => 1, 'Apache::MP3::L10N::ko' => 1, 'Apache::MP3::L10N::is' => 1, 'Apache::MP3::L10N::ca' => 1, 'Apache::MP3::L10N::cs' => 1, 'Apache::MP3::L10N::he' => 1, 'Apache::MP3::Playlist' => 1, 'Apache::MP3::L10N::pl' => 1, 'Apache::MP3::L10N::nb' => 1, 'Apache::MP3::L10N::RightToLeft' => 1, 'Apache::MP3::L10N::fr' => 1, 'Apache::MP3::L10N::nb_no' => 1, 'Apache::MP3::L10N::zh_cn' => 1, 'Apache::MP3::L10N::x_marklar' => 1, 'Apache::MP3::L10N::fi' => 1, 'Apache::MP3::Sorted' => 1, 'Apache::MP3::L10N::nn_no' => 1, 'Apache::MP3::L10N::sk' => 1, 'Apache::MP3::L10N::nl_nl' => 1, 'Apache::MP3::L10N::es' => 1, 'Apache::MP3::L10N::ja' => 1, 'Apache::MP3::L10N' => 1, 'Apache::MP3::L10N::ar' => 1, 'Apache::MP3::L10N::Aliases' => 1, 'Apache::MP3::L10N::it' => 1, 'Apache::MP3::L10N::de' => 1, 'Apache::MP3::L10N::no_no' => 1 }, 'dist_vers' => '4.00', 'cpanid' => 'LDS', 'dist_file' => 'Apache-MP3-4.00.tar.gz' }, 'Devel-Symdump' => { 'modules' => { 'Devel::Symdump::Export' => 1, 'Devel::Symdump' => 1 }, 'dist_vers' => '2.0604', 'cpanid' => 'ANDK', 'dist_file' => 'Devel-Symdump-2.0604.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Make-Zip' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Make::Zip' => 1 }, 'dist_vers' => '1.03', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Make-Zip-1.03.zip' }, 'Convert-ASN1' => { 'modules' => { 'Convert::ASN1' => 1, 'Convert::ASN1::parser' => 1 }, 'dist_vers' => '0.20', 'cpanid' => 'GBARR', 'dist_file' => 'Convert-ASN1-0.20.tar.gz' }, 'Tie-DBI' => { 'modules' => { 'Tie::DBI' => 1, 'Tie::RDBM' => 1 }, 'dist_vers' => '1.02', 'cpanid' => 'LDS', 'dist_file' => 'Tie-DBI-1.02.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Make-CircDepeThree' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Make::CircDepeThree' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Make-CircDepeThree-1.00.tar.gz' }, 'GD' => { 'modules' => { 'GD::Polyline' => 1, 'GD' => 1, 'GD::Simple' => 1 }, 'dist_vers' => '2.35', 'cpanid' => 'LDS', 'dist_file' => 'GD-2.35.tar.gz' }, 'Errno' => { 'modules' => { 'Errno' => 1 }, 'dist_vers' => '1.09', 'cpanid' => 'GBARR', 'dist_file' => 'Errno-1.09.tar.gz' }, 'SHA' => { 'modules' => { 'SHA' => 1 }, 'dist_vers' => '2.01', 'cpanid' => 'GAAS', 'dist_file' => 'SHA-2.01.tar.gz' }, 'Tkx' => { 'modules' => { 'Tkx::MegaConfig' => 1, 'Tkx' => 1, 'Tkx::LabEntry' => 1 }, 'dist_vers' => '1.04', 'cpanid' => 'GAAS', 'dist_file' => 'Tkx-1.04.tar.gz' }, 'Apache-GzipChain' => { 'modules' => { 'Apache::PassFile' => 1, 'Apache::GzipChain' => 1 }, 'dist_vers' => '1.14', 'cpanid' => 'ANDK', 'dist_file' => 'Apache-GzipChain-1.14.tar.gz' }, 'TimeDate' => { 'modules' => { 'Date::Language::Dutch' => 1, 'Date::Language' => 1, 'Date::Language::Afar' => 1, 'Date::Language::Sidama' => 1, 'Date::Language::Amharic' => 1, 'Date::Language::TigrinyaEritrean' => 1, 'Date::Format' => 1, 'Date::Language::Danish' => 1, 'Time::Zone' => 1, 'Date::Language::English' => 1, 'Date::Language::Swedish' => 1, 'Date::Language::Norwegian' => 1, 'Date::Language::Tigrinya' => 1, 'Date::Language::Gedeo' => 1, 'Date::Language::TigrinyaEthiopian' => 1, 'Date::Language::Austrian' => 1, 'Date::Parse' => 1, 'Date::Language::Chinese_GB' => 1, 'Date::Language::French' => 1, 'Date::Language::Brazilian' => 1, 'Date::Language::Somali' => 1, 'Date::Language::Czech' => 1, 'Date::Language::Oromo' => 1, 'Date::Language::German' => 1, 'Date::Language::Italian' => 1, 'Date::Language::Greek' => 1, 'Date::Language::Finnish' => 1 }, 'dist_vers' => '1.16', 'cpanid' => 'GBARR', 'dist_file' => 'TimeDate-1.16.tar.gz' }, 'IPC-SysV' => { 'modules' => { 'IPC::Semaphore' => 1, 'IPC::Msg' => 1, 'IPC::SysV' => 1 }, 'dist_vers' => '1.03', 'cpanid' => 'GBARR', 'dist_file' => 'IPC-SysV-1.03.tar.gz' }, 'Devel-Cycle' => { 'modules' => { 'Devel::Cycle' => 1 }, 'dist_vers' => '1.07', 'cpanid' => 'LDS', 'dist_file' => 'Devel-Cycle-1.07.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Make-CircDepeTwo' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Make::CircDepeTwo' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Make-CircDepeTwo-1.00.tar.gz' }, 'HTML-Parser' => { 'modules' => { 'HTML::LinkExtor' => 1, 'HTML::TokeParser' => 1, 'HTML::HeadParser' => 1, 'HTML::Entities' => 1, 'HTML::Parser' => 1, 'HTML::PullParser' => 1, 'HTML::Filter' => 1 }, 'dist_vers' => '3.55', 'cpanid' => 'GAAS', 'dist_file' => 'HTML-Parser-3.55.tar.gz' }, 'Crypt-CBC' => { 'modules' => { 'Crypt::CBC' => 1 }, 'dist_vers' => '2.22', 'cpanid' => 'LDS', 'dist_file' => 'Crypt-CBC-2.22.tar.gz' }, 'webchat' => { 'modules' => { 'WWW::Chat' => 1 }, 'dist_vers' => '0.05', 'cpanid' => 'GAAS', 'dist_file' => 'webchat-0.05.tar.gz' }, 'Font-AFM' => { 'modules' => { 'Font::Metrics::TimesRoman' => 1, 'Font::Metrics::CourierOblique' => 1, 'Font::Metrics::HelveticaBoldOblique' => 1, 'Font::Metrics::HelveticaBold' => 1, 'Font::Metrics::CourierBold' => 1, 'Font::Metrics::Helvetica' => 1, 'Font::Metrics::HelveticaOblique' => 1, 'Font::Metrics::TimesBoldItalic' => 1, 'Font::Metrics::TimesItalic' => 1, 'Font::AFM' => 1, 'Font::Metrics::CourierBoldOblique' => 1, 'Font::Metrics::TimesBold' => 1, 'Font::Metrics::Courier' => 1 }, 'dist_vers' => '1.19', 'cpanid' => 'GAAS', 'dist_file' => 'Font-AFM-1.19.tar.gz' }, 'pyperl' => { 'modules' => { 'Python::Object' => 1 }, 'dist_vers' => '1.0', 'cpanid' => 'GAAS', 'dist_file' => 'pyperl-1.0.tar.gz' }, 'Convert-BER' => { 'modules' => { 'Convert::BER' => 1, 'Convert::BER::BER' => 1 }, 'dist_vers' => '1.3101', 'cpanid' => 'GBARR', 'dist_file' => 'Convert-BER-1.3101.tar.gz' }, 'MAB2' => { 'modules' => { 'MAB2::Record::pnd' => 1, 'MAB2::Record::swd' => 1, 'Tie::MAB2::Dualdb' => 1, 'MAB2::Record::lokal' => 1, 'MAB2::Record::titel' => 1, 'MAB2::Record::gkd' => 1, 'Tie::MAB2::RecnoViaId' => 1, 'Encode::MAB2table' => 1, 'Tie::MAB2::Dualdb::Recno' => 1, 'Encode::MAB2' => 1, 'Tie::MAB2::Id' => 1, 'Tie::MAB2::Dualdb::Id' => 1, 'MAB2::Record::Base' => 1, 'Tie::MAB2::Recno' => 1 }, 'dist_vers' => '0.06', 'cpanid' => 'ANDK', 'dist_file' => 'MAB2-0.06.tar.gz' }, 'Digest-SHA1' => { 'modules' => { 'Digest::SHA1' => 1 }, 'dist_vers' => '2.11', 'cpanid' => 'GAAS', 'dist_file' => 'Digest-SHA1-2.11.tar.gz' }, 'Perl-Repository-APC' => { 'modules' => { 'Perl::Repository::APC' => 1, 'Perl::Repository::APC::BAP' => 1, 'Perl::Repository::APC2SVN' => 1 }, 'dist_vers' => '1.220', 'cpanid' => 'ANDK', 'dist_file' => 'Perl-Repository-APC-1.220.tar.gz' }, 'UDDI' => { 'modules' => { 'UDDI::SOAP' => 1, 'UDDI' => 1 }, 'dist_vers' => '0.03', 'cpanid' => 'GAAS', 'dist_file' => 'UDDI-0.03.tar.gz' }, 'Data-DumpXML' => { 'modules' => { 'Data::DumpXML' => 1, 'Data::DumpXML::Parser' => 1 }, 'dist_vers' => '1.06', 'cpanid' => 'GAAS', 'dist_file' => 'Data-DumpXML-1.06.tar.gz' }, 'LWPng-alpha' => { 'modules' => { 'LWP::Dump' => 1, 'LWP::Conn::HTTP' => 1, 'LWP::Authen::digest' => 1, 'LWP::Sink::Tee' => 1, 'LWP::UA::Cookies' => 1, 'LWP::MainLoop' => 1, 'LWP::Sink::rot13' => 1, 'LWP::Sink::identity' => 1, 'LWP::StdSched' => 1, 'LWP::Version' => 1, 'LWP::Sink::Monitor' => 1, 'LWP::Sink::base64' => 1, 'LWP::Conn::FILE' => 1, 'LWP::UA' => 1, 'LWP::Conn::FTP' => 1, 'LWP::EventLoop' => 1, 'LWP::Sink::Buffer' => 1, 'LWP::Authen::basic' => 1, 'LWP::Sink::HTML' => 1, 'LWP::Authen' => 1, 'LWP::Sink::_Pipe' => 1, 'LWP::Redirect' => 1, 'URI::Attr' => 1, 'LWP::Conn' => 1, 'LWP::Sink::deflate' => 1, 'LWP::UA::Proxy' => 1, 'LWP::Sink::qp' => 1, 'LWP::Conn::_Cmd' => 1, 'LWP::Sink::IO' => 1, 'LWP::Sink' => 1, 'LWP::Hooks' => 1, 'LWP::Request' => 1, 'LWP::Conn::_Connect' => 1, 'LWP::Server' => 1 }, 'dist_vers' => '0.24', 'cpanid' => 'GAAS', 'dist_file' => 'LWPng-alpha-0.24.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Build-DepeFails' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Build::DepeFails' => 1 }, 'dist_vers' => '1.02', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Build-DepeFails-1.02.tar.gz' }, 'Text-Shellwords' => { 'modules' => { 'Text::Shellwords' => 1 }, 'dist_vers' => '1.08', 'cpanid' => 'LDS', 'dist_file' => 'Text-Shellwords-1.08.tar.gz' }, 'Apache-Session-Counted' => { 'modules' => { 'Apache::Session::Counted' => 1 }, 'dist_vers' => '1.118', 'cpanid' => 'ANDK', 'dist_file' => 'Apache-Session-Counted-1.118.tar.gz' }, 'Regexp' => { 'modules' => { 'Regexp' => 1 }, 'dist_vers' => '0.004', 'cpanid' => 'GBARR', 'dist_file' => 'Regexp-0.004.tar.gz' }, 'URI' => { 'modules' => { 'URI::mailto' => 1, 'URI::QueryParam' => 1, 'URI::file::Mac' => 1, 'URI::rtsp' => 1, 'URI::urn::oid' => 1, 'URI::file' => 1, 'URI::https' => 1, 'URI::sips' => 1, 'URI::file::Base' => 1, 'URI::_generic' => 1, 'URI::rtspu' => 1, 'URI::tn3270' => 1, 'URI::urn::isbn' => 1, 'URI::_login' => 1, 'URI::gopher' => 1, 'URI::rlogin' => 1, 'URI::mms' => 1, 'URI::ldap' => 1, 'URI::Split' => 1, 'URI::data' => 1, 'URI::_server' => 1, 'URI::ldaps' => 1, 'URI::ssh' => 1, 'URI::file::OS2' => 1, 'URI::ftp' => 1, 'URI::WithBase' => 1, 'URI::Escape' => 1, 'URI::file::Win32' => 1, 'URI::_segment' => 1, 'URI::_query' => 1, 'URI::Heuristic' => 1, 'URI::file::QNX' => 1, 'URI::urn' => 1, 'URI::sip' => 1, 'URI::nntp' => 1, 'URI' => 1, 'URI::file::Unix' => 1, 'URI::http' => 1, 'URI::telnet' => 1, 'URI::file::FAT' => 1, 'URI::rsync' => 1, 'URI::ldapi' => 1, 'URI::_ldap' => 1, 'URI::snews' => 1, 'URI::URL' => 1, 'URI::_userpass' => 1, 'URI::pop' => 1, 'URI::news' => 1 }, 'dist_vers' => '1.35', 'cpanid' => 'GAAS', 'dist_file' => 'URI-1.35.tar.gz' }, 'Tie-Dir' => { 'modules' => { 'Tie::Dir' => 1 }, 'dist_vers' => '1.02', 'cpanid' => 'GBARR', 'dist_file' => 'Tie-Dir-1.02.tar.gz' }, 'Bio-SCF' => { 'modules' => { 'Bio::SCF::Arrays' => 1, 'Bio::SCF' => 1 }, 'dist_vers' => '1.01', 'cpanid' => 'LDS', 'dist_file' => 'Bio-SCF-1.01.tar.gz' }, 'Digest-MD2' => { 'modules' => { 'Digest::MD2' => 1 }, 'dist_vers' => '2.03', 'cpanid' => 'GAAS', 'dist_file' => 'Digest-MD2-2.03.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Make-Failearly' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Make::Failearly' => 1 }, 'dist_vers' => '1.02', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Make-Failearly-1.02.tar.gz' }, 'Net-TFTP' => { 'modules' => { 'Net::TFTP' => 1 }, 'dist_vers' => '0.16', 'cpanid' => 'GBARR', 'dist_file' => 'Net-TFTP-0.16.tar.gz' }, 'Digest-HMAC' => { 'modules' => { 'Digest::HMAC_SHA1' => 1, 'Digest::HMAC' => 1, 'Digest::HMAC_MD5' => 1 }, 'dist_vers' => '1.01', 'cpanid' => 'GAAS', 'dist_file' => 'Digest-HMAC-1.01.tar.gz' }, 'Bundle-CPAN' => { 'modules' => { 'Bundle::CPANxxl' => 1, 'Bundle::CPAN' => 1 }, 'dist_vers' => '1.854', 'cpanid' => 'ANDK', 'dist_file' => 'Bundle-CPAN-1.854.tar.gz' }, 'Apache-Stage' => { 'modules' => { 'Apache::Stage' => 1 }, 'dist_vers' => '1.20', 'cpanid' => 'ANDK', 'dist_file' => 'Apache-Stage-1.20.tar.gz' }, 'AcePerl' => { 'modules' => { 'Ace' => 1, 'Ace::Browser::GeneSubs' => 1, 'Ace::Sequence::Multi' => 1, 'Ace::Graphics::Glyph::dot' => 1, 'Ace::Graphics::GlyphFactory' => 1, 'Ace::Graphics::Glyph::anchored_arrow' => 1, 'Ace::Freesubs' => 1, 'Ace::Sequence::Gene' => 1, 'Ace::Sequence::Transcript' => 1, 'Ace::Object::Wormbase' => 1, 'Ace::Graphics::Glyph::primers' => 1, 'Ace::Graphics::Glyph::ex' => 1, 'Ace::Graphics::Glyph::transcript' => 1, 'Ace::Graphics::Glyph::group' => 1, 'Ace::Graphics::Glyph::arrow' => 1, 'Ace::Graphics::Glyph::crossbox' => 1, 'Ace::Sequence::FeatureList' => 1, 'Ace::Model' => 1, 'Ace::Browser::SiteDefs' => 1, 'Ace::Graphics::Glyph::triangle' => 1, 'Ace::Graphics::Glyph::graded_segments' => 1, 'Ace::Sequence' => 1, 'Ace::Sequence::Feature' => 1, 'Ace::Graphics::Glyph::box' => 1, 'Ace::Graphics::Track' => 1, 'Ace::Graphics::Glyph::line' => 1, 'Ace::Browser::SearchSubs' => 1, 'Ace::Object' => 1, 'Ace::Sequence::GappedAlignment' => 1, 'Ace::Graphics::Glyph::span' => 1, 'Ace::Sequence::Homol' => 1, 'Ace::SocketServer' => 1, 'Ace::Graphics::Glyph' => 1, 'Ace::Local' => 1, 'Ace::Graphics::Glyph::toomany' => 1, 'GFF::Filehandle' => 1, 'Ace::Graphics::Glyph::segments' => 1, 'Ace::Graphics::Panel' => 1, 'Ace::Graphics::Fk' => 1, 'Ace::Iterator' => 1, 'Ace::Browser::TreeSubs' => 1, 'Ace::RPC' => 1, 'Ace::Browser::AceSubs' => 1 }, 'dist_vers' => '1.89', 'cpanid' => 'LDS', 'dist_file' => 'AcePerl-1.89.tar.gz' }, 'perlbench' => { 'modules' => { 'PerlBench::Results' => 1, 'MyPodHtml' => 1, 'PerlBench' => 1, 'PerlBench::Stats' => 1 }, 'dist_vers' => '0.93', 'cpanid' => 'GAAS', 'dist_file' => 'perlbench-0.93.tar.gz' }, 'Apache-HeavyCGI' => { 'modules' => { 'Apache::HeavyCGI::Layout' => 1, 'Apache::HeavyCGI::Debug' => 1, 'Apache::HeavyCGI::IfModified' => 1, 'Apache::HeavyCGI::SquidRemoteAddr' => 1, 'Apache::HeavyCGI::Date' => 1, 'Apache::HeavyCGI' => 1, 'Apache::HeavyCGI::Exception' => 1, 'Apache::HeavyCGI::ExePlan' => 1, 'Apache::HeavyCGI::UnmaskQuery' => 1 }, 'dist_vers' => '0.013302', 'cpanid' => 'ANDK', 'dist_file' => 'Apache-HeavyCGI-0.013302.tar.gz' }, 'PostScript-EPSF' => { 'modules' => { 'PostScript::EPSF' => 1 }, 'dist_vers' => '0.01', 'cpanid' => 'GAAS', 'dist_file' => 'PostScript-EPSF-0.01.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Build-Fails' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Build::Fails' => 1 }, 'dist_vers' => '1.03', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Build-Fails-1.03.tar.gz' }, 'IO-Socket-Multicast' => { 'modules' => { 'IO::Socket::Multicast' => 1 }, 'dist_vers' => '1.05', 'cpanid' => 'LDS', 'dist_file' => 'IO-Socket-Multicast-1.05.tar.gz' }, 'IO' => { 'modules' => { 'IO::Seekable' => 1, 'IO::File' => 1, 'IO::Pipe' => 1, 'IO::Handle' => 1, 'IO::Socket::UNIX' => 1, 'IO::Socket::INET' => 1, 'IO' => 1, 'IO::Socket' => 1, 'IO::Select' => 1, 'IO::Poll' => 1, 'IO::Dir' => 1 }, 'dist_vers' => '1.2301', 'cpanid' => 'GBARR', 'dist_file' => 'IO-1.2301.tar.gz' }, 'libwww-perl' => { 'modules' => { 'LWP::Protocol::cpan' => 1, 'LWP::Protocol::ftp' => 1, 'HTTP::Status' => 1, 'File::Listing' => 1, 'LWP::Protocol::http10' => 1, 'HTTP::Cookies::Microsoft' => 1, 'HTTP::Headers' => 1, 'LWP::Protocol::nogo' => 1, 'LWP::Protocol::nntp' => 1, 'HTTP::Daemon' => 1, 'LWP::Protocol::mailto' => 1, 'HTML::Form' => 1, 'LWP::Protocol::gopher' => 1, 'LWP::ConnCache' => 1, 'Net::HTTPS' => 1, 'HTTP::Cookies' => 1, 'HTTP::Message' => 1, 'HTTP::Request::Common' => 1, 'HTTP::Headers::Auth' => 1, 'LWP::Protocol::loopback' => 1, 'HTTP::Response' => 1, 'HTTP::Cookies::Netscape' => 1, 'LWP::Authen::Ntlm' => 1, 'LWP::Authen::Basic' => 1, 'WWW::RobotRules' => 1, 'LWP::Protocol' => 1, 'HTTP::Request' => 1, 'LWP' => 1, 'LWP::MediaTypes' => 1, 'LWP::Protocol::data' => 1, 'HTTP::Negotiate' => 1, 'LWP::Protocol::https' => 1, 'Net::HTTP::NB' => 1, 'LWP::Simple' => 1, 'LWP::DebugFile' => 1, 'Net::HTTP' => 1, 'LWP::RobotUA' => 1, 'LWP::Protocol::file' => 1, 'HTTP::Headers::Util' => 1, 'HTTP::Headers::ETag' => 1, 'LWP::Authen::Digest' => 1, 'LWP::Protocol::http' => 1, 'HTTP::Date' => 1, 'LWP::MemberMixin' => 1, 'LWP::Protocol::GHTTP' => 1, 'LWP::UserAgent' => 1, 'Bundle::LWP' => 1, 'LWP::Debug' => 1, 'LWP::Protocol::https10' => 1, 'WWW::RobotRules::AnyDBM_File' => 1, 'Net::HTTP::Methods' => 1 }, 'dist_vers' => '5.805', 'cpanid' => 'GAAS', 'dist_file' => 'libwww-perl-5.805.tar.gz' }, 'CPAN-Checksums' => { 'modules' => { 'CPAN::Checksums' => 1 }, 'dist_vers' => '1.050', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Checksums-1.050.tar.gz' }, 'libnet' => { 'modules' => { 'Net::FTP::dataconn' => 1, 'Net::FTP' => 1, 'Net::FTP::A' => 1, 'Net::POP3' => 1, 'Net::NNTP' => 1, 'Net::Netrc' => 1, 'Net::Cmd' => 1, 'Net::Config' => 1, 'Net::Time' => 1, 'Net::SMTP' => 1, 'Net::FTP::E' => 1, 'Net::FTP::L' => 1, 'Net::FTP::I' => 1, 'Net::Domain' => 1 }, 'dist_vers' => '1.19', 'cpanid' => 'GBARR', 'dist_file' => 'libnet-1.19.tar.gz' }, 'CPAN-DistnameInfo' => { 'modules' => { 'CPAN::DistnameInfo' => 1 }, 'dist_vers' => '0.06', 'cpanid' => 'GBARR', 'dist_file' => 'CPAN-DistnameInfo-0.06.tar.gz' }, 'MIME-Base64' => { 'modules' => { 'MIME::Base64' => 1, 'MIME::QuotedPrint' => 1 }, 'dist_vers' => '3.07', 'cpanid' => 'GAAS', 'dist_file' => 'MIME-Base64-3.07.tar.gz' }, 'IO-String' => { 'modules' => { 'IO::String' => 1 }, 'dist_vers' => '1.08', 'cpanid' => 'GAAS', 'dist_file' => 'IO-String-1.08.tar.gz' }, 'perl-lisp' => { 'modules' => { 'Lisp::Localize' => 1, 'Lisp::Vector' => 1, 'Lisp::Subr::Perl' => 1, 'Lisp::Printer' => 1, 'Lisp::Subr::All' => 1, 'Lisp::Cons' => 1, 'Lisp::Special' => 1, 'Lisp::String' => 1, 'Lisp::List' => 1, 'Gnus::Newsrc' => 1, 'Lisp::Interpreter' => 1, 'Lisp::Reader' => 1, 'Lisp::Symbol' => 1, 'Lisp::Subr::Core' => 1 }, 'dist_vers' => '0.06', 'cpanid' => 'GAAS', 'dist_file' => 'perl-lisp-0.06.tar.gz' }, 'MD5' => { 'modules' => { 'MD5' => 1 }, 'dist_vers' => '2.03', 'cpanid' => 'GAAS', 'dist_file' => 'MD5-2.03.tar.gz' }, 'MIME-Base64-Perl' => { 'modules' => { 'MIME::Base64::Perl' => 1, 'MIME::QuotedPrint::Perl' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'GAAS', 'dist_file' => 'MIME-Base64-Perl-1.00.tar.gz' }, 'File-CounterFile' => { 'modules' => { 'File::CounterFile' => 1 }, 'dist_vers' => '1.04', 'cpanid' => 'GAAS', 'dist_file' => 'File-CounterFile-1.04.tar.gz' }, 'Devel-SawAmpersand' => { 'modules' => { 'Devel::SawAmpersand' => 1, 'B::FindAmpersand' => 1, 'Devel::FindAmpersand' => 1 }, 'dist_vers' => '0.30', 'cpanid' => 'ANDK', 'dist_file' => 'Devel-SawAmpersand-0.30.tar.gz' }, 'IO-Interface' => { 'modules' => { 'IO::Interface::Simple' => 1, 'IO::Interface' => 1 }, 'dist_vers' => '1.02', 'cpanid' => 'LDS', 'dist_file' => 'IO-Interface-1.02.tar.gz' }, 'Bundle-libnet' => { 'modules' => { 'Bundle::libnet' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'GBARR', 'dist_file' => 'Bundle-libnet-1.00.tar.gz' }, 'Net-PH' => { 'modules' => { 'Net::PH' => 1 }, 'dist_vers' => '2.21', 'cpanid' => 'GBARR', 'dist_file' => 'Net-PH-2.21.tar.gz' }, 'Unicode-String' => { 'modules' => { 'Unicode::String' => 1, 'Unicode::CharName' => 1 }, 'dist_vers' => '2.09', 'cpanid' => 'GAAS', 'dist_file' => 'Unicode-String-2.09.tar.gz' }, 'HTTPD-User-Manage' => { 'modules' => { 'HTTPD::GroupAdmin' => 1, 'HTTPD::UserAdmin::Text' => 1, 'HTTPD::RealmManager' => 1, 'HTTPD::GroupAdmin::Text' => 1, 'HTTPD::Realm' => 1, 'HTTPD::UserAdmin::SQL' => 1, 'HTTPD::UserAdmin' => 1 }, 'dist_vers' => '1.65', 'cpanid' => 'LDS', 'dist_file' => 'HTTPD-User-Manage-1.65.tar.gz' }, 'Unicode-Map8' => { 'modules' => { 'Unicode::Map8' => 1 }, 'dist_vers' => '0.12', 'cpanid' => 'GAAS', 'dist_file' => 'Unicode-Map8-0.12.tar.gz' }, 'Convert-Recode' => { 'modules' => { 'Convert::Recode' => 1 }, 'dist_vers' => '1.04', 'cpanid' => 'GAAS', 'dist_file' => 'Convert-Recode-1.04.tar.gz' }, 'Apache-UploadSvr' => { 'modules' => { 'Apache::UploadSvr::Directory' => 1, 'Apache::UploadSvr::Dictionary' => 1, 'Apache::UploadSvr::User' => 1, 'Apache::UploadSvr' => 1 }, 'dist_vers' => '1.024', 'cpanid' => 'ANDK', 'dist_file' => 'Apache-UploadSvr-1.024.tar.gz' }, 'IO-Sockatmark' => { 'modules' => { 'IO::Sockatmark' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'LDS', 'dist_file' => 'IO-Sockatmark-1.00.tar.gz' }, 'perl-ldap' => { 'modules' => { 'Net::LDAP::LDIF' => 1, 'Net::LDAP::Control::ProxyAuth' => 1, 'Net::LDAP::Filter' => 1, 'Net::LDAP::Control::Paged' => 1, 'Net::LDAP::Message' => 1, 'Net::LDAP::Control::ManageDsaIT' => 1, 'Net::LDAPI' => 1, 'Net::LDAP::Control::PersistentSearch' => 1, 'Net::LDAP::Search' => 1, 'Net::LDAP::Control::SortResult' => 1, 'Net::LDAP::Control' => 1, 'Net::LDAP::Util' => 1, 'LWP::Protocol::ldap' => 1, 'Net::LDAP::Control::VLVResponse' => 1, 'Net::LDAPS' => 1, 'Net::LDAP::Control::EntryChange' => 1, 'Net::LDAP::Constant' => 1, 'Net::LDAP::Entry' => 1, 'Net::LDAP::Control::VLV' => 1, 'Net::LDAP::Schema' => 1, 'Bundle::Net::LDAP' => 1, 'Net::LDAP::Extra' => 1, 'Net::LDAP::ASN' => 1, 'Net::LDAP::Extension::WhoAmI' => 1, 'Net::LDAP::Extension::SetPassword' => 1, 'Net::LDAP::RootDSE' => 1, 'Net::LDAP::Extension' => 1, 'Net::LDAP::Bind' => 1, 'Net::LDAP' => 1, 'Net::LDAP::Control::Sort' => 1, 'Net::LDAP::DSML' => 1 }, 'dist_vers' => '0.33', 'cpanid' => 'GBARR', 'dist_file' => 'perl-ldap-0.33.tar.gz' }, 'Scalar-List-Utils' => { 'modules' => { 'Scalar::Util' => 1, 'List::Util' => 1 }, 'dist_vers' => '1.18', 'cpanid' => 'GBARR', 'dist_file' => 'Scalar-List-Utils-1.18.tar.gz' }, 'Lingua-Shakespeare' => { 'modules' => { 'Lingua::Shakespeare::Play' => 1, 'Lingua::Shakespeare::Character' => 1, 'Lingua::Shakespeare' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'GBARR', 'dist_file' => 'Lingua-Shakespeare-1.00.tar.gz' }, 'Digest-Adler32' => { 'modules' => { 'Digest::Adler32' => 1 }, 'dist_vers' => '0.03', 'cpanid' => 'GAAS', 'dist_file' => 'Digest-Adler32-0.03.tar.gz' }, 'CPAN-Test-Dummy-Perl5-BuildOrMake' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::BuildOrMake' => 1 }, 'dist_vers' => '1.02', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-BuildOrMake-1.02.tar.gz' }, 'Digest-MD5' => { 'modules' => { 'Digest::MD5' => 1 }, 'dist_vers' => '2.36', 'cpanid' => 'GAAS', 'dist_file' => 'Digest-MD5-2.36.tar.gz' }, 'Array-RefElem' => { 'modules' => { 'Array::RefElem' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'GAAS', 'dist_file' => 'Array-RefElem-1.00.tar.gz' }, 'Digest' => { 'modules' => { 'Digest' => 1, 'Digest::file' => 1, 'Digest::base' => 1 }, 'dist_vers' => '1.15', 'cpanid' => 'GAAS', 'dist_file' => 'Digest-1.15.tar.gz' }, 'Module-Install-InstallDirs' => { 'modules' => { 'Module::Install::InstallDirs' => 1 }, 'dist_vers' => '0.01', 'cpanid' => 'GBARR', 'dist_file' => 'Module-Install-InstallDirs-0.01.tar.gz' }, 'Convert-UU' => { 'modules' => { 'Convert::UU' => 1 }, 'dist_vers' => '0.52', 'cpanid' => 'ANDK', 'dist_file' => 'Convert-UU-0.52.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Make-CircDepeOne' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Make::CircDepeOne' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Make-CircDepeOne-1.00.tar.gz' }, 'CPAN-Test-Dummy-Perl5-Build' => { 'modules' => { 'CPAN::Test::Dummy::Perl5::Build' => 1 }, 'dist_vers' => '1.03', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-Test-Dummy-Perl5-Build-1.03.tar.gz' }, 'Norge' => { 'modules' => { 'No::KontoNr' => 1, 'No::PersonNr' => 1, 'No::Sort' => 1, 'No::Dato' => 1 }, 'dist_vers' => '1.08', 'cpanid' => 'GAAS', 'dist_file' => 'Norge-1.08.tar.gz' }, 'rlib' => { 'modules' => { 'rlib' => 1 }, 'dist_vers' => '0.02', 'cpanid' => 'GBARR', 'dist_file' => 'rlib-0.02.tar.gz' }, 'LWP-attic' => { 'modules' => { 'LWP::Socket' => 1, 'LWP::SecureSocket' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'GAAS', 'dist_file' => 'LWP-attic-1.00.tar.gz' }, 'Authen-SASL' => { 'modules' => { 'Authen::SASL::Perl::DIGEST_MD5' => 1, 'Authen::SASL::Perl::CRAM_MD5' => 1, 'Authen::SASL::Perl' => 1, 'Authen::SASL' => 1, 'Authen::SASL::Perl::GSSAPI' => 1, 'Authen::SASL::Perl::ANONYMOUS' => 1, 'Authen::SASL::EXTERNAL' => 1, 'Authen::SASL::CRAM_MD5' => 1, 'Authen::SASL::Perl::PLAIN' => 1, 'Authen::SASL::Perl::LOGIN' => 1, 'Authen::SASL::Perl::EXTERNAL' => 1 }, 'dist_vers' => '2.10', 'cpanid' => 'GBARR', 'dist_file' => 'Authen-SASL-2.10.tar.gz' }, 'Bio-Das' => { 'modules' => { 'Bio::Das' => 1, 'Bio::Das::Request::Dsn' => 1, 'Bio::Das::AGPServer::Daemon' => 1, 'Bio::Das::TypeHandler' => 1, 'Bio::Das::HTTP::Fetch' => 1, 'Bio::Das::AGPServer::SQLStorage::MySQL::DB' => 1, 'Bio::Das::Request::Types' => 1, 'Bio::Das::Request' => 1, 'Bio::Das::Request::Dnas' => 1, 'Bio::Das::DSN' => 1, 'Bio::Das::Stylesheet' => 1, 'Bio::Das::AGPServer::Parser' => 1, 'Bio::Das::Util' => 1, 'Bio::Das::FeatureIterator' => 1, 'Bio::Das::Map' => 1, 'Bio::Das::AGPServer::Config' => 1, 'Bio::Das::Request::Stylesheet' => 1, 'Bio::Das::Request::Entry_points' => 1, 'Bio::Das::Request::Features' => 1, 'Bio::Das::Type' => 1, 'Bio::Das::Request::Sequences' => 1, 'Bio::Das::Segment' => 1, 'Bio::Das::AGPServer::SQLStorage' => 1, 'Bio::Das::Feature' => 1, 'Bio::Das::AGPServer::SQLStorage::CSV::DB' => 1, 'Bio::Das::Request::Feature2Segments' => 1 }, 'dist_vers' => '1.03', 'cpanid' => 'LDS', 'dist_file' => 'Bio-Das-1.03.tar.gz' }, 'Include' => { 'modules' => { 'Include' => 1 }, 'dist_vers' => '1.02a', 'cpanid' => 'GBARR', 'dist_file' => 'Include-1.02a.tar.gz' }, 'Boulder' => { 'modules' => { 'Boulder::Genbank' => 1, 'Boulder::LocusLink' => 1, 'Boulder::Medline' => 1, 'Stone' => 1, 'Boulder::Stream' => 1, 'Boulder::Swissprot' => 1, 'Boulder::String' => 1, 'Boulder::Blast::WU' => 1, 'Stone::Cursor' => 1, 'Stone::GB_Sequence' => 1, 'Boulder::Blast::NCBI' => 1, 'Boulder::Store' => 1, 'Boulder::Blast' => 1 }, 'dist_vers' => '1.30', 'cpanid' => 'LDS', 'dist_file' => 'Boulder-1.30.tar.gz' }, 'Bundle-MP3' => { 'modules' => { 'Bundle::MP3' => 1 }, 'dist_vers' => '1.00', 'cpanid' => 'LDS', 'dist_file' => 'Bundle-MP3-1.00.tar.gz' }, 'CPAN' => { 'modules' => { 'CPAN::Nox' => 1, 'CPAN::FirstTime' => 1, 'CPAN::Tarzip' => 1, 'CPAN::Debug' => 1, 'CPAN::Version' => 1, 'CPAN::Admin' => 1, 'CPAN' => 1, 'CPAN::HandleConfig' => 1 }, 'dist_vers' => '1.8802', 'cpanid' => 'ANDK', 'dist_file' => 'CPAN-1.8802.tar.gz' }, 'DB_File-SV18x-kit' => { 'modules' => { 'DB_File::SV18x' => 1 }, 'dist_vers' => '0.06', 'cpanid' => 'ANDK', 'dist_file' => 'DB_File-SV18x-kit-0.06.tar.gz' }, 'Data-Dump' => { 'modules' => { 'Data::Dump' => 1 }, 'dist_vers' => '1.06', 'cpanid' => 'GAAS', 'dist_file' => 'Data-Dump-1.06.tar.gz' }, 'CGI' => { 'modules' => { 'CGI::Fast' => 1, 'CGI::Cookie' => 1, 'CGI::Util' => 1, 'CGI::Pretty' => 1, 'CGI::Push' => 1, 'CGI' => 1, 'CGI::Carp' => 1 }, 'dist_vers' => '3.25', 'cpanid' => 'LDS', 'dist_file' => 'CGI.pm-3.25.tar.gz' } }; $mods = { 'Apache::MP3::L10N::ms' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Net::LDAP::LDIF' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.16' }, 'URI::QueryParam' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Apache::GzipChain' => { 'dist_name' => 'Apache-GzipChain', 'mod_vers' => '1.14' }, 'Lingua::Shakespeare' => { 'dist_name' => 'Lingua-Shakespeare', 'mod_vers' => '1.00' }, 'Tie::MAB2::Dualdb::Recno' => { 'dist_name' => 'MAB2', 'mod_vers' => '1.006' }, 'Bio::Das::Request' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'CPAN::Test::Dummy::Perl5::Build' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Build', 'mod_vers' => '1.03' }, 'Ace::Graphics::Glyph::crossbox' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'LWP::Sink::base64' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'URI::Split' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'DB_File::SV18x' => { 'dist_name' => 'DB_File-SV18x-kit', 'mod_vers' => '0.06' }, 'Apache::HeavyCGI::SquidRemoteAddr' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => '1.005' }, 'Apache::MP3::L10N::ru' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Ace::Graphics::Glyph::triangle' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Net::LDAP::Control::Paged' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.02' }, 'URI::_query' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Apache::MP3::L10N::RightToLeft' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020610' }, 'URI::file::QNX' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'IO::Poll' => { 'dist_name' => 'IO', 'mod_vers' => '0.07' }, 'File::CounterFile' => { 'dist_name' => 'File-CounterFile', 'mod_vers' => '1.04' }, 'Ace::Sequence::Homol' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Lisp::Localize' => { 'dist_name' => 'perl-lisp', 'mod_vers' => undef }, 'Net::FTP::A' => { 'dist_name' => 'libnet', 'mod_vers' => '1.16' }, 'Apache::MP3::Sorted' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '2.02' }, 'Convert::BER' => { 'dist_name' => 'Convert-BER', 'mod_vers' => '1.31' }, 'Apache::Stage' => { 'dist_name' => 'Apache-Stage', 'mod_vers' => '1.20' }, 'Lingua::Shakespeare::Character' => { 'dist_name' => 'Lingua-Shakespeare', 'mod_vers' => undef }, 'No::Sort' => { 'dist_name' => 'Norge', 'mod_vers' => '1.03' }, 'Apache::HeavyCGI::ExePlan' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => '1.010' }, 'Font::Metrics::TimesBold' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'IO::Pipe' => { 'dist_name' => 'IO', 'mod_vers' => '1.13' }, 'Date::Language::Afar' => { 'dist_name' => 'TimeDate', 'mod_vers' => '0.99' }, 'CGI::Util' => { 'dist_name' => 'CGI', 'mod_vers' => '1.5' }, 'LWP::Sink::Tee' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'HTML::PullParser' => { 'dist_name' => 'HTML-Parser', 'mod_vers' => '2.09' }, 'Ace::Freesubs' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.00' }, 'URI::rtsp' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'URI::urn::oid' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'LWP::Socket' => { 'dist_name' => 'LWP-attic', 'mod_vers' => '1.24' }, 'List::Util' => { 'dist_name' => 'Scalar-List-Utils', 'mod_vers' => '1.18' }, 'URI::https' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Tie::RDBM' => { 'dist_name' => 'Tie-DBI', 'mod_vers' => '0.70' }, 'HTTPD::UserAdmin' => { 'dist_name' => 'HTTPD-User-Manage', 'mod_vers' => '1.51' }, 'Ace::Graphics::Glyph::transcript' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Net::LDAP::Constant' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.04' }, 'URI::mms' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Net::Netrc' => { 'dist_name' => 'libnet', 'mod_vers' => '2.12' }, 'URI::ssh' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Authen::SASL::Perl::EXTERNAL' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '1.03' }, 'IO::Interface::Simple' => { 'dist_name' => 'IO-Interface', 'mod_vers' => undef }, 'Boulder::LocusLink' => { 'dist_name' => 'Boulder', 'mod_vers' => '1' }, 'URI::file::Win32' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Apache::MP3::L10N::nb' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Tkx::LabEntry' => { 'dist_name' => 'Tkx', 'mod_vers' => undef }, 'Convert::ASN1' => { 'dist_name' => 'Convert-ASN1', 'mod_vers' => '0.20' }, 'Apache::MP3::L10N::sk' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Lingua::Shakespeare::Play' => { 'dist_name' => 'Lingua-Shakespeare', 'mod_vers' => undef }, 'LWP::Sink' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'LWP::Protocol::GHTTP' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Ace::Iterator' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.51' }, 'Date::Language::Brazilian' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'Net::LDAP::Control::Sort' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.02' }, 'Ace::Sequence::Multi' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'HTTPD::GroupAdmin::Text' => { 'dist_name' => 'HTTPD-User-Manage', 'mod_vers' => '1.2' }, 'Authen::SASL' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '2.10' }, 'LWP::UA::Cookies' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'GD::Simple' => { 'dist_name' => 'GD', 'mod_vers' => undef }, 'URI::file::Base' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'GD' => { 'dist_name' => 'GD', 'mod_vers' => '2.35' }, 'Boulder::Blast::NCBI' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.02' }, 'Net::FTP::I' => { 'dist_name' => 'libnet', 'mod_vers' => '1.12' }, 'LWP::Protocol::mailto' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Errno' => { 'dist_name' => 'Errno', 'mod_vers' => '1.09' }, 'Bio::Das::Stylesheet' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '1.00' }, 'HTTP::Message' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.57' }, 'Apache::UploadSvr' => { 'dist_name' => 'Apache-UploadSvr', 'mod_vers' => '1.024' }, 'HTTP::Headers::Auth' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.04' }, 'Ace::Sequence' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.51' }, 'PerlBench::Results' => { 'dist_name' => 'perlbench', 'mod_vers' => undef }, 'Lisp::Printer' => { 'dist_name' => 'perl-lisp', 'mod_vers' => '1.07' }, 'Date::Language::TigrinyaEritrean' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.00' }, 'Ace::Graphics::Track' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Ace::Object' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.66' }, 'URI::nntp' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Regexp' => { 'dist_name' => 'Regexp', 'mod_vers' => '0.004' }, 'LWP::RobotUA' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.27' }, 'Bundle::Net::LDAP' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.02' }, 'Ace::Local' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.05' }, 'LWP::Conn' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Boulder::Medline' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.02' }, 'LWP::Sink::IO' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Lisp::Cons' => { 'dist_name' => 'perl-lisp', 'mod_vers' => undef }, 'Authen::SASL::Perl::ANONYMOUS' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '1.03' }, 'Net::NNTP' => { 'dist_name' => 'libnet', 'mod_vers' => '2.23' }, 'Boulder::Swissprot' => { 'dist_name' => 'Boulder', 'mod_vers' => '1' }, 'IO' => { 'dist_name' => 'IO', 'mod_vers' => '1.23' }, 'Unicode::CharName' => { 'dist_name' => 'Unicode-String', 'mod_vers' => '1.07' }, 'LWP::StdSched' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'LWP::Version' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => '0.24' }, 'Font::Metrics::TimesRoman' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'Digest::base' => { 'dist_name' => 'Digest', 'mod_vers' => '1.00' }, 'Apache::HeavyCGI::Date' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => '1.003' }, 'LWP::Sink::Buffer' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Font::Metrics::Courier' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'Ace::Sequence::Feature' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'UDDI::SOAP' => { 'dist_name' => 'UDDI', 'mod_vers' => undef }, 'CPAN::FirstTime' => { 'dist_name' => 'CPAN', 'mod_vers' => '5.400879' }, 'MAB2::Record::titel' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.01' }, 'Font::Metrics::HelveticaOblique' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'Apache::MP3::L10N::pl' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'URI::urn' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Stone::GB_Sequence' => { 'dist_name' => 'Boulder', 'mod_vers' => undef }, 'PostScript::EPSF' => { 'dist_name' => 'PostScript-EPSF', 'mod_vers' => '0.01' }, 'URI::sip' => { 'dist_name' => 'URI', 'mod_vers' => '0.10' }, 'Ace::SocketServer' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.01' }, 'Font::Metrics::HelveticaBoldOblique' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'URI::telnet' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Stone' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.30' }, 'Net::LDAP::ASN' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.03' }, 'LWP::Sink::qp' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'HTTP::Headers::ETag' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.04' }, 'Bio::Das::FeatureIterator' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '0.01' }, 'IPC::Semaphore' => { 'dist_name' => 'IPC-SysV', 'mod_vers' => '1.00' }, 'URI::_ldap' => { 'dist_name' => 'URI', 'mod_vers' => '1.10' }, 'Python::Object' => { 'dist_name' => 'pyperl', 'mod_vers' => '1.00' }, 'IPC::SysV' => { 'dist_name' => 'IPC-SysV', 'mod_vers' => '1.03' }, 'Apache::MP3::L10N::it' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'WWW::RobotRules::AnyDBM_File' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.11' }, 'Apache::HeavyCGI::UnmaskQuery' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => '1.011' }, 'URI::pop' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'IO::Socket::INET' => { 'dist_name' => 'IO', 'mod_vers' => '1.31' }, 'Date::Language::Amharic' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.00' }, 'Ace::Sequence::Gene' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Ace::Object::Wormbase' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Data::Dump' => { 'dist_name' => 'Data-Dump', 'mod_vers' => '1.06' }, 'Net::LDAP::Util' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.10' }, 'HTTP::Daemon' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.36' }, 'Net::LDAP::Entry' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.22' }, 'URI::_login' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'SHA' => { 'dist_name' => 'SHA', 'mod_vers' => '2.01' }, 'Ace::Model' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.51' }, 'Boulder::Stream' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.07' }, 'Authen::SASL::CRAM_MD5' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '0.99' }, 'Date::Language::French' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.04' }, 'Bio::Das::Request::Feature2Segments' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'URI::Escape' => { 'dist_name' => 'URI', 'mod_vers' => '3.28' }, 'LWP::Sink::_Pipe' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'UDDI' => { 'dist_name' => 'UDDI', 'mod_vers' => '0.03' }, 'Convert::BER::BER' => { 'dist_name' => 'Convert-BER', 'mod_vers' => '1.31' }, 'No::PersonNr' => { 'dist_name' => 'Norge', 'mod_vers' => '1.17' }, 'Net::HTTP::NB' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '0.03' }, 'Devel::Cycle' => { 'dist_name' => 'Devel-Cycle', 'mod_vers' => '1.07' }, 'Apache::MP3::L10N::x_marklar' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Bio::Das::AGPServer::Parser' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'LWP::Protocol::file' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'GFF::Filehandle' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Lisp::Subr::All' => { 'dist_name' => 'perl-lisp', 'mod_vers' => undef }, 'Boulder::Blast::WU' => { 'dist_name' => 'Boulder', 'mod_vers' => '1' }, 'URI::snews' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Net::LDAP' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.33' }, 'URI::news' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'HTTPD::RealmManager' => { 'dist_name' => 'HTTPD-User-Manage', 'mod_vers' => '1.33' }, 'Tie::MAB2::RecnoViaId' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.30' }, 'Net::LDAP::Control::ManageDsaIT' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.01' }, 'Font::Metrics::Helvetica' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'URI::file::Mac' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Net::LDAPI' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.02' }, 'File::Listing' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.15' }, 'URI::rtspu' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Digest::Adler32' => { 'dist_name' => 'Digest-Adler32', 'mod_vers' => '0.03' }, 'CGI::Carp' => { 'dist_name' => 'CGI', 'mod_vers' => '1.29' }, 'LWP::ConnCache' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '0.01' }, 'Ace::Sequence::FeatureList' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'CPAN::Debug' => { 'dist_name' => 'CPAN', 'mod_vers' => '5.400844' }, 'Net::LDAP::Extension::SetPassword' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.02' }, 'Bio::Das::Segment' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '0.9' }, 'LWP::Protocol' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.43' }, 'Boulder::Blast' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.01' }, 'Net::LDAP::DSML' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.12' }, 'Apache::MP3::L10N::ko' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Date::Language::Greek' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.00' }, 'Scalar::Util' => { 'dist_name' => 'Scalar-List-Utils', 'mod_vers' => '1.18' }, 'Apache::MP3::L10N::is' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Apache::HeavyCGI::IfModified' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => '1.001' }, 'Font::AFM' => { 'dist_name' => 'Font-AFM', 'mod_vers' => '1.19' }, 'Date::Language::Tigrinya' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.00' }, 'Bio::Das::Request::Dnas' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Net::LDAP::Control::EntryChange' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.01' }, 'Apache::MP3::L10N::nb_no' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'LWP::DebugFile' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Digest::SHA1' => { 'dist_name' => 'Digest-SHA1', 'mod_vers' => '2.11' }, 'LWP::Server' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Date::Language::Czech' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'LWP::Protocol::ftp' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Date::Language' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.10' }, 'Apache::HeavyCGI::Debug' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => undef }, 'CPAN::Version' => { 'dist_name' => 'CPAN', 'mod_vers' => '5.400844' }, 'HTTP::Headers' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.64' }, 'MAB2::Record::Base' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.03' }, 'LWP::Protocol::ldap' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '1.10' }, 'Devel::Symdump::Export' => { 'dist_name' => 'Devel-Symdump', 'mod_vers' => undef }, 'IO::File' => { 'dist_name' => 'IO', 'mod_vers' => '1.14' }, 'URI::rlogin' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'MAB2::Record::lokal' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.01' }, 'LWP::Conn::FILE' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Bundle::CpanTestDummies' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Make', 'mod_vers' => '1.600967' }, 'Apache::MP3::L10N::sl' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'LWP::EventLoop' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => '0.11' }, 'HTTP::Request' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.40' }, 'MIME::Base64::Perl' => { 'dist_name' => 'MIME-Base64-Perl', 'mod_vers' => '1.00' }, 'Bio::Das' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '1.03' }, 'Net::LDAP::Control::ProxyAuth' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '1.05' }, 'URI::_segment' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Bio::Das::HTTP::Fetch' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '1.11' }, 'HTML::TokeParser' => { 'dist_name' => 'HTML-Parser', 'mod_vers' => '2.37' }, 'Digest::HMAC_MD5' => { 'dist_name' => 'Digest-HMAC', 'mod_vers' => '1.01' }, 'Lisp::List' => { 'dist_name' => 'perl-lisp', 'mod_vers' => undef }, 'HTTPD::UserAdmin::SQL' => { 'dist_name' => 'HTTPD-User-Manage', 'mod_vers' => '1.2' }, 'Apache::MP3::L10N::es' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Ace::Graphics::Fk' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Tie::MAB2::Dualdb::Id' => { 'dist_name' => 'MAB2', 'mod_vers' => '1.005' }, 'Authen::SASL::Perl::PLAIN' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '1.04' }, 'WWW::Chat' => { 'dist_name' => 'webchat', 'mod_vers' => undef }, 'Apache::MP3::L10N::no_no' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'URI::_userpass' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Ace::Browser::AceSubs' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.21' }, 'Net::LDAP::Filter' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.14' }, 'URI::file' => { 'dist_name' => 'URI', 'mod_vers' => '4.19' }, 'LWP::Protocol::nogo' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Date::Language::Norwegian' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'Net::LDAP::Control::VLV' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.03' }, 'Bio::Das::Util' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '0.01' }, 'HTTPD::Realm' => { 'dist_name' => 'HTTPD-User-Manage', 'mod_vers' => '1.52' }, 'URI::ldaps' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'IO::Socket' => { 'dist_name' => 'IO', 'mod_vers' => '1.30' }, 'HTML::Parser' => { 'dist_name' => 'HTML-Parser', 'mod_vers' => '3.55' }, 'Bio::Das::AGPServer::SQLStorage' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'LWP::Authen::basic' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'HTML::Filter' => { 'dist_name' => 'HTML-Parser', 'mod_vers' => '2.11' }, 'Bio::Das::AGPServer::Daemon' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Authen::SASL::Perl' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '1.05' }, 'Net::LDAP::Search' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.10' }, 'Digest::MD5' => { 'dist_name' => 'Digest-MD5', 'mod_vers' => '2.36' }, 'CGI::Push' => { 'dist_name' => 'CGI', 'mod_vers' => '1.04' }, 'Apache::MP3::L10N::fr' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Net::Domain' => { 'dist_name' => 'libnet', 'mod_vers' => '2.19' }, 'Devel::Symdump' => { 'dist_name' => 'Devel-Symdump', 'mod_vers' => '2.0604' }, 'Ace::Graphics::Glyph::segments' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Bio::Das::AGPServer::Config' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '1.0' }, 'Bio::Das::Request::Features' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Convert::UU' => { 'dist_name' => 'Convert-UU', 'mod_vers' => '0.52' }, 'LWP::Conn::HTTP' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Tkx::MegaConfig' => { 'dist_name' => 'Tkx', 'mod_vers' => undef }, 'MIME::QuotedPrint::Perl' => { 'dist_name' => 'MIME-Base64-Perl', 'mod_vers' => '1.00' }, 'Authen::SASL::EXTERNAL' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '0.99' }, 'LWP::Protocol::http10' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'HTTP::Cookies::Microsoft' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.07' }, 'Apache::HeavyCGI::Exception' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => undef }, 'CPAN::HandleConfig' => { 'dist_name' => 'CPAN', 'mod_vers' => '5.400847' }, 'Bio::Das::DSN' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Net::LDAPS' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.05' }, 'Ace::Graphics::Glyph::group' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Date::Language::TigrinyaEthiopian' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.00' }, 'MAB2::Record::pnd' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.01' }, 'Apache::MP3::L10N::nl' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'HTML::LinkExtor' => { 'dist_name' => 'HTML-Parser', 'mod_vers' => '1.33' }, 'Bio::Das::Request::Stylesheet' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Gnus::Newsrc' => { 'dist_name' => 'perl-lisp', 'mod_vers' => '1.04' }, 'Bio::Das::Feature' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '0.90' }, 'Boulder::Genbank' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.1' }, 'LWP::MediaTypes' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.32' }, 'LWP::Protocol::data' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Ace::Graphics::Glyph::box' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Bio::SCF' => { 'dist_name' => 'Bio-SCF', 'mod_vers' => '1.01' }, 'Encode::MAB2table' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.06' }, 'Date::Language::Swedish' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'PerlBench::Stats' => { 'dist_name' => 'perlbench', 'mod_vers' => undef }, 'LWP::Simple' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.41' }, 'URI::file::Unix' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Ace::Graphics::Glyph::toomany' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Digest::file' => { 'dist_name' => 'Digest', 'mod_vers' => '1.00' }, 'LWP::UA::Proxy' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Net::TFTP' => { 'dist_name' => 'Net-TFTP', 'mod_vers' => '0.16' }, 'Text::Shellwords' => { 'dist_name' => 'Text-Shellwords', 'mod_vers' => '1.08' }, 'LWP::MemberMixin' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'URI::rsync' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'LWP::Hooks' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'LWP::Request' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'LWP::UserAgent' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '2.033' }, 'URI::URL' => { 'dist_name' => 'URI', 'mod_vers' => '5.03' }, 'Net::LDAP::Bind' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '1.02' }, 'Ace::RPC' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.00' }, 'Date::Language::Finnish' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'Ace::Browser::GeneSubs' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Perl::Repository::APC' => { 'dist_name' => 'Perl-Repository-APC', 'mod_vers' => '1.221' }, 'CPAN::Test::Dummy::Perl5::Make::CircDepeOne' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Make-CircDepeOne', 'mod_vers' => '1.00' }, 'IO::Socket::UNIX' => { 'dist_name' => 'IO', 'mod_vers' => '1.23' }, 'Ace::Graphics::Glyph::anchored_arrow' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Date::Language::English' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'Lisp::Reader' => { 'dist_name' => 'perl-lisp', 'mod_vers' => '1.10' }, 'Apache::MP3::L10N::hr' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'IO::Interface' => { 'dist_name' => 'IO-Interface', 'mod_vers' => '1.02' }, 'MIME::QuotedPrint' => { 'dist_name' => 'MIME-Base64', 'mod_vers' => '3.07' }, 'Date::Parse' => { 'dist_name' => 'TimeDate', 'mod_vers' => '2.27' }, 'HTTPD::UserAdmin::Text' => { 'dist_name' => 'HTTPD-User-Manage', 'mod_vers' => '1.2' }, 'IO::Sockatmark' => { 'dist_name' => 'IO-Sockatmark', 'mod_vers' => '1.00' }, 'Bio::Das::Request::Entry_points' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'WWW::RobotRules' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.33' }, 'IO::Dir' => { 'dist_name' => 'IO', 'mod_vers' => '1.06' }, 'Tie::MAB2::Recno' => { 'dist_name' => 'MAB2', 'mod_vers' => '1.006' }, 'CGI::Cookie' => { 'dist_name' => 'CGI', 'mod_vers' => '1.27' }, 'Ace::Graphics::Glyph::span' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Authen::SASL::Perl::CRAM_MD5' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '1.03' }, 'Date::Language::Austrian' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'IPC::Msg' => { 'dist_name' => 'IPC-SysV', 'mod_vers' => '1.00' }, 'Apache::Session::Counted' => { 'dist_name' => 'Apache-Session-Counted', 'mod_vers' => '1.118' }, 'LWP::Authen::Digest' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Bundle::CPAN' => { 'dist_name' => 'Bundle-CPAN', 'mod_vers' => '1.854' }, 'Lisp::String' => { 'dist_name' => 'perl-lisp', 'mod_vers' => undef }, 'Perl::Repository::APC2SVN' => { 'dist_name' => 'Perl-Repository-APC', 'mod_vers' => '1.220' }, 'CPAN' => { 'dist_name' => 'CPAN', 'mod_vers' => '1.8802' }, 'Font::Metrics::CourierBoldOblique' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'LWP::Protocol::cpan' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Font::Metrics::CourierOblique' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'Apache::MP3::L10N::no' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'Ace::Graphics::GlyphFactory' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'CPAN::Checksums' => { 'dist_name' => 'CPAN-Checksums', 'mod_vers' => '1.050' }, 'CPAN::DistnameInfo' => { 'dist_name' => 'CPAN-DistnameInfo', 'mod_vers' => '0.06' }, 'Date::Language::Danish' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'HTTP::Status' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.28' }, 'Time::Zone' => { 'dist_name' => 'TimeDate', 'mod_vers' => '2.22' }, 'Font::Metrics::TimesItalic' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'Net::LDAP::Control::SortResult' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.01' }, 'Apache::MP3::L10N::uk' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Ace::Graphics::Glyph::ex' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Apache::MP3::L10N::sr' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Net::FTP' => { 'dist_name' => 'libnet', 'mod_vers' => '2.75' }, 'URI::ldap' => { 'dist_name' => 'URI', 'mod_vers' => '1.11' }, 'Net::POP3' => { 'dist_name' => 'libnet', 'mod_vers' => '2.28' }, 'IO::Socket::Multicast' => { 'dist_name' => 'IO-Socket-Multicast', 'mod_vers' => '1.05' }, 'Apache::MP3::L10N::tr' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'LWP::SecureSocket' => { 'dist_name' => 'LWP-attic', 'mod_vers' => '1.03' }, 'Ace::Browser::SiteDefs' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Data::DumpXML' => { 'dist_name' => 'Data-DumpXML', 'mod_vers' => '1.06' }, 'URI::file::OS2' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Apache::MP3::L10N::ca' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'URI::WithBase' => { 'dist_name' => 'URI', 'mod_vers' => '2.19' }, 'LWP::Authen' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Net::LDAP::Message' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '1.08' }, 'Lisp::Interpreter' => { 'dist_name' => 'perl-lisp', 'mod_vers' => '1.08' }, 'Data::DumpXML::Parser' => { 'dist_name' => 'Data-DumpXML', 'mod_vers' => '1.01' }, 'Net::LDAP::Control::VLVResponse' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.03' }, 'Net::HTTP' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.00' }, 'URI' => { 'dist_name' => 'URI', 'mod_vers' => '1.35' }, 'Apache::MP3::L10N::fi' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'CPAN::Test::Dummy::Perl5::Make' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Make', 'mod_vers' => '1.05' }, 'CPAN::Test::Dummy::Perl5::Build::Fails' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Build-Fails', 'mod_vers' => '1.03' }, 'CGI::Fast' => { 'dist_name' => 'CGI', 'mod_vers' => '1.07' }, 'Font::Metrics::HelveticaBold' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'Ace::Graphics::Glyph::dot' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'CGI' => { 'dist_name' => 'CGI', 'mod_vers' => '3.25' }, 'Bio::Das::AGPServer::SQLStorage::MySQL::DB' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Apache::MP3' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '3.06' }, 'LWP::MainLoop' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'URI::sips' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Authen::SASL::Perl::LOGIN' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '1.03' }, 'Module::Install::InstallDirs' => { 'dist_name' => 'Module-Install-InstallDirs', 'mod_vers' => '0.01' }, 'MD5' => { 'dist_name' => 'MD5', 'mod_vers' => '2.03' }, 'Convert::ASN1::parser' => { 'dist_name' => 'Convert-ASN1', 'mod_vers' => undef }, 'Crypt::CBC' => { 'dist_name' => 'Crypt-CBC', 'mod_vers' => '2.22' }, 'Net::FTP::E' => { 'dist_name' => 'libnet', 'mod_vers' => '0.01' }, 'IO::Select' => { 'dist_name' => 'IO', 'mod_vers' => '1.17' }, 'Date::Language::Dutch' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.02' }, 'URI::ftp' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Bio::Das::TypeHandler' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Net::PH' => { 'dist_name' => 'Net-PH', 'mod_vers' => '2.21' }, 'No::Dato' => { 'dist_name' => 'Norge', 'mod_vers' => '1.10' }, 'Ace::Graphics::Glyph::line' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Apache::UploadSvr::Dictionary' => { 'dist_name' => 'Apache-UploadSvr', 'mod_vers' => '1.002' }, 'LWP::Protocol::https' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Apache::UploadSvr::Directory' => { 'dist_name' => 'Apache-UploadSvr', 'mod_vers' => '1.004' }, 'Ace::Graphics::Glyph' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Net::LDAP::Extra' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.01' }, 'Ace::Graphics::Panel' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'HTTP::Date' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.47' }, 'Net::Config' => { 'dist_name' => 'libnet', 'mod_vers' => '1.10' }, 'Net::LDAP::Extension::WhoAmI' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.01' }, 'CPAN::Test::Dummy::Perl5::Make::CircDepeTwo' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Make-CircDepeTwo', 'mod_vers' => '1.00' }, 'Apache::MP3::L10N::de' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Date::Language::German' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.02' }, 'Bio::Das::AGPServer::SQLStorage::CSV::DB' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Net::HTTP::Methods' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.02' }, 'Ace' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.89' }, 'LWP::Dump' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Apache::MP3::L10N::nl_be' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'MyPodHtml' => { 'dist_name' => 'perlbench', 'mod_vers' => '1.0503' }, 'Unicode::String' => { 'dist_name' => 'Unicode-String', 'mod_vers' => '2.09' }, 'Ace::Sequence::Transcript' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Ace::Graphics::Glyph::primers' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'LWP::Sink::rot13' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Apache::MP3::L10N::nn' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'Net::FTP::dataconn' => { 'dist_name' => 'libnet', 'mod_vers' => '0.11' }, 'Tie::DBI' => { 'dist_name' => 'Tie-DBI', 'mod_vers' => '1.02' }, 'Apache::MP3::L10N::ga' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Font::Metrics::TimesBoldItalic' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'LWP::UA' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => '1.30' }, 'CPAN::Test::Dummy::Perl5::Make::CircDepeThree' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Make-CircDepeThree', 'mod_vers' => '1.00' }, 'Ace::Graphics::Glyph::graded_segments' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'IO::Handle' => { 'dist_name' => 'IO', 'mod_vers' => '1.27' }, 'LWP::Redirect' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Font::Metrics::CourierBold' => { 'dist_name' => 'Font-AFM', 'mod_vers' => undef }, 'Date::Format' => { 'dist_name' => 'TimeDate', 'mod_vers' => '2.22' }, 'URI::Heuristic' => { 'dist_name' => 'URI', 'mod_vers' => '4.17' }, 'HTML::Entities' => { 'dist_name' => 'HTML-Parser', 'mod_vers' => '1.35' }, 'URI::Attr' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => '1.07' }, 'Net::LDAP::Schema' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.9903' }, 'URI::http' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'LWP::Conn::_Cmd' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Apache::MP3::L10N' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020601' }, 'Lisp::Special' => { 'dist_name' => 'perl-lisp', 'mod_vers' => undef }, 'LWP::Protocol::https10' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Lisp::Subr::Core' => { 'dist_name' => 'perl-lisp', 'mod_vers' => '1.08' }, 'Digest::HMAC' => { 'dist_name' => 'Digest-HMAC', 'mod_vers' => '1.01' }, 'IO::Seekable' => { 'dist_name' => 'IO', 'mod_vers' => '1.10' }, 'CPAN::Test::Dummy::Perl5::BuildOrMake' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-BuildOrMake', 'mod_vers' => '1.02' }, 'B::FindAmpersand' => { 'dist_name' => 'Devel-SawAmpersand', 'mod_vers' => '0.04' }, 'Bundle::MP3' => { 'dist_name' => 'Bundle-MP3', 'mod_vers' => '1.00' }, 'URI::_generic' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Lisp::Symbol' => { 'dist_name' => 'perl-lisp', 'mod_vers' => '1.06' }, 'LWP::Sink::Monitor' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'HTML::HeadParser' => { 'dist_name' => 'HTML-Parser', 'mod_vers' => '2.22' }, 'URI::_server' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'HTTP::Cookies' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.39' }, 'HTTP::Request::Common' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.26' }, 'Digest::HMAC_SHA1' => { 'dist_name' => 'Digest-HMAC', 'mod_vers' => '1.01' }, 'Digest::MD2' => { 'dist_name' => 'Digest-MD2', 'mod_vers' => '2.03' }, 'Bio::Das::Map' => { 'dist_name' => 'Bio-Das', 'mod_vers' => '1.01' }, 'HTTP::Response' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.53' }, 'LWP::Protocol::loopback' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Net::LDAP::Extension' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '1.01' }, 'Bio::Das::Request::Sequences' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Bio::SCF::Arrays' => { 'dist_name' => 'Bio-SCF', 'mod_vers' => undef }, 'Apache::MP3::L10N::he' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Apache::MP3::Playlist' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '1.05' }, 'Net::Cmd' => { 'dist_name' => 'libnet', 'mod_vers' => '2.26' }, 'Net::LDAP::Control::PersistentSearch' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.01' }, 'Digest' => { 'dist_name' => 'Digest', 'mod_vers' => '1.15' }, 'Stone::Cursor' => { 'dist_name' => 'Boulder', 'mod_vers' => undef }, 'Date::Language::Gedeo' => { 'dist_name' => 'TimeDate', 'mod_vers' => '0.99' }, 'No::KontoNr' => { 'dist_name' => 'Norge', 'mod_vers' => '1.09' }, 'Bundle::CPANxxl' => { 'dist_name' => 'Bundle-CPAN', 'mod_vers' => '0.1' }, 'IO::String' => { 'dist_name' => 'IO-String', 'mod_vers' => '1.08' }, 'Unicode::Map8' => { 'dist_name' => 'Unicode-Map8', 'mod_vers' => '0.12' }, 'Lisp::Vector' => { 'dist_name' => 'perl-lisp', 'mod_vers' => undef }, 'LWP::Sink::deflate' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'HTTP::Headers::Util' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.13' }, 'Apache::PassFile' => { 'dist_name' => 'Apache-GzipChain', 'mod_vers' => '0.05' }, 'HTTPD::GroupAdmin' => { 'dist_name' => 'HTTPD-User-Manage', 'mod_vers' => '1.5' }, 'Net::Time' => { 'dist_name' => 'libnet', 'mod_vers' => '2.10' }, 'Apache::HeavyCGI' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => '0.013302' }, 'Net::LDAP::RootDSE' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.01' }, 'Apache::MP3::L10N::ar' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'LWP::Debug' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'URI::ldapi' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Tie::MAB2::Id' => { 'dist_name' => 'MAB2', 'mod_vers' => '1.005' }, 'LWP::Conn::_Connect' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'CPAN::Test::Dummy::Perl5::Make::Failearly' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Make-Failearly', 'mod_vers' => '1.02' }, 'Ace::Browser::TreeSubs' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'Date::Language::Italian' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'Apache::MP3::L10N::sh' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'Bio::Das::Request::Dsn' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'LWP::Authen::digest' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'Authen::SASL::Perl::GSSAPI' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '0.02' }, 'CPAN::Admin' => { 'dist_name' => 'CPAN', 'mod_vers' => '5.400844' }, 'Devel::SawAmpersand' => { 'dist_name' => 'Devel-SawAmpersand', 'mod_vers' => '0.30' }, 'Net::LDAP::Control' => { 'dist_name' => 'perl-ldap', 'mod_vers' => '0.05' }, 'URI::urn::isbn' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Net::HTTPS' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.00' }, 'Tkx' => { 'dist_name' => 'Tkx', 'mod_vers' => '1.04' }, 'Apache::MP3::L10N::zh_tw' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Lisp::Subr::Perl' => { 'dist_name' => 'perl-lisp', 'mod_vers' => '1.04' }, 'PerlBench' => { 'dist_name' => 'perlbench', 'mod_vers' => '0.93' }, 'URI::data' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Array::RefElem' => { 'dist_name' => 'Array-RefElem', 'mod_vers' => '1.00' }, 'Encode::MAB2' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.06' }, 'LWP::Authen::Ntlm' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '0.05' }, 'Net::FTP::L' => { 'dist_name' => 'libnet', 'mod_vers' => '0.01' }, 'Apache::MP3::L10N::fa' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Apache::MP3::L10N::cs' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Ace::Browser::SearchSubs' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.30' }, 'Ace::Sequence::GappedAlignment' => { 'dist_name' => 'AcePerl', 'mod_vers' => '1.20' }, 'Perl::Repository::APC::BAP' => { 'dist_name' => 'Perl-Repository-APC', 'mod_vers' => '1.220' }, 'GD::Polyline' => { 'dist_name' => 'GD', 'mod_vers' => '0.2' }, 'Boulder::Store' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.20' }, 'Authen::SASL::Perl::DIGEST_MD5' => { 'dist_name' => 'Authen-SASL', 'mod_vers' => '1.05' }, 'Apache::MP3::L10N::zh_cn' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'CPAN::Tarzip' => { 'dist_name' => 'CPAN', 'mod_vers' => '5.400858' }, 'Apache::MP3::L10N::nn_no' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'Apache::HeavyCGI::Layout' => { 'dist_name' => 'Apache-HeavyCGI', 'mod_vers' => '1.002' }, 'Apache::MP3::L10N::nl_nl' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => undef }, 'MAB2::Record::gkd' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.01' }, 'URI::file::FAT' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Date::Language::Chinese_GB' => { 'dist_name' => 'TimeDate', 'mod_vers' => '1.01' }, 'Apache::MP3::L10N::ja' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020612' }, 'Net::SMTP' => { 'dist_name' => 'libnet', 'mod_vers' => '2.29' }, 'MIME::Base64' => { 'dist_name' => 'MIME-Base64', 'mod_vers' => '3.07' }, 'Apache::MP3::L10N::Aliases' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '1.01' }, 'URI::mailto' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'CGI::Pretty' => { 'dist_name' => 'CGI', 'mod_vers' => '1.08' }, 'Date::Language::Sidama' => { 'dist_name' => 'TimeDate', 'mod_vers' => '0.99' }, 'Convert::Recode' => { 'dist_name' => 'Convert-Recode', 'mod_vers' => '1.04' }, 'Apache::MP3::L10N::en' => { 'dist_name' => 'Apache-MP3', 'mod_vers' => '20020611' }, 'LWP::Protocol::nntp' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Tie::Dir' => { 'dist_name' => 'Tie-Dir', 'mod_vers' => '1.02' }, 'LWP::Sink::identity' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'HTML::Form' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.054' }, 'LWP::Protocol::gopher' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Ace::Graphics::Glyph::arrow' => { 'dist_name' => 'AcePerl', 'mod_vers' => undef }, 'CPAN::Nox' => { 'dist_name' => 'CPAN', 'mod_vers' => '5.400844' }, 'URI::tn3270' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'URI::gopher' => { 'dist_name' => 'URI', 'mod_vers' => undef }, 'Devel::FindAmpersand' => { 'dist_name' => 'Devel-SawAmpersand', 'mod_vers' => undef }, 'Boulder::String' => { 'dist_name' => 'Boulder', 'mod_vers' => '1.01' }, 'CPAN::Test::Dummy::Perl5::Build::DepeFails' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Build-DepeFails', 'mod_vers' => '1.02' }, 'LWP::Conn::FTP' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'HTTP::Cookies::Netscape' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.26' }, 'Bio::Das::Type' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'LWP::Authen::Basic' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Date::Language::Oromo' => { 'dist_name' => 'TimeDate', 'mod_vers' => '0.99' }, 'CPAN::Test::Dummy::Perl5::Make::Zip' => { 'dist_name' => 'CPAN-Test-Dummy-Perl5-Make-Zip', 'mod_vers' => '1.03' }, 'LWP' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '5.805' }, 'LWP::Sink::HTML' => { 'dist_name' => 'LWPng-alpha', 'mod_vers' => undef }, 'MAB2::Record::swd' => { 'dist_name' => 'MAB2', 'mod_vers' => '0.01' }, 'HTTP::Negotiate' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.16' }, 'Bio::Das::Request::Types' => { 'dist_name' => 'Bio-Das', 'mod_vers' => undef }, 'Apache::UploadSvr::User' => { 'dist_name' => 'Apache-UploadSvr', 'mod_vers' => '1.002' }, 'rlib' => { 'dist_name' => 'rlib', 'mod_vers' => '0.02' }, 'Tie::MAB2::Dualdb' => { 'dist_name' => 'MAB2', 'mod_vers' => undef }, 'LWP::Protocol::http' => { 'dist_name' => 'libwww-perl', 'mod_vers' => undef }, 'Include' => { 'dist_name' => 'Include', 'mod_vers' => '1.02' }, 'Bundle::libnet' => { 'dist_name' => 'Bundle-libnet', 'mod_vers' => '1.00' }, 'Bundle::LWP' => { 'dist_name' => 'libwww-perl', 'mod_vers' => '1.11' }, 'Date::Language::Somali' => { 'dist_name' => 'TimeDate', 'mod_vers' => '0.99' } }; $auths = { 'LDS' => { 'email' => 'lstein@cshl.edu', 'fullname' => 'Lincoln D. Stein' }, 'GAAS' => { 'email' => 'gisle@ActiveState.com', 'fullname' => 'Gisle Aas' }, 'ANDK' => { 'email' => 'andreas.koenig@anima.de', 'fullname' => 'Andreas J. Koenig' }, 'GBARR' => { 'email' => 'gbarr@pobox.com', 'fullname' => 'Graham Barr' } }; sub has_hash_data { my $data = shift; return unless (defined $data and ref($data) eq 'HASH'); return (scalar keys %$data > 0) ? 1 : 0; } sub vcmp { my ($v1, $v2) = @_; # for some reason, on darwin, with some versions, # a trailing 0 in the version numbers causes some # tests to fail. Strip these out for now. if ($v1 =~ /^[0-9,\.]+$/) { $v1 = $v1 + 0; } if ($v2 =~ /^[0-9,\.]+$/) { $v2 = $v2 + 0; } return TestSQL::Version->vcmp($v1, $v2); } # This is borrowed essentially verbatim from CPAN::Version # It's included here so as to not demand a CPAN.pm upgrade package TestSQL::Version; use strict; our $VERSION = 0.1; no warnings; # CPAN::Version::vcmp courtesy Jost Krieger sub vcmp { my ($self, $l, $r) = @_; return 0 if $l eq $r; # short circuit for quicker success for ($l, $r) { next unless tr/.// > 1; s/^v?/v/; 1 while s/\.0+(\d)/.$1/; } if ($l =~ /^v/ <=> $r =~ /^v/) { for ($l, $r) { next if /^v/; $_ = $self->float2vv($_); } } return ( ($l ne "undef") <=> ($r ne "undef") || ($] >= 5.006 && $l =~ /^v/ && $r =~ /^v/ && $self->vstring($l) cmp $self->vstring($r)) || $l <=> $r || $l cmp $r ); } sub vgt { my ($self, $l, $r) = @_; $self->vcmp($l, $r) > 0; } sub vlt { my ($self, $l, $r) = @_; 0 + ($self->vcmp($l, $r) < 0); } sub vstring { my ($self, $n) = @_; $n =~ s/^v// or die "CPAN::Search::Lite::Version::vstring() called with invalid arg [$n]"; { no warnings; pack "U*", split /\./, $n; } } # vv => visible vstring sub float2vv { my ($self, $n) = @_; my ($rev) = int($n); $rev ||= 0; my ($mantissa) = $n =~ /\.(\d{1,12})/; # limit to 12 digits to limit # architecture influence $mantissa ||= 0; $mantissa .= "0" while length($mantissa) % 3; my $ret = "v" . $rev; while ($mantissa) { $mantissa =~ s/(\d{1,3})// or die "Panic: length>0 but not a digit? mantissa[$mantissa]"; $ret .= "." . int($1); } # warn "n[$n]ret[$ret]"; $ret; } sub readable { my ($self, $n) = @_; $n =~ /^([\w\-\+\.]+)/; return $1 if defined $1 && length($1) > 0; # if the first user reaches version v43, he will be treated as "+". # We'll have to decide about a new rule here then, depending on what # will be the prevailing versioning behavior then. if ($] < 5.006) { # or whenever v-strings were introduced # we get them wrong anyway, whatever we do, because 5.005 will # have already interpreted 0.2.4 to be "0.24". So even if he # indexer sends us something like "v0.2.4" we compare wrongly. # And if they say v1.2, then the old perl takes it as "v12" warn("Suspicious version string seen [$n]\n"); return $n; } my $better = sprintf "v%vd", $n; return $better; } 1; 05meta_update.t100644000000000000 2136313664647331 17144 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 05meta_update.t 76 2019-01-24 19:50:04Z stro $ use strict; use warnings; use Test::More; use File::Spec; use Cwd; use File::Copy; use File::Path; use Config; use FindBin; use CPAN::DistnameInfo; use CPAN::SQLite::Util qw(download); use lib 't/lib'; use TestSQL qw($mods $auths $dists has_hash_data vcmp); $ENV{'CPAN_SQLITE_DOWNLOAD'} = $ENV{'CPAN_SQLITE_DOWNLOAD_URL'} = undef; my $cwd = cwd; my $path_sep = $Config{path_sep} || ':'; $ENV{PERL5LIB} = join $path_sep, (File::Spec->catdir($cwd, qw(t dot-cpan)), map { File::Spec->catdir($cwd, 'blib', $_) } qw(arch lib)), $ENV{PERL5LIB} || ''; # so that a real $HOME/.cpan isn't used $ENV{HOME} = File::Spec->catdir($cwd, qw(t dot-cpan)); # hack to get tests to pass on Darwin, as File::HomeDir # doesn't use HOME or PERL5LIB to specify where CPAN::MyConfig lives $ENV{CPAN_SQLITE_TESTING} = 1; unshift @INC, File::Spec->catdir($cwd, qw(t dot-cpan)); eval { require CPAN::MyConfig; require CPAN; require CPAN::HandleConfig; require CPAN::Version; }; my $min_cpan_v = '1.88_64'; my $actual_cpan_v = $CPAN::VERSION; # older CPAN::Version's seem to have problems with underscores $min_cpan_v =~ s/_//g; $actual_cpan_v =~ s/_//g if $actual_cpan_v; if ($@ or CPAN::Version->vcmp($actual_cpan_v, $min_cpan_v) < 0) { plan skip_all => qq{Need CPAN.pm version $min_cpan_v or higher}; } else { plan tests => 2768; } # verify that we loaded the right CPAN::Config is($CPAN::Config->{QAZWSX}, 'PLMOKN'); my $home = $CPAN::Config->{cpan_home}; my $db = File::Spec->catfile($home, 'cpandb.sql'); my $sources = $CPAN::Config->{keep_source_where}; is(-e $db, 1, "$db exists"); is(-s $db > 0, 1, "$db has non-zero size"); for my $mod_search (qw(net ^uri::.*da)) { for my $mod (CPAN::Shell->expand("Module", "/$mod_search/")) { my $mod_name = $mod->id; is(defined $mods->{$mod_name}, 1, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } } for my $mod_search (qw(CPAN MP)) { for my $bundle (CPAN::Shell->expand("Bundle", "/$mod_search/")) { my $mod_name = $bundle->id; is(defined $mods->{$mod_name}, 1, $mod_name); like($bundle->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($bundle->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } } for my $dist_search (qw(apache test.*perl)) { for my $dist (CPAN::Shell->expand("Distribution", "/$dist_search/")) { my $id = $dist->id; my $pathname = "authors/id/$id"; my $d = CPAN::DistnameInfo->new($pathname); my $dist_name = $d->dist; is(defined $dists->{$dist_name}, 1, $dist_name); my $cpanid = $dist->author->id; my $download = download($cpanid, $dists->{$dist_name}->{dist_file}); is($id, $download, $download); is($cpanid, $dists->{$dist_name}->{cpanid}, $dists->{$dist_name}->{cpanid}); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } } for my $auth_search (qw(G G\w+A)) { for my $auth (CPAN::Shell->expand("Author", "/$auth_search/")) { my $id = $auth->id; is(defined $auths->{$id}, 1, $id); foreach (qw(fullname email)) { next unless $auths->{$id}->{$_}; is($auth->$_, $auths->{$id}->{$_}, $auths->{$id}->{$_}); } } } { my $mod_name = q{Date::Language}; my $mod = CPAN::Shell->expand("Module", $mod_name); is($mod->id, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } { my $dist_file = q{TimeDate-1.16.tar.gz}; my $dist_name = q{TimeDate}; my $cpanid = q{GBARR}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } for my $mod_search (qw(Apache::)) { for my $mod (CPAN::Shell->expand("Module", "/$mod_search/")) { my $mod_name = $mod->id; is(defined $mods->{$mod_name}, 1, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } } { my $dist_file = q{Apache-GzipChain-1.14.tar.gz}; my $dist_name = q{Apache-GzipChain}; my $cpanid = q{ANDK}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } for my $dist_search (qw(CPAN-Test)) { for my $dist (CPAN::Shell->expand("Distribution", "/$dist_search/")) { my $id = $dist->id; my $pathname = "authors/id/$id"; my $d = CPAN::DistnameInfo->new($pathname); my $dist_name = $d->dist; is(defined $dists->{$dist_name}, 1, $dist_name); my $cpanid = $dist->author->id; my $download = download($cpanid, $dists->{$dist_name}->{dist_file}); is($id, $download, $download); is($cpanid, $dists->{$dist_name}->{cpanid}, $dists->{$dist_name}->{cpanid}); my %mods = map { $_ => 1 } $dist->containsmods; my $mods = $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } } { my $dist_file = q{CPAN-Test-Dummy-Perl5-Make-1.05.tar.gz}; my $dist_name = q{CPAN-Test-Dummy-Perl5-Make}; my $cpanid = q{ANDK}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } foreach my $cpanid (keys %$auths) { my $auth = CPAN::Shell->expand("Author", $cpanid); is($auth->id, $cpanid, "verify '$cpanid'"); foreach (qw(fullname email)) { next unless $auths->{$cpanid}->{$_}; is($auth->$_, $auths->{$cpanid}->{$_}); } } foreach my $mod_name (keys %$mods) { next if $mod_name =~ /^Bundle/; my $mod = CPAN::Shell->expand("Module", $mod_name); is($mod->id, $mod_name); like($mod->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($mod->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } foreach my $mod_name (keys %$mods) { next unless ($mod_name =~ /^Bundle::/); my $bundle = CPAN::Shell->expand("Bundle", $mod_name); is($bundle->id, $mod_name); like($bundle->cpan_file, qr/$mods->{$mod_name}->{dist_name}/, $mods->{$mod_name}->{dist_name}); next unless $mods->{$mod_name}->{mod_vers}; is(vcmp($bundle->cpan_version, $mods->{$mod_name}->{mod_vers}), 0, "version $mods->{$mod_name}->{mod_vers} for '$mod_name'"); } for my $dist_name (keys %$dists) { my $dist_file = $dists->{$dist_name}->{dist_file}; my $cpanid = $dists->{$dist_name}->{cpanid}; my $query = "$cpanid/$dist_file"; my $dist = CPAN::Shell->expand("Distribution", $query); my $dist_id = download($cpanid, $dists->{$dist_name}->{dist_file}); is($dist->id, $dist_id); is($dist->author->id, $cpanid); my %mods = map { $_ => 1 } $dist->containsmods; foreach my $mod (keys %{ $dists->{$dist_name}->{modules} }) { is($mods{$mod}, 1, $mod); } } my $no_such = 'ZZZ'; foreach my $type (qw(Author Distribution Module)) { my $query = ($type eq 'Distribution') ? "/$no_such/" : $no_such; my $item = CPAN::Shell->expand($type, $query); is($item, undef, "no such $type"); next if $type eq 'Distribution'; $item = CPAN::Shell->expand($type, "/$no_such/"); is($item, undef, "no such $type"); } rmtree($sources) if -d $sources; unlink($db) if -e $db; # Local Variables: # mode: cperl # cperl-indent-level: 2 # End: release-fixme.t100644000000000000 40513664647331 17167 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t#!perl BEGIN { unless ($ENV{RELEASE_TESTING}) { print qq{1..0 # SKIP these tests are for release candidate testing\n}; exit } } # This test is generated by Dist::Zilla::Plugin::Test::Fixme use strict; use warnings; use Test::Fixme; run_tests(); author-critic.t100644000000000000 40713664647331 17220 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } use strict; use warnings; use Test::Perl::Critic (-profile => "t/.perlcriticrc") x!! -e "t/.perlcriticrc"; all_critic_ok(); CPAN000755000000000000 013664647331 15161 5ustar00unknownunknown000000000000CPAN-SQLite-0.219/libSQLite.pm100644000000000000 2446513664647331 17053 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/lib/CPAN# $Id: SQLite.pm 84 2020-05-31 06:29:34Z stro $ package CPAN::SQLite; use strict; use warnings; our $VERSION = '0.219'; use English qw/-no_match_vars/; use File::HomeDir; require File::Spec; use Cwd; require CPAN::SQLite::META; # an array ref of distributions to ignore indexing my $ignore = [qw(SpreadSheet-WriteExcel-WebPivot)]; our $db_name = 'cpandb.sql'; use constant WIN32 => $^O eq 'MSWin32'; sub new { my $class = shift; my %args = @_; my ($CPAN, $update_indices); my $db_dir = $args{db_dir}; my $urllist = []; my $keep_source_where; # for testing under Darwin, must load CPAN::MyConfig contained # in PERL5LIB, as File::HomeDir doesn't use this if ($ENV{CPAN_SQLITE_TESTING}) { eval { require CPAN::MyConfig; }; } eval { require CPAN; CPAN::HandleConfig->load; }; if (not $@ and not defined $args{CPAN}) { $CPAN = $CPAN::Config->{cpan_home}; $db_dir = $CPAN; $keep_source_where = $CPAN::Config->{keep_source_where}; $urllist = $CPAN::Config->{urllist}; # Sometimes this directory doesn't exist (like on new installations) unless (-d $CPAN) { eval { File::Path::mkpath($CPAN); }; # copied from CPAN.pm } die qq{The '$CPAN' directory doesn't exist} unless -d $CPAN; $update_indices = 0; } else { $CPAN = $args{CPAN} || ''; die qq{Please specify the CPAN location} unless defined $CPAN; die qq{The '$CPAN' directory doesn't exist} unless (-d $CPAN); $update_indices = (-f File::Spec->catfile($CPAN, 'MIRRORING.FROM')) ? 0 : 1; } push @$urllist, q{http://www.cpan.org/}; $db_dir ||= cwd; my $self = { %args, CPAN => $CPAN, update_indices => $update_indices, db_name => $db_name, urllist => $urllist, keep_source_where => $keep_source_where, db_dir => $db_dir }; return bless $self, $class; } sub index { my ($self, %args) = @_; require CPAN::SQLite::Index; my %wanted = map { $_ => $self->{$_} } qw(CPAN ignore update_indices db_name db_dir keep_source_where setup reindex urllist); my $log_dir = $self->{CPAN} || $self->{db_dir}; die qq{Please create the directory '$log_dir' first} unless -d $log_dir; my $index = CPAN::SQLite::Index->new(%wanted, %args, log_dir => $log_dir); $index->index() or do { warn qq{Indexing failed!}; return; }; return 1; } sub query { my ($self, %args) = @_; require CPAN::SQLite::Search; my %wanted = map { $_ => $self->{$_} } qw(max_results CPAN db_name db_dir meta_obj); my $query = CPAN::SQLite::Search->new(%wanted, %args); %wanted = map { $_ => $self->{$_} } qw(mode query id name); $query->query(%wanted, %args) or do { warn qq{Query failed!}; return; }; my $results = $query->{results}; return unless defined $results; $self->{results} = $query->{results}; return 1; } 1; =head1 NAME CPAN::SQLite - maintain and search a minimal CPAN database =head1 VERSION version 0.219 =head1 SYNOPSIS my $obj = CPAN::SQLite->new(CPAN => '/path/to/CPAN'); $obj->index(setup => 1); $obj->query(mode => 'dist', name => 'CPAN'); my $results = $obj->{results}; =head1 DESCRIPTION This package is used for setting up, maintaining, and searching a CPAN database consisting of the information stored in the two main CPAN indices: F<$CPAN/modules/02packages.details.txt.gz> and F<$CPAN/authors/01mailrc.txt.gz>. It should be considered at an alpha stage of development. One begins by creating the object as my $obj = CPAN::SQLite->new(%args); which accepts the following arguments: =over 3 =item * C '/path/to/CPAN'> This specifies the path to where the index files are to be stored. This could be a local CPAN mirror, defined here by the presence of a F file beneath this directory, or a local directory in which to store these files from a remote CPAN mirror. In the latter case, the index files are fetched from a remote CPAN mirror, using the same list that C uses, if this is configured, and are updated if they are more than one day old. If the C option is not given, it will default to C of L, if this is configured, with the index files found under C. A fatal error results if such a directory isn't found. Updates to these index files are assumed here to be handled by C. =item * C '/path/to/db/dir'> This specifies the path to where the database file is found. If not given, it defaults to the C directory of C, if present, or to the directory in which the script was invoked. The name of the database file is C. =back There are two main methods available. =head2 C<$obj-Eindex(%args);> This is used to set up and maintain the database. The following arguments are accepted: =over 3 =item * setup =E 1 This specifies that the database is to be created and populated from the CPAN indices; any existing database will be overwritten. Not specifying this option will assume that an existing database is to be updated. =item * reindex =E 'dist_name' This specifies that the CPAN distribution C is to be reindexed. =back =head2 C<$obj-Equery(%args);> This is used for querying the database by distribution name, module name, or CPAN author name. There are two arguments needed to specify such queries. =over 3 =item * C some_value> This specifies what type of query to perform, with C being one of C, C, or C, for searching through, respectively, CPAN distribution names, module names, or author names and CPAN ids. =item * C query_term> This specifies the query term for the search, with C being one of C, to search for an exact match, or C, for searching for partial matches. Perl regular expressions are supported in the C for the C option. =back As well, an option of C some_number> will limit the number of results returned; if not specified, the limit doesn't apply. =head1 CPAN.pm support As of CPAN.pm version 1.88_65, there is experimental support within CPAN.pm for using CPAN::SQLite to obtain information on packages, modules, and authors. One goal of this is to reduce the memory footprint of the CPAN.pm shell, as this information is no longer all preloaded into memory. This can be enabled through perl -MCPAN -e shell cpan> o conf use_sqlite 1 Use cpan> o conf commit to save this setting for future sessions. Using CPAN::SQLite, what happens is that a request for information through CPAN.pm, such as cpan> a ANDK will cause a query to the SQLite database to be made. If successful, this will place the relevant data for this request into the data structure CPAN.pm uses to store and retrieve such information. Thus, at any given time, the only information CPAN.pm stores in memory is that for packages, modules, and authors for which previous queries have been made. There are certain requests, such as cpan> r to make a list of recommended packages for which upgrades on CPAN are available, which will result in loading information on all available packages into memory; if such a query is made, the subsequent memory footprint of CPAN.pm with and without CPAN::SQLite will be essentially the same. The database itself, called F, will be stored in the location specified by C<$CPAN::Config-E{cpan_home}>. When first started, this database will be created, and afterwards, it will be updated if the database is older than one day since the last update. A log file of the creation or update process, called F, will be created in the same directory as the database file. =head1 SEE ALSO L, for setting up and maintaining the database, and L for an interface to querying the database. Some details of the interaction with L is available from L. See also the L script for a command-line interface to the indexing and querying of the database. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc CPAN::SQLite You can also look for information at: =over 4 =item * AnnoCPAN: Annotated CPAN documentation L =item * CPAN::Forum: Discussion forum L =item * CPAN Ratings L =item * RT: CPAN's request tracker L =item * Search CPAN L =back =head1 BUGS At this time, CPAN::SQLite keeps information contained only in the latest version of a CPAN distribution. This means that modules that are provided only in older versions of a CPAN distribution will not be present in the database; for example, at this time, the latest version of the I distribution on CPAN is 5.805, but there are modules such as I contained in version 5.10 of libwww-perl that are not present in 5.805. This behaviour differs from that of L without CPAN::SQLite. This may change in the future. Please report bugs and feature requests via L. =head1 ENVIRONMENT VARIABLES Information messages from the indexing procedures are printed out to STDOUT if the environment variable CPAN_SQLITE_DEBUG is set. This is automatically set within L. If CPAN_SQLITE_NO_LOG_FILES is set, no log files will be created during the indexing procedures. Log files are deleted automatically in 30 days. To override this, set CPAN_SQLITE_LOG_FILES_CLEANUP. To stop automatic cleanup, set this variable to 0. If CPAN_SQLITE_DOWNLOAD variable are set, an already existing and up-to-date cpandb.sql file will be downloaded from http://cpansqlite.trouchelle.com/ where it's updated every hour. This greatly increases performance and decreases CPU and memory consumption during the indexing process. See L for more details, potential problems, and more configuration options. =head1 AUTHORS Randy Kobes (passed away on September 18, 2010) Serguei Trouchelle Estro@cpan.orgE =head1 COPYRIGHT Copyright 2006,2008 by Randy Kobes Er.kobes@uwinnipeg.caE. Copyright 2011-2014 by Serguei Trouchelle Estro@cpan.orgE. Use and redistribution are under the same terms as Perl itself. =cut TestShell.pm100644000000000000 62113664647331 17267 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t/lib# $Id: TestShell.pm 71 2019-01-15 01:46:34Z stro $ package TestShell; use strict; use warnings; use CPAN; # CPAN FrontEnd (default: CPAN::Shell) prints some information to STDOUT, which # can brake TAP output and mark some tests as out-of-sequence. To avoid this # problem, myprint and mywarn should be silenced. $CPAN::FrontEnd = 'TestShell'; sub myprint { return; } sub mywarn { return; } author-no-tabs.t100644000000000000 377413664647331 17340 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } use strict; use warnings; # this test was generated with Dist::Zilla::Plugin::Test::NoTabs 0.15 use Test::More 0.88; use Test::NoTabs; my @files = ( 'bin/cpandb', 'lib/CPAN/SQLite.pm', 'lib/CPAN/SQLite/DBI.pm', 'lib/CPAN/SQLite/DBI/Index.pm', 'lib/CPAN/SQLite/DBI/Search.pm', 'lib/CPAN/SQLite/Index.pm', 'lib/CPAN/SQLite/Info.pm', 'lib/CPAN/SQLite/META.pm', 'lib/CPAN/SQLite/Populate.pm', 'lib/CPAN/SQLite/Search.pm', 'lib/CPAN/SQLite/State.pm', 'lib/CPAN/SQLite/Util.pm', 't/00-all_prereqs.t', 't/00-compile.t', 't/00-compile/lib_CPAN_SQLite_DBI_Index_pm.t', 't/00-compile/lib_CPAN_SQLite_DBI_Search_pm.t', 't/00-compile/lib_CPAN_SQLite_DBI_pm.t', 't/00-compile/lib_CPAN_SQLite_Index_pm.t', 't/00-compile/lib_CPAN_SQLite_Info_pm.t', 't/00-compile/lib_CPAN_SQLite_META_pm.t', 't/00-compile/lib_CPAN_SQLite_Populate_pm.t', 't/00-compile/lib_CPAN_SQLite_Search_pm.t', 't/00-compile/lib_CPAN_SQLite_State_pm.t', 't/00-compile/lib_CPAN_SQLite_Util_pm.t', 't/00-compile/lib_CPAN_SQLite_pm.t', 't/00-report-prereqs.dd', 't/00-report-prereqs.t', 't/000-report-versions.t', 't/01basic.t', 't/02drop.t', 't/03info.t', 't/04search.t', 't/04search_everything.t', 't/05meta_new.t', 't/05meta_update.t', 't/06retrieve.t', 't/07download.t', 't/08circular_references.t', 't/author-critic.t', 't/author-eol.t', 't/author-minimum-version.t', 't/author-no-tabs.t', 't/author-pod-syntax.t', 't/lib/TestSQL.pm', 't/lib/TestShell.pm', 't/lib/TestShellDiag.pm', 't/release-changes_has_content.t', 't/release-distmeta.t', 't/release-fixme.t', 't/release-has-version.t', 't/release-kwalitee.t', 't/release-meta-json.t', 't/release-pause-permissions.t', 't/testrules.yml' ); notabs_ok($_) foreach @files; done_testing; 00-all_prereqs.t100644000000000000 533113664647331 17212 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t#!perl use strict; use warnings; # This doesn't use Test::More because I don't want to clutter %INC # with modules that aren't prerequisites. my $test = 0; my $tests_completed; sub ok ($$) { my ($ok, $name) = @_; printf "%sok %d - %s\n", ($ok ? '' : 'not '), ++$test, $name; return $ok; } # end ok END { ok(0, 'unknown failure') unless defined $tests_completed; print "1..$tests_completed\n"; } sub get_version { my ($package) = @_; local $@; my $version = eval { $package->VERSION }; defined $version ? $version : 'undef'; } # end get_version TEST: { ok(open(META, ') { last if /^\s*"prereqs" : \{\s*\z/; } # end while ok(defined $_, 'found prereqs') or last TEST; while () { last if /^\s*\},?\s*\z/; ok(/^\s*"(.+)" : \{\s*\z/, "found phase $1") or last TEST; my $phase = $1; while () { last if /^\s*\},?\s*\z/; next if /^\s*"[^"]+"\s*:\s*\{\s*\},?\s*\z/; ok(/^\s*"(.+)" : \{\s*\z/, "found relationship $phase $1") or last TEST; my $rel = $1; while () { last if /^\s*\},?\s*\z/; ok(/^\s*"([^"]+)"\s*:\s*(\S+?),?\s*\z/, "found prereq $1") or last TEST; my ($prereq, $version) = ($1, $2); next if $phase ne 'runtime' or $prereq eq 'perl'; # Need a special case for if.pm, because "require if;" is a syntax error. my $loaded = ($prereq eq 'if') ? eval "require '$prereq.pm'; 1" : eval "require $prereq; 1"; if ($rel eq 'requires') { ok($loaded, "loaded $prereq") or print STDERR "\n# ERROR: Wanted: $prereq $version\n"; } else { ok(1, ($loaded ? 'loaded' : 'failed to load') . " $prereq"); } if ($loaded and not ($version eq '"0"' or eval "'$prereq'->VERSION($version); 1")) { printf STDERR "\n# WARNING: Got: %s %s\n# Wanted: %s %s\n", $prereq, get_version($prereq), $prereq, $version; } } # end while in prerequisites } # end while in relationship } # end while in phase close META; # Print version of all loaded modules: if ($ENV{AUTOMATED_TESTING} or (@ARGV and ($ARGV[0] eq '-v' or $ARGV[0] eq '--verbose'))) { print STDERR "# Listing %INC\n"; my @packages = grep { s/\.pm\Z// and do { s![\\/]!::!g; 1 } } sort keys %INC; my $len = 0; for (@packages) { $len = length if length > $len } $len = 68 if $len > 68; for my $package (@packages) { printf STDERR "# %${len}s %s\n", $package, get_version($package); } } # end if AUTOMATED_TESTING } # end TEST $tests_completed = $test; release-distmeta.t100644000000000000 40113664647331 17665 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t#!perl BEGIN { unless ($ENV{RELEASE_TESTING}) { print qq{1..0 # SKIP these tests are for release candidate testing\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::MetaTests. use Test::CPAN::Meta; meta_yaml_ok(); release-kwalitee.t100644000000000000 50413664647331 17664 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t BEGIN { unless ($ENV{RELEASE_TESTING}) { print qq{1..0 # SKIP these tests are for release candidate testing\n}; exit } } # this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.12 use strict; use warnings; use Test::More 0.88; use Test::Kwalitee 1.21 'kwalitee_ok'; kwalitee_ok(); done_testing; author-pod-syntax.t100644000000000000 45413664647331 20053 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t#!perl BEGIN { unless ($ENV{AUTHOR_TESTING}) { print qq{1..0 # SKIP these tests are for testing by the author\n}; exit } } # This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use strict; use warnings; use Test::More; use Test::Pod 1.41; all_pod_files_ok(); release-meta-json.t100644000000000000 27313664647331 17757 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t#!perl BEGIN { unless ($ENV{RELEASE_TESTING}) { print qq{1..0 # SKIP these tests are for release candidate testing\n}; exit } } use Test::CPAN::Meta::JSON; meta_json_ok(); 00-report-prereqs.t100644000000000000 1342613664647331 17717 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t#!perl use strict; use warnings; # This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027 use Test::More tests => 1; use ExtUtils::MakeMaker; use File::Spec; # from $version::LAX my $lax_version_re = qr/(?: undef | (?: (?:[0-9]+) (?: \. | (?:\.[0-9]+) (?:_[0-9]+)? )? | (?:\.[0-9]+) (?:_[0-9]+)? ) | (?: v (?:[0-9]+) (?: (?:\.[0-9]+)+ (?:_[0-9]+)? )? | (?:[0-9]+)? (?:\.[0-9]+){2,} (?:_[0-9]+)? ) )/x; # hide optional CPAN::Meta modules from prereq scanner # and check if they are available my $cpan_meta = "CPAN::Meta"; my $cpan_meta_pre = "CPAN::Meta::Prereqs"; my $HAS_CPAN_META = eval "require $cpan_meta; $cpan_meta->VERSION('2.120900')" && eval "require $cpan_meta_pre"; ## no critic # Verify requirements? my $DO_VERIFY_PREREQS = 1; sub _max { my $max = shift; $max = ( $_ > $max ) ? $_ : $max for @_; return $max; } sub _merge_prereqs { my ($collector, $prereqs) = @_; # CPAN::Meta::Prereqs object if (ref $collector eq $cpan_meta_pre) { return $collector->with_merged_prereqs( CPAN::Meta::Prereqs->new( $prereqs ) ); } # Raw hashrefs for my $phase ( keys %$prereqs ) { for my $type ( keys %{ $prereqs->{$phase} } ) { for my $module ( keys %{ $prereqs->{$phase}{$type} } ) { $collector->{$phase}{$type}{$module} = $prereqs->{$phase}{$type}{$module}; } } } return $collector; } my @include = qw( ); my @exclude = qw( ); # Add static prereqs to the included modules list my $static_prereqs = do './t/00-report-prereqs.dd'; # Merge all prereqs (either with ::Prereqs or a hashref) my $full_prereqs = _merge_prereqs( ( $HAS_CPAN_META ? $cpan_meta_pre->new : {} ), $static_prereqs ); # Add dynamic prereqs to the included modules list (if we can) my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; my $cpan_meta_error; if ( $source && $HAS_CPAN_META && (my $meta = eval { CPAN::Meta->load_file($source) } ) ) { $full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs); } else { $cpan_meta_error = $@; # capture error from CPAN::Meta->load_file($source) $source = 'static metadata'; } my @full_reports; my @dep_errors; my $req_hash = $HAS_CPAN_META ? $full_prereqs->as_string_hash : $full_prereqs; # Add static includes into a fake section for my $mod (@include) { $req_hash->{other}{modules}{$mod} = 0; } for my $phase ( qw(configure build test runtime develop other) ) { next unless $req_hash->{$phase}; next if ($phase eq 'develop' and not $ENV{AUTHOR_TESTING}); for my $type ( qw(requires recommends suggests conflicts modules) ) { next unless $req_hash->{$phase}{$type}; my $title = ucfirst($phase).' '.ucfirst($type); my @reports = [qw/Module Want Have/]; for my $mod ( sort keys %{ $req_hash->{$phase}{$type} } ) { next if $mod eq 'perl'; next if grep { $_ eq $mod } @exclude; my $file = $mod; $file =~ s{::}{/}g; $file .= ".pm"; my ($prefix) = grep { -e File::Spec->catfile($_, $file) } @INC; my $want = $req_hash->{$phase}{$type}{$mod}; $want = "undef" unless defined $want; $want = "any" if !$want && $want == 0; my $req_string = $want eq 'any' ? 'any version required' : "version '$want' required"; if ($prefix) { my $have = MM->parse_version( File::Spec->catfile($prefix, $file) ); $have = "undef" unless defined $have; push @reports, [$mod, $want, $have]; if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META && $type eq 'requires' ) { if ( $have !~ /\A$lax_version_re\z/ ) { push @dep_errors, "$mod version '$have' cannot be parsed ($req_string)"; } elsif ( ! $full_prereqs->requirements_for( $phase, $type )->accepts_module( $mod => $have ) ) { push @dep_errors, "$mod version '$have' is not in required range '$want'"; } } } else { push @reports, [$mod, $want, "missing"]; if ( $DO_VERIFY_PREREQS && $type eq 'requires' ) { push @dep_errors, "$mod is not installed ($req_string)"; } } } if ( @reports ) { push @full_reports, "=== $title ===\n\n"; my $ml = _max( map { length $_->[0] } @reports ); my $wl = _max( map { length $_->[1] } @reports ); my $hl = _max( map { length $_->[2] } @reports ); if ($type eq 'modules') { splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports; } else { splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl]; push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports; } push @full_reports, "\n"; } } } if ( @full_reports ) { diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports; } if ( $cpan_meta_error || @dep_errors ) { diag "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n"; } if ( $cpan_meta_error ) { my ($orig_source) = grep { -f } 'MYMETA.json', 'MYMETA.yml'; diag "\nCPAN::Meta->load_file('$orig_source') failed with: $cpan_meta_error\n"; } if ( @dep_errors ) { diag join("\n", "\nThe following REQUIRED prerequisites were not satisfied:\n", @dep_errors, "\n" ); } pass; # vim: ts=4 sts=4 sw=4 et: SQLite000755000000000000 013664647331 16322 5ustar00unknownunknown000000000000CPAN-SQLite-0.219/lib/CPANDBI.pm100644000000000000 752713664647331 17431 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/lib/CPAN/SQLite# $Id: DBI.pm 84 2020-05-31 06:29:34Z stro $ package CPAN::SQLite::DBI; use strict; use warnings; our $VERSION = '0.219'; use English qw/-no_match_vars/; require File::Spec; use DBI; use parent 'Exporter'; our ($dbh, $tables, @EXPORT_OK); @EXPORT_OK = qw($dbh $tables); $tables = { 'info' => { 'primary' => { 'status' => q!INTEGER NOT NULL PRIMARY KEY!, }, 'other' => {}, 'key' => [], 'name' => 'status', 'id' => 'status', }, mods => { primary => { mod_id => q{INTEGER NOT NULL PRIMARY KEY} }, other => { mod_name => q{VARCHAR(100) NOT NULL}, dist_id => q{INTEGER NOT NULL}, mod_abs => q{TEXT}, mod_vers => q{VARCHAR(10)}, }, key => [qw/dist_id mod_name/], name => 'mod_name', id => 'mod_id', has_a => { dists => 'dist_id' }, }, dists => { primary => { dist_id => q{INTEGER NOT NULL PRIMARY KEY} }, other => { dist_name => q{VARCHAR(90) NOT NULL}, auth_id => q{INTEGER NOT NULL}, dist_file => q{VARCHAR(110) NOT NULL}, dist_vers => q{VARCHAR(20)}, dist_abs => q{TEXT}, }, key => [qw/auth_id dist_name/], name => 'dist_name', id => 'dist_id', has_a => { auths => 'auth_id' }, has_many => { mods => 'dist_id', }, }, auths => { primary => { auth_id => q{INTEGER NOT NULL PRIMARY KEY} }, other => { cpanid => q{VARCHAR(20) NOT NULL}, fullname => q{VARCHAR(40) NOT NULL}, email => q{TEXT}, }, key => [qw/cpanid/], has_many => { dists => 'dist_id' }, name => 'cpanid', id => 'auth_id', }, }; sub new { my ($class, %args) = @_; my $db_dir = $args{db_dir} || $args{CPAN}; my $db = File::Spec->catfile($db_dir, $args{db_name}); $dbh ||= DBI->connect( "DBI:SQLite:$db", '', '', { RaiseError => 1, AutoCommit => 0, sqlite_use_immediate_transaction => 0, }); die "Cannot connect to $db" unless $dbh; $dbh->{AutoCommit} = 0; my $objs; foreach my $table (keys %$tables) { my $cl = $class . '::' . $table; $objs->{$table} = $cl->make(table => $table); } for my $table (keys %$tables) { foreach my $type (qw(primary other)) { foreach my $column (keys %{ $tables->{$table}->{$type} }) { push @{ $tables->{$table}->{columns} }, $column; } } } return bless { objs => $objs }, $class; } sub make { my ($class, %args) = @_; my $table = $args{table}; die qq{No table exists corresponding to '$class'} unless $table; my $info = $tables->{$table}; die qq{No information available for table '$table'} unless $info; my $self = { table => $table, columns => $info->{columns}, id => $info->{id}, name => $info->{name}, }; foreach (qw(name has_a has_many)) { next unless defined $info->{$_}; $self->{$_} = $info->{$_}; } return bless $self, $class; } sub db_error { my ($obj, $sth) = @_; return unless $dbh; if ($sth) { $sth->finish; undef $sth; } return $obj->{error_msg} = q{Database error: } . $dbh->errstr; } 1; =head1 NAME CPAN::SQLite::DBI - DBI information for the CPAN::SQLite database =head1 VERSION version 0.219 =head1 DESCRIPTION This module is used by L and L to set up some basic database information. It exports two variables: =over 3 =item C<$tables> This is a hash reference whose keys are the table names, with corresponding values being hash references whose keys are the columns of the table and values being the associated data types. =item C<$dbh> This is a L database handle used to connect to the database. =back The main method of this module is C, which is used to make the tables of the database. =head1 SEE ALSO L and L =cut TestShellDiag.pm100644000000000000 76013664647331 20060 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t/lib# $Id: TestShellDiag.pm 71 2019-01-15 01:46:34Z stro $ package TestShellDiag; use strict; use warnings; use Test::More (); use CPAN; # CPAN FrontEnd (default: CPAN::Shell) prints some information to STDOUT, which # can brake TAP output and mark some tests as out-of-sequence. To avoid this # problem, myprint and mywarn should be silenced. $CPAN::FrontEnd = 'TestShellDiag'; sub myprint { return Test::More::diag(splice(@_, 1)); } sub mywarn { return Test::More::diag(splice(@_, 1)); } 00-report-prereqs.dd100644000000000000 647013664647331 20024 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/tdo { my $x = { 'configure' => { 'requires' => { 'ExtUtils::MakeMaker' => '0' } }, 'develop' => { 'requires' => { 'Test::CPAN::Meta' => '0', 'Test::CPAN::Meta::JSON' => '0.16', 'Test::EOL' => '0', 'Test::Kwalitee' => '1.21', 'Test::MinimumVersion' => '0', 'Test::More' => '0.88', 'Test::NoTabs' => '0', 'Test::PAUSE::Permissions' => '0', 'Test::Perl::Critic' => '0', 'Test::Pod' => '1.41' } }, 'runtime' => { 'requires' => { 'CPAN' => '0', 'CPAN::DistnameInfo' => '0', 'Compress::Zlib' => '0', 'Cwd' => '0', 'DBI' => '0', 'English' => '0', 'Exporter' => '0', 'File::Basename' => '0', 'File::Find' => '0', 'File::HomeDir' => '0', 'File::Path' => '0', 'File::Spec' => '0', 'File::Spec::Functions' => '0', 'Getopt::Long' => '0', 'HTTP::Tiny' => '0', 'Safe' => '0', 'Scalar::Util' => '0', 'constant' => '0', 'parent' => '0', 'strict' => '0', 'utf8' => '0', 'warnings' => '0' } }, 'test' => { 'recommends' => { 'CPAN::Meta' => '2.120900' }, 'requires' => { 'CPAN::HandleConfig' => '0', 'CPAN::Version' => '0', 'Carp' => '0', 'DBD::SQLite' => '0', 'ExtUtils::MakeMaker' => '0', 'File::Copy' => '0', 'File::Spec' => '0', 'FindBin' => '0', 'IO::Handle' => '0', 'IPC::Open3' => '0', 'Test::More' => '0.94', 'base' => '0', 'lib' => '0' } } }; $x; }04search_everything.t100644000000000000 236013664647331 20340 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/t# $Id: 04search_everything.t 81 2019-01-30 21:53:22Z stro $ use strict; use warnings; use Test::More; use Cwd; use CPAN::SQLite::Search; use FindBin; use File::Spec::Functions; use lib "$FindBin::Bin/lib"; use TestSQL qw($dists $mods $auths vcmp); use CPAN::SQLite::DBI::Search; use CPAN::SQLite::DBI qw($dbh); my $cwd = getcwd; my $CPAN = catfile $cwd, 't', 'cpan'; plan tests => 14; my $db_name = 'cpandb.sql'; my $db_dir = catfile $cwd, 't', 'dot-cpan'; my $cdbi = CPAN::SQLite::DBI::Search->new( db_name => $db_name, db_dir => $db_dir ); my $query = CPAN::SQLite::Search->new( db_name => $db_name, db_dir => $db_dir ); ok(defined $query); isa_ok($query, 'CPAN::SQLite::Search'); my $results; my $everything = q{.}; my $all_res_qty = { 'author' => 4, 'dist' => 92, 'module' => 544, }; for my $mode (qw(author dist module)) { { my $type = 'name'; $query->query(mode => $mode, $type => $everything); $results = $query->{results}; ok(not defined $results); } { my $type = 'query'; $query->query(mode => $mode, $type => $everything); $results = $query->{results}; ok(defined $results); isa_ok($results, 'ARRAY'); is(scalar @{$results}, $all_res_qty->{$mode}, 'Correct number of query results'); } } Util.pm100644000000000000 1412613664647331 17761 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/lib/CPAN/SQLite# $Id: Util.pm 84 2020-05-31 06:29:34Z stro $ package CPAN::SQLite::Util; use strict; use warnings; our $VERSION = '0.219'; use English qw/-no_match_vars/; use parent 'Exporter'; our (@EXPORT_OK, %modes, $table_id, $query_info, $mode_info, $full_id); @EXPORT_OK = qw($repositories %modes vcmp $table_id $query_info $mode_info $full_id has_hash_data has_array_data download print_debug); make_ids(); $mode_info = { module => { id => 'mod_id', table => 'mods', name => 'mod_name', text => 'mod_abs', }, dist => { id => 'dist_id', table => 'dists', name => 'dist_name', text => 'dist_abs', }, author => { id => 'auth_id', table => 'auths', name => 'cpanid', text => 'fullname', }, }; %modes = map { $_ => 1 } keys %$mode_info; $query_info = { module => { mode => 'module', type => 'name' }, mod_id => { mode => 'module', type => 'id' }, dist => { mode => 'dist', type => 'name' }, dist_id => { mode => 'dist', type => 'id' }, cpanid => { mode => 'author', type => 'name' }, author => { mode => 'author', type => 'name' }, auth_id => { mode => 'author', type => 'id' }, }; sub make_ids { my @tables = qw(mods dists auths); foreach my $table (@tables) { (my $id = $table) =~ s!(\w+)s$!$1_id!; $table_id->{$table} = $id; $full_id->{$id} = $table . '.' . $id; } return; } #my $num_re = qr{^0*\.\d+$}; #sub vcmp { # my ($v1, $v2) = @_; # return unless (defined $v1 and defined $v2); # if ($v1 =~ /$num_re/ and $v2 =~ /$num_re/) { # return $v1 <=> $v2; # } # return Sort::Versions::versioncmp($v1, $v2); #} sub has_hash_data { my $data = shift; return unless (defined $data and ref($data) eq 'HASH'); return (scalar keys %$data > 0) ? 1 : 0; } sub has_array_data { my $data = shift; return unless (defined $data and ref($data) eq 'ARRAY'); return (scalar @$data > 0) ? 1 : 0; } sub download { my ($cpanid, $dist_file) = @_; return unless ($cpanid and $dist_file); (my $fullid = $cpanid) =~ s!^(\w)(\w)(.*)!$1/$1$2/$1$2$3!; my $download = $fullid . '/' . $dist_file; return $download; } sub print_debug { return unless $ENV{CPAN_SQLITE_DEBUG}; $CPAN::FrontEnd->myprint(@_); } sub vcmp { my ($v1, $v2) = @_; return CPAN::SQLite::Version->vcmp($v1, $v2); } # This is borrowed essentially verbatim from CPAN::Version # It's included here so as to not demand a CPAN.pm upgrade package CPAN::SQLite::Version; use strict; our $VERSION = '0.219'; no warnings; # CPAN::Version::vcmp courtesy Jost Krieger sub vcmp { my ($self, $l, $r) = @_; return 0 if $l eq $r; # short circuit for quicker success for ($l, $r) { next unless tr/.// > 1; s/^v?/v/; 1 while s/\.0+(\d)/.$1/; } if ($l =~ /^v/ <=> $r =~ /^v/) { for ($l, $r) { next if /^v/; $_ = $self->float2vv($_); } } return ( ($l ne "undef") <=> ($r ne "undef") || ($] >= 5.006 && $l =~ /^v/ && $r =~ /^v/ && $self->vstring($l) cmp $self->vstring($r)) || $l <=> $r || $l cmp $r ); } sub vgt { my ($self, $l, $r) = @_; return $self->vcmp($l, $r) > 0; } sub vlt { my ($self, $l, $r) = @_; return 0 + ($self->vcmp($l, $r) < 0); } sub vstring { my ($self, $n) = @_; $n =~ s/^v// or die "CPAN::Search::Lite::Version::vstring() called with invalid arg [$n]"; { no warnings; return pack "U*", split /\./, $n; } } # vv => visible vstring sub float2vv { my ($self, $n) = @_; my ($rev) = int($n); $rev ||= 0; my ($mantissa) = $n =~ /\.(\d{1,12})/; # limit to 12 digits to limit # architecture influence $mantissa ||= 0; $mantissa .= "0" while length($mantissa) % 3; my $ret = "v" . $rev; while ($mantissa) { $mantissa =~ s/(\d{1,3})// or die "Panic: length>0 but not a digit? mantissa[$mantissa]"; $ret .= "." . int($1); } # warn "n[$n]ret[$ret]"; return $ret; } sub readable { my ($self, $n) = @_; $n =~ /^([\w\-\+\.]+)/; return $1 if defined $1 && length($1) > 0; # if the first user reaches version v43, he will be treated as "+". # We'll have to decide about a new rule here then, depending on what # will be the prevailing versioning behavior then. if ($] < 5.006) { # or whenever v-strings were introduced # we get them wrong anyway, whatever we do, because 5.005 will # have already interpreted 0.2.4 to be "0.24". So even if he # indexer sends us something like "v0.2.4" we compare wrongly. # And if they say v1.2, then the old perl takes it as "v12" warn("Suspicious version string seen [$n]\n"); return $n; } my $better = sprintf "v%vd", $n; return $better; } 1; __END__ =head1 NAME CPAN::SQLite::Util - export some common data structures used by CPAN::SQLite::* =head1 VERSION version 0.219 =head1 DESCRIPTION This module exports some common data structures used by other I modules. At present these are =over 3 =item * C<$table_id> This is a hash reference whose keys are the tables used and whose values are the associated primary keys. =item * C<$full_id> This is a hash reference whose keys are the primary keys of the tables and whose values are the associated fully qualified primary keys (ie, with the table name prepended). =item * C<$mode_info> This is a hash reference whose keys are the allowed modes of I and whose associated values are hash references with keys C, C, and C describing what columns to use for that key. =item * C<$query_info> This is a hash reference whose purpose is to provide shortcuts to making queries using I. The keys of this reference is the shortcut name, and the associated value is a hash reference specifying the required I and I keys. =item * C This routine, used as if (vcmp($v1, $v2) > 0) { print "$v1 is higher than $v2\n"; } is used to compare two versions, and returns 1/0/-1 if the first argument is considered higher/equal/lower than the second. It uses C. =back =cut META.pm100644000000000000 3250613664647331 17574 0ustar00unknownunknown000000000000CPAN-SQLite-0.219/lib/CPAN/SQLite# $Id: META.pm 84 2020-05-31 06:29:34Z stro $ package CPAN::SQLite::META; use strict; use warnings; our $VERSION = '0.219'; use English qw/-no_match_vars/; require CPAN::SQLite; use DBI; use File::Spec; use parent 'Exporter'; our @EXPORT_OK; @EXPORT_OK = qw(setup update check); our $global_id; # This is usually already defined in real life, but tests need it to be set $CPAN::FrontEnd ||= "CPAN::Shell"; sub new { my ($class, $cpan_meta) = @_; my $cpan_sqlite = CPAN::SQLite->new(); return bless { cpan_meta => $cpan_meta, cpan_sqlite => $cpan_sqlite }, $class; } sub set { my ($self, $class, $id) = @_; my $sqlite_obj = $self->make_obj(class => $class, id => $id); return $sqlite_obj->set_one(); } sub search { my ($self, $class, $regex) = @_; my $sqlite_obj = $self->make_obj(class => $class, regex => $regex); return $sqlite_obj->set_many(); } sub make_obj { my ($self, %args) = @_; my $class = $args{class}; die qq{Must supply a CPAN::* class string} unless ($class and $class =~ /^CPAN::/); (my $type = $class) =~ s/^CPAN//; my $package = __PACKAGE__ . $type; return bless { cpan_meta => $self->{cpan_meta}, cpan_sqlite => $self->{cpan_sqlite}, class => $class, id => $args{id}, regex => $args{regex}, }, $package; } package CPAN::SQLite::META::Author; use parent 'CPAN::SQLite::META'; use CPAN::SQLite::Util qw(has_hash_data); sub set_one { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $id = $self->{id}; my $class = $self->{class}; $cpan_sqlite->{results} = {}; $cpan_sqlite->query(mode => 'author', name => $id, meta_obj => $self); my $cpan_meta = $self->{cpan_meta}; return $cpan_meta->{readonly}{$class}{$id}; } sub set_many { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $regex = $self->{regex}; $cpan_sqlite->{results} = []; return $cpan_sqlite->query(mode => 'author', query => $regex, meta_obj => $self); } sub set_data { my ($self, $results) = @_; return $self->set_author($results->{cpanid}, $results); } package CPAN::SQLite::META::Distribution; use parent 'CPAN::SQLite::META'; use CPAN::SQLite::Util qw(has_hash_data download); use CPAN::DistnameInfo; my $ext = qr{\.(tar\.gz|tar\.Z|tgz|zip)$}; sub set_one { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $id = $self->{id}; my ($dist_name, $dist_id); if ($id =~ /$ext/) { ($dist_name, $dist_id) = $self->extract_distinfo($id); } return unless ($dist_name and $dist_id); my $class = $self->{class}; $cpan_sqlite->{results} = {}; $cpan_sqlite->query(mode => 'dist', name => $dist_name, meta_obj => $self); my $cpan_meta = $self->{cpan_meta}; return $cpan_meta->{readonly}{$class}{$dist_id}; } sub set_many { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $regex = $self->{regex}; $cpan_sqlite->{results} = []; return $cpan_sqlite->query(mode => 'dist', query => $regex, meta_obj => $self); } sub set_data { my ($self, $results) = @_; $global_id = $results->{download}; return $self->set_dist($results->{download}, $results); } sub set_list_data { my ($self, $results, $download) = @_; $global_id = $download; $self->set_containsmods($results); $global_id = undef; return; } package CPAN::SQLite::META::Module; use parent 'CPAN::SQLite::META'; use CPAN::SQLite::Util qw(has_hash_data); sub set_one { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $id = $self->{id}; return if ($id =~ /^Bundle::/); my $class = $self->{class}; $cpan_sqlite->{results} = {}; $cpan_sqlite->query(mode => 'module', name => $id, meta_obj => $self); my $cpan_meta = $self->{cpan_meta}; return $cpan_meta->{readonly}{$class}{$id}; } sub set_many { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $regex = $self->{regex}; $cpan_sqlite->{results} = []; return $cpan_sqlite->query(mode => 'module', query => $regex, meta_obj => $self); } sub set_data { my ($self, $results) = @_; $self->set_module($results->{mod_name}, $results); $global_id = $results->{download}; return $self->set_dist($results->{download}, $results); } sub set_list_data { my ($self, $results, $download) = @_; $global_id = $download; $self->set_containsmods($results); $global_id = undef; return; } package CPAN::SQLite::META::Bundle; use parent 'CPAN::SQLite::META'; use CPAN::SQLite::Util qw(has_hash_data); sub set_one { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $id = $self->{id}; unless ($id =~ /^Bundle::/) { $id = 'Bundle::' . $id; } my $class = $self->{class}; $cpan_sqlite->{results} = {}; $cpan_sqlite->query(mode => 'module', name => $id, meta_obj => $self); my $cpan_meta = $self->{cpan_meta}; return $cpan_meta->{readonly}{$class}{$id}; } sub set_many { my $self = shift; my $cpan_sqlite = $self->{cpan_sqlite}; my $regex = $self->{regex}; unless ($regex =~ /(^Bundle::|[\^\$\*\+\?\|])/i) { $regex = '^Bundle::' . $regex; } $regex = '^Bundle::' if $regex eq '^'; $cpan_sqlite->{results} = []; return $cpan_sqlite->query(mode => 'module', query => $regex, meta_obj => $self); } sub set_data { my ($self, $results) = @_; $self->set_bundle($results->{mod_name}, $results); $global_id = $results->{download}; return $self->set_dist($results->{download}, $results); } sub set_list_data { my ($self, $results, $download) = @_; $global_id = $download; $self->set_containsmods($results); $global_id = undef; return; } package CPAN::SQLite::META; use CPAN::SQLite::Util qw(download); my @months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); my @days = qw(Sun Mon Tue Wed Thu Fri Sat); sub set_author { my ($self, $id, $results) = @_; my $class = 'CPAN::Author'; my $cpan_meta = $self->{cpan_meta}; return $cpan_meta->instance($class => $id)->set( 'FULLNAME' => $results->{fullname}, 'EMAIL' => $results->{email}, ); } sub set_module { my ($self, $id, $results) = @_; my $class = 'CPAN::Module'; my $cpan_meta = $self->{cpan_meta}; my $d = $cpan_meta->instance($class => $id); return $d->set( 'description' => $results->{mod_abs}, 'userid' => $results->{cpanid}, 'CPAN_VERSION' => $results->{mod_vers}, 'CPAN_FILE' => $results->{download}, 'CPAN_USERID' => $results->{cpanid}, ); } sub set_bundle { my ($self, $id, $results) = @_; my $class = 'CPAN::Bundle'; my $cpan_meta = $self->{cpan_meta}; my $d = $cpan_meta->instance($class => $id); return $d->set( 'description' => $results->{mod_abs}, 'userid' => $results->{cpanid}, 'CPAN_VERSION' => $results->{mod_vers}, 'CPAN_FILE' => $results->{download}, 'CPAN_USERID' => $results->{cpanid}, ); } sub set_dist { my ($self, $id, $results) = @_; my $class = 'CPAN::Distribution'; my $cpan_meta = $self->{cpan_meta}; my $d = $cpan_meta->instance($class => $id); return $d->set( 'DESCRIPTION' => $results->{dist_abs}, 'CPAN_USERID' => $results->{cpanid}, 'CPAN_VERSION' => $results->{dist_vers}, ); } sub set_containsmods { my ($self, $mods) = @_; my $class = 'CPAN::Distribution'; my $cpan_meta = $self->{cpan_meta}; my %containsmods; if ($mods and (ref($mods) eq 'ARRAY')) { %containsmods = map { $_->{mod_name} => 1 } @$mods; } my $d = $cpan_meta->instance($class => $global_id); return $d->{CONTAINSMODS} = \%containsmods; } sub reload { my ($self, %args) = @_; my $time = $args{'time'} || time; my $force = $args{force}; my $db_name = $CPAN::SQLite::db_name; my $db = File::Spec->catfile($CPAN::Config->{cpan_home}, $db_name); my $journal_file = $db . '-journal'; if (-e $journal_file) { $CPAN::FrontEnd->mywarn('Database locked - cannot update.'); return; } my @args = ($^X, '-MCPAN::SQLite::META=setup,update,check', '-e'); if (-e $db && -s _) { my $mtime_db = (stat(_))[9]; my $time_string = gmtime_string($mtime_db); $CPAN::FrontEnd->myprint("Database was generated on $time_string\n"); # Check for status, force update if it fails if (system(@args, 'check')) { $force = 1; $CPAN::FrontEnd->myprint("Database file requires reindexing\n"); } unless ($force) { return if (($time - $mtime_db) < $CPAN::Config->{index_expire} * 86400); } $CPAN::FrontEnd->myprint('Updating database file ... '); push @args, q{update}; } else { unlink($db) if -e _; $CPAN::FrontEnd->myprint('Creating database file ... '); push @args, q{setup}; } if ($CPAN::SQLite::DBI::dbh) { $CPAN::SQLite::DBI::dbh->disconnect(); $CPAN::SQLite::DBI::dbh = undef; } system(@args) == 0 or die qq{system @args failed: $?}; $CPAN::FrontEnd->myprint("Done!\n"); return 1; } sub setup { my $obj = CPAN::SQLite->new(setup => 1); $obj->index() or die qq{CPAN::SQLite setup failed}; return; } sub update { my $obj = CPAN::SQLite->new(); $obj->index() or die qq{CPAN::SQLite update failed}; return; } sub check { my $obj = CPAN::SQLite->new(); my $db = File::Spec->catfile($obj->{'db_dir'}, $obj->{'db_name'}); my $dbh = DBI->connect("DBI:SQLite:$db", '', '', { 'RaiseError' => 0, 'PrintError' => 0, 'AutoCommit' => 1 }); if (my $sth = $dbh->prepare('SELECT status FROM info WHERE status = 1')) { if ($sth->execute()) { if ($sth->fetchrow_arrayref()) { exit 0; # status = 1 } else { exit 1; # status <> 1, need reindexing } } else { # Something's wrong, will be safer to reinitialize $dbh->disconnect(); undef $dbh; setup(); update(); } } else { # Probably old version of DB or no DB at all, run setup and update $dbh->disconnect(); undef $dbh; setup(); update(); } return; } sub gmtime_string { my $time = shift; return unless $time; my @a = gmtime($time); my $string = sprintf("%s, %02d %s %d %02d:%02d:%02d GMT", $days[$a[6]], $a[3], $months[$a[4]], $a[5] + 1900, $a[2], $a[1], $a[0]); return $string; } sub extract_distinfo { my ($self, $pathname) = @_; unless ($pathname =~ m{^\w/\w\w/}) { $pathname =~ s{^(\w)(\w)(.*)}{$1/$1$2/$1$2$3}; } my $d = CPAN::DistnameInfo->new($pathname); my $dist = $d->dist; my $download = download($d->cpanid, $d->filename); return ($dist and $download) ? ($dist, $download) : undef; } 1; =head1 NAME CPAN::SQLite::META - helper module for CPAN.pm integration =head1 VERSION version 0.219 =head1 DESCRIPTION This module has no direct public interface, but is intended as a helper module for use of CPAN::SQLite within the CPAN.pm module. A new object is created as my $obj = CPAN::SQLite::META->new($CPAN::META); where C<$CPAN::META> comes from CPAN.pm. There are then two main methods available. =over 4 =item C This is used as $obj->set($class, $id); where C<$class> is one of C, C, or C, and C<$id> is the id CPAN.pm uses to identify the class. The method searches the C database by name using the appropriate C, C, or C mode, and if a result is found, calls $CPAN::META->instance( $class => $id )->set( %attributes ); to register an instance of this class within C. =item C This is used as $obj->search($class, $id); where C<$class> is one of C, C, or C, and C<$id> is the id CPAN.pm uses to identify the class. The method searches the C database by C using the appropriate C, C, or C mode, and if results are found, calls $CPAN::META->instance( $class => $id )->set( %attributes ); for each match to register an instance of this class within C. =back The attributes set within C<$CPAN::META->instance> depend on the particular class. =over =item author The attributes are 'FULLNAME' => $results->{fullname}, 'EMAIL' => $results->{email}, where C<$results> are the results returned from C. =item module The attributes are 'description' => $results->{mod_abs}, 'userid' => $results->{cpanid}, 'CPAN_VERSION' => $results->{mod_vers}, 'CPAN_FILE' => $results->{download}, 'CPAN_USERID' => $results->{cpanid}, where C<$results> are the results returned from C. =item dist The attributes are 'DESCRIPTION' => $results->{dist_abs}, 'CPAN_USERID' => $results->{cpanid}, 'CPAN_VERSION' => $results->{dist_vers}, As well, a C key to C<$CPAN::META> is added, this being a hash reference whose keys are the modules contained within the distribution. =back There is also a method available C, which rebuilds the database. It can be used as $obj->reload(force => 1, time => $time); The C