Config::Apt::SourceEntry - Manipulate apt source entries


Config-Apt-Sources documentation  | view source Contained in the Config-Apt-Sources distribution.

Index


NAME

Top

Config::Apt::SourceEntry - Manipulate apt source entries

VERSION

Top

Version 0.10

SYNOPSIS

Top

    use Config::Apt::SourceEntry;

    my $src = new Config::Apt::SourceEntry;
    $src->from_string("deb http://ftp.us.debian.org/debian/ unstable main");
    ...
    my $src = new Config::Apt::SourceEntry("deb http://ftp.us.debian.org/debian/ unstable main non-free");
    $src->set_uri("http://apt-proxy:9999/");
    print $src->to_string();

FUNCTIONS

Top

new

The Config::Apt::SourceEntry constructor has one optional string argument. If the optional argument is given, it will be parsed as an apt source.

to_string

Returns the string representation of the apt source. Takes no arguments.

    print $src->to_string();

from_string

Parses the given string argument as an apt source.

    $src->from_string("deb http://ftp.us.debian.org/debian/ unstable main");

Returns undef on error, otherwise 1.

get_type, get_uri, get_dist, get_components

Returns the type, uri, distribution (strings), or components (array of strings)

set_type, set_uri, set_dist, set_components

Sets the type, uri, distribution (strings), or components (array of strings)

AUTHOR

Top

Ian Kilgore, <iank at cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-config-apt-source at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Config-Apt-Source. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Config::Apt::Source

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Config-Apt-Source

* CPAN Ratings

http://cpanratings.perl.org/d/Config-Apt-Source

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Config-Apt-Source

* Search CPAN

http://search.cpan.org/dist/Config-Apt-Source

COPYRIGHT & LICENSE

Top


Config-Apt-Sources documentation  | view source Contained in the Config-Apt-Sources distribution.