blob: c9d9c46234442170eb68c38a4d3bddbded0ca7dc (
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
|
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.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."""
|