Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/plugins/interfaces.py
blob: c6db0145e7a34f7a0b2292036b13417695c45d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import os
import subprocess

from devbot import command
from devbot import distro

class PackageManager:
    """Package management"""

    def install_packages(self, packages):
        """Install packages.

           :param packages: packages to install
        """

    def remove_packages(self, packages):
        """Remove a list of packages.

           :param packages: packages to remove
        """

    def update(self):
        """Update packages to the latest version."""

    def find_all(self):
        """Return all the installed packages."""

    def find_with_deps(self, package_names):
        """Return all the installed dependencies of a list of packages.
           The packages itself are also returned in the list.

           :param packages_name: names of the packages to find
           :returns: list of packages with all the dependencies
        """

class DistroInfo:
    """Informations about the distribution"""

    def __init__(self):
        self.name = None
        """The distribution name."""

        self.version = None
        """The distribution version."""
    
        self.system_version = None
        """A distribution independent system version, normally the same
           major version of GNOME installed on the system.
        """

        self.gstreamer_version = None
        """The version of gstreamer shipped with the distribution."""

        self.valid = False
        """If set to True we are running on this distribution and the
           attributes are all valid.
        """

        self.use_lib64 = False
        """If set to True install libraries in the lib64 directory."""

        self.supported = False
        """If set to Trye the distribution is supported."""