Commit Graph

13 Commits

Author SHA1 Message Date
David Cassany
6eeced1010 Add support for required/recommended packages
This commit enables support to install only required packages
or install required plus recommended packages.
2017-04-12 16:42:15 +02:00
David Cassany
d4681841e7 Make sure debian repositories database is populated before install
This commit includes an 'apt-get update' call before any 'apt-get
install' command. This way the packages database is always ready,
even if no bootstrap procedure has been executed.
2017-04-11 16:12:11 +02:00
David Cassany
1f05b212b3 Add method to setup installation of recommended packages
With this commit package manager are always set to include only
required packages or set to include required and recommended
packages.

This commit fixes #285
2017-04-10 15:28:10 +02:00
Marcus Schäfer
44d38c9997
Refactor method name of package manager interface
The request_package_lock was renamed into request_package_exclusion
because that is the goal, to actually exclude(skip) a package. From
an implementation point of view this is done to set a lock in the
zypper case. However other package managers might do it differently.
The interface should stay consistent with regards to the user goal
and not with the package manager specific implementation. This
Fixes #248
2017-03-27 15:19:14 +02:00
Marcus Schäfer
6cc0b2085d Flake cleanup for unit tests 2017-03-07 13:03:10 +01:00
Marcus Schäfer
d2c5f64434
Added support for package locking for zypper
Zypper supports the al (add lock) command which allows to ignore
a package in the dependecny resolution process. This is useful
to prevent installation of a package which was pulled in by e.g
a recommendation flag from the spec file. Packages marked to be
ignored are not handled for apt and yum right now. Using this
feature together with an unsupported package manager backend
results in a warning to the user
2017-02-01 11:14:32 +01:00
Marcus Schäfer
b3dc48d241
Syntax change for Importing one module 2016-06-15 12:57:00 +02:00
Marcus Schäfer
d1da7435ef debootstrap errors deserve their own exception 2016-06-15 10:19:04 +02:00
Marcus Schäfer
079a50df5b
Integrate python improvement suggestions 2016-06-09 16:56:31 +02:00
Marcus Schäfer
4d531535ac debootstrap installs apt-get
Don't add the specified package manager to the list of
bootstrap packages for apt-get, because that is covered by
debootstrap
2016-06-08 20:41:09 +02:00
Marcus Schäfer
a5b568915c Allow additional bootstrap packages for apt-get 2016-06-08 20:41:09 +02:00
Marcus Schäfer
42c9a84992 Don't run apt-get with mounted /dev 2016-06-08 20:41:09 +02:00
Marcus Schäfer
e16baa00dd Added PackageManagerApt class
Support installation/removal of deb packages
Related to #37
2016-06-08 20:41:09 +02:00