Sophie

Sophie

help > xmlrpc

distrib.list( [ DISTRIBUTION [, RELEASE [, ARCH ]]]

List content of distrib according arguments given. IE list available distribution if no argument is given, list release if DISTRIBUTION is given, list arch if both DISTRIBUTION and RELEASE are given. Etc... Up to give MEDIA if ARCH is specified.

Results are given as ARRAY.

distrib.exists( DISTRIB )

Return true or false if distribution DISTRIB exists.

DISTRIB is a structure with following key/value:

This function is useful to check if a search have chance to succeed, eg if the user is not searching a rpm on a non existing distribution.

distrib.anyrpms( DISTRIB )

Return a list of packages available for DISTRIB.

DISTRIB is a struct with following keys/values:

distrib.rpms( DISTRIB )

Return a list of binary packages available for DISTRIB.

DISTRIB is a struct with following keys/values:

distrib.srpms( DISTRIB )

Return a list of source packages available for DISTRIB.

DISTRIB is a struct with following keys/values:

distrib.rpms_name( DISTRIB )

Return the list of rpm name available for DISTRIB.

DISTRIB is a struct with following keys/values:

maintainers.byrpm ( RPMNAME, [ DISTRIB ] )

Return the list of maintainers for rpm source name RPMNAME.

The optional DISTRIB filter the result to this specific distribution.

Result example:

    [
        {
            'owner' => 'rpmmaintainer',
            'distribution' => 'Mandriva'
            'vendor' => 'Mandriva'
        }
    ];

maintainers.bymaintainer ( MAINT, [ DISTRIB ] )

Return the list of rpms for maintainer MAINT.

The optional DISTRIB filter the result to this specific distribution.

Result example:

    [
        {
            'rpm' => 'rpm package',
            'distribution' => 'Mandriva'
            'vendor' => 'Mandriva'
        }
    ];

maintainers.search ( MAINT, [ DISTRIB ] )

Search the database for a maintainer matching MAINT.

The optional DISTRIB filter the result to this specific distribution.

Result example:

    [
        {
            'owner' => 'maintainer',
            'distribution' => 'Mandriva'
            'vendor' => 'Mandriva'
        }
    ];

rpms.queryformat( PKGID, FORMAT )

Perform an rpm -q --qf on the package having PKGID.

rpms.tag( PKGID, TAG )

Return the list of TAG values for package PKGID

rpms.basicinfo( PKGID )

Return a struct about basic informations about rpm having pkgid PKGID.

Example of information return:

    {
          'arch' => 'x86_64',
          'version' => '0.0.3',
          'src' => '1',
          'issrc' => '1',
          'name' => 'ecap-samples',
          'release' => '1mdv2010.2',
          'description' => 'The sample contains three basic adapters.',
          'pkgid' => 'aa17ce95dd816e0817da78d7af54abdb',
          'summary' => 'Simple ecap samples',
          'filename' => 'ecap-samples-0.0.3-1mdv2010.2.src.rpm',
          'evr' => '0.0.3-1mdv2010.2'
    };

rpms.info( PKGID )

Like rpms.basicinfo return a struct containing single information about the request rpm.

rpms.dependency(PKGID, DEPTYPE)

Return a list of DEPTYPE dependencies for package PKGID where DEPTYPE is one of:

rpms.maintainers( PKGID )

Return the maintainers for this package.

The list of maintainers is limited to distribution where the package is located.

If the package is a binary the SOURCERPM tag is used to find the source rpm name.

search.rpm.byname (SEARCHSPEC, NAME, [SENSE, EVR])

Search package by its NAME. SENSE and EVR are optional version filter where SENSE is dependency sign (>, =, ...) and EVR the search version as either VERSION, VERSION-RELEASE or EPOCH:VERSION-RELEASE.

SEARCHSPEC is a struct with search options.

search.rpms.bydate (SEARCHSPEC, TIMESTAMP)

Return a list of rpms files added since TIMESTAMP. TIMESTAMP must the number of second since 1970-01-01 (eq UNIX epoch).

SEARCHSPEC is a struct with following key/value:

Each elements of the output is a struct:

user.set_password( PASSWORD )

Change the password for the current user to password PASSWORD.

The change take effect immediately, so user must login again with the new password to continue to use the website.

The password is stored internally crypted using UNIX MD5 method.