<<

NAME

Youri::Media - Abstract media class

DESCRIPTION

This abstract class defines Youri::Media interface.

CLASS METHODS

new(%args)

Creates and returns a new Youri::Media object.

Generic parameters:

id $id

Media id.

name $name

Media name.

type $type (source/binary)

Media type.

test true/false

Test mode (default: false).

verbose true/false

Verbose mode (default: false).

allow_deps $media_ids

list of ids of medias allowed to provide dependencies.

skip_inputs $input_ids

list of ids of input plugins to skip.

skip_archs $arches

list of arches to skip.

Subclass may define additional parameters.

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

INSTANCE METHODS

get_id()

Returns media identity.

get_name()

Returns the name of this media.

get_type()

Returns the type of this media.

allow_deps()

Returns the list of id of medias allowed to provide dependencies for this media.

allow_dep($media_id)

Tells wether media with given id is allowed to provide dependencies for this media.

allow_srcs()

Returns the list medias where the source packages can be

allow_src($media_id)

Tells wether media with given id is allowed to host sources dependencies for this media.

skip_archs()

Returns the list of arch which are to be skipped for this media.

skip_arch($arch)

Tells wether given arch is to be skipped for this media.

skip_inputs()

Returns the list of id of input which are to be skipped for this media.

skip_input($input_id)

Tells wether input with given id is to be skipped for this media.

get_package_class()

Return package class for this media.

traverse_files($function)

Apply given function to all files of this media.

traverse_headers($function)

Apply given function to all headers of this media.

SUBCLASSING

The following methods have to be implemented:

traverse_headers
traverse_files

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.

<<