Commit Graph

13 Commits

Author SHA1 Message Date
Marcus Schäfer
b421b8d621
Fixed import of solv module 2017-03-07 13:15:44 +01:00
Marcus Schäfer
1a5257a0e8 Prevent use of project relative import statements
For details on the motivation of this change please visit:
https://wiki.python.org/moin/FutureProofPython
2017-03-07 11:23:37 +01:00
Marcus Schäfer
fc11291576
Support package capabilities in sat solver
A solver operation can receive a package or pattern name but
a capability name was considered a package name and failed
to resolve. This commit fixes the solver operation with
regards to package capabilities
2017-03-06 12:03:03 +01:00
Marcus Schäfer
3db5a1a606 Add support for repository credentials
The package and solver repository classes did not provide an
interface to deal with repository credentials. This commit
add support for the zypper package manager and the generic
urlopen based download method of the solver class. This
Fixes #246
2017-03-02 15:35:53 +01:00
Marcus Schäfer
c6c360c6c5
Fixed create_repository_solvable
If the solvable already exists, the method should return it
2017-02-09 11:37:38 +01:00
Marcus Schäfer
119e96dc8f Added Sat solver class
Added implementation for Solver class based on the SUSE
libsolv C library and the solv python binding
2016-11-21 12:02:01 +01:00
Marcus Schäfer
3983f140a4
Update doc string for download_from_repository
The doc string for this method contained a mime string
which is spuriously validated by the sphinx url checker.
This commit rewords the text in a way that the checker
is happy again
2016-11-10 15:45:24 +01:00
Marcus Schäfer
cdac18a92c Implemented SolverRepositoryRpmDir
Add support for local rpm-dir repositories
2016-11-08 18:17:51 +01:00
Marcus Schäfer
0e733c29a9 Implemented SolverRepositoryRpmMd
Add support for rpm-md repository types
2016-11-08 18:17:51 +01:00
Marcus Schäfer
2c14ee71de Implemented SolverRepositorySUSE
Add support for SUSE online and media repository types
2016-11-08 18:17:51 +01:00
Marcus Schäfer
ebeb43eea6 Implement SolverRepositoryBase
Base class and interface for building a SAT solvable from
a given repository
2016-11-08 18:17:51 +01:00
Marcus Schäfer
2549437b4d Add repo_type info to Uri class
This allows to eliminate the repo_type from the paramter list
of the SolverRepository class, which then only needs an instance
of Uri
2016-11-08 18:15:38 +01:00
Marcus Schäfer
16fdb5d978 Initial structure to support SAT solvables
A SAT solvable can be used together with python-solv to implement
performant package solving tasks. This is the initial structure
to allow the creation of such solvable files from specified
repositories. We will support the repo types yast2, rpm-md and
rpm-dir in the first place.
2016-11-08 18:15:37 +01:00