Debian-Apt-PM
view release on metacpan or search on metacpan
examples/web/script.js view on Meta::CPAN
}
cpan2deb.searchFinish = function () {
$('.load').hide();
$('input[type="submit"]').show();
$('input[type="search"]').focus();
}
cpan2deb.show_module_info = function (module_name, module_info) {
var module_html = module_name;
var cpan_path_html = 'n/a';
var cpan_version = 'n/a';
var debs = [];
if (module_info[module_name]) {
cpan_path_html = '<a href="http://search.cpan.org/CPAN/authors/id/'+module_info[module_name].CPAN.path+'">'+module_info[module_name].CPAN.path+'</a>';
cpan_version = module_info[module_name].CPAN.version;
module_html = '<a href="http://search.cpan.org/perldoc?'+encodeURIComponent(module_name)+'">'+module_name+'</a>';
if (module_info[module_name].Debian.length == 0) {
debs = [
'This module is not packaged for Debian.<br/>'
+'There are 2 ways to fix this:<br/>'
+'<ul>'
+' <li>Use `reportbug wnpp` to <a href="http://pkg-perl.alioth.debian.org/howto/RFP.html">file an RFP</a>.</li>'
+' <li><a href="http://wiki.debian.org/Teams/DebianPerlGroup/Welcome">Join the Debian Perl Group</a> and help with packaging.</li>'
examples/web/script.js view on Meta::CPAN
+'Module version: '+deb.perl_version+'<br/>'
+'Arch: '+deb.arch+'<br/>'
+'Dist: '+deb.distribution+'<br/>'
+'Component: '+deb.component+'<br/>'
+'</div>'
);
}
}
$('#cpanModuleName').html(module_html);
$('#cpanPath').html(cpan_path_html);
$('#cpanVersion').text(cpan_version);
$('#debianInfo').html('');
for (i in debs) {
var deb = debs[i];
$('#debianInfo').append(deb+'<br/>');
}
}
( run in 0.367 second using v1.01-cache-2.11-cpan-f79bc02f770 )