The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Debian::Snapshot - interface to snapshot.debian.org

VERSION

version 0.003

SYNOPSIS

  use Debian::Snapshot;
  my $s = Debian::Snapshot->new;

  my $p = $s->package("package", "version"); # see Debian::Snapshot::Package
  my @package_names   = @{ $s->packages };
  my @source_versions = @{ $s->package_versions("source-package") };

  my @bs = @{ $s->binaries("binary") };      # see Debian::Snapshot::Binary

  my $f = $s->file($sha1hash);               # see Debian::Snapshot::File

DESCRIPTION

This module provides an interface to the snapshot.debian.org service.

ATTRIBUTES

url

URL used to contact the snapshot service. Defaults to http://snapshot.debian.org.

user_agent

The LWP::UserAgent object used to query the server.

METHODS

binaries($name, $version?)

Returns an arrayref of Debian::Snapshot::Binary objects for the binary package named $name.

If the optional parameter $version is present, only return binaries whose binary version matches $version which might be either a string or a regular expression.

file($hash)

Returns a Debian::Snapshot::File object for the file with the given $hash.

package($package, $version)

Returns a Debian::Snapshot::Package object for the source package $package version $version.

packages

Returns an arrayref of source package names.

package_versions($package)

Returns an arrayref of versions for source package $package.

SEE ALSO

http://snapshot.debian.org/

AUTHOR

  Ansgar Burchardt <ansgar@43-1.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Ansgar Burchardt <ansgar@43-1.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.