Youri::Repository(3)

NAME
Youri::Repository - Abstract repository

DESCRIPTION
This abstract class defines Youri::Repository interface.

CLASS METHODS

  new(%args)
Creates and returns a new Youri::Repository object.

No generic parameters (subclasses may define additional ones).

Warning: do not call directly, call subclass constructor instead.

INSTANCE METHODS

  get_package_class()
Return package class for this repository.

  get_package_charset()
Return package charset for this repository.

  get_extra_arches()
Return the list of additional archictectures to handle when dealing with noarch packages.

  get_target_arches()
Return the list of additional archictectures to handle when dealing with noarch packages for a given target.

  get_older_revisions($package, $target, $user_context, $app_context)
Get all older revisions from a package found in its installation directory, as a list of Youri::Package objects.

  get_last_older_revision($package, $target, $user_context, $app_context)
Get last older revision from a package found in its installation directory, as a single Youri::Package object.

  get_newer_revisions($package, $target, $user_context, $app_context)
Get all newer revisions from a package found in its installation directory, as a list of Youri::Package objects.

  get_revisions($package, $target, $user_context, $app_context, $filter)
Get all revisions from a package found in its installation directory, using an optional filter, as a list of Youri::Package objects.

  get_obsoleted_packages($package, $target, $user_context, $app_context)
Get all packages obsoleted by given one, as a list of Youri::Package objects.

  get_replaced_packages($package, $target, $user_context, $app_context)
Get all packages replaced by given one, as a list of Youri::Package objects.

  get_files($path, $pattern)
Get all files found in a directory, using an optional filtering pattern (applied to the whole file name), as a list of files.

  get_install_root()
Returns installation root

  get_install_dir($package, $target, $user_context, $app_context)
Returns install destination directory for given Youri::Package object and given target.

  get_archive_root()
Returns archiving root

  get_archive_dir($package, $target, $user_context, $app_context)
Returns archiving destination directory for given Youri::Package object and given target.

  get_version_root()
Returns versionning root

  get_version_dir($package, $target, $user_context, $app_context)
Returns versioning destination directory for given Youri::Package object and given target.

  get_install_file($package, $target, $user_context, $app_context)
Returns install destination file for given Youri::Package object and given target.

  get_install_path($package, $target, $user_context, $app_context)
Returns installation destination path (relative to repository root) for given Youri::Package object and given target.

  get_archive_path($package, $target, $user_context, $app_context)
Returns archiving destination path (relative to repository root) for given Youri::Package object and given target.

  get_version_path($package, $target, $user_context, $app_context)
Returns versioning destination path (relative to repository root) for given Youri::Package object and given target.

SUBCLASSING
The following methods have to be implemented:

get_install_path
get_archive_path
get_version_path

COPYRIGHT AND LICENSE
Copyright (C) 2002-2006, YOURI project

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.