NAME
Dist::Util::Debian - Utilities related to Perl distribution and Debian
VERSION
This document describes version 0.001 of Dist::Util::Debian (from Perl distribution Dist-Util-Debian), released on 2017-01-13.
SYNOPSIS
use Dist::Util::Debian qw(
dist_has_deb
);
say dist_has_deb("HTTP-Tiny"); # -> 1
say dist_has_deb("Foo"); # -> 0
DESCRIPTION
FUNCTIONS
dist_has_deb($dist) => bool
Return true if distribution named $dist
has a corresponding Debian package. Currently the way the routine checks this is rather naive: it converts $dist
to Debian package name by turning it to lowercase and adds "lib" + "-perl" prefix and suffix (a small percentage of distributions do not follow this rule). Then it checks against this URL: https://packages.debian.org/sid/$package.
Will warn and return undef on error, e.g. the URL cannot be checked or does not contain negative/positive indicator of existence.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Dist-Util-Debian.
SOURCE
Source repository is at https://github.com/perlancar/perl-Dist-Util-Debian.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Util-Debian
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.