Youri::Check::Input::Updates::Source - Abstract updates source
This abstract class defines the updates source interface for Youri::Check::Input::Updates.
Creates and returns a new Youri::Check::Input::Updates object.
Generic parameters (subclasses may define additional ones):
Hash of package aliases.
Warning: do not call directly, call subclass constructor instead.
Excepted explicit statement, package name is expressed with Mandriva naming conventions.
Returns source identity.
Returns available version for given package, which can be either a full Youri::Package object or just a package name.
Returns the URL of information source for package with given name.
Returns name converted to specific source naming conventions for package with given name.
Hook called by default version() implementation after name translation.
Hook called by default url() implementation after name translation.
Hook called by default name() implementation if given name was not found in the aliases.
The following methods have to be implemented:
As an alternative, the _version() hook can be implemented.
As an alternative, the <_url()> hook can be implemented.
As an alternative, the _name() hook can be implemented.
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.