blob: 1877d85f3cab90a7dc119fa805a8eac77491fec4 (
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
|
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.gnome_version = None
"""The major version of GNOME shipped with the distribution."""
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.lib_dir = False
"""Path to the architecture specific lib directory, relative
to the prefix.
"""
self.supported = False
"""If set to Trye the distribution is supported."""
|