FEDORA-2018-4dcfd1d6ce created by ignatenkobrain 2 years ago for Fedora 28
stable

Few fixes and enhancements from upstream

How to install

sudo dnf upgrade --advisory=FEDORA-2018-4dcfd1d6ce

This update has been submitted for testing by ignatenkobrain.

2 years ago

This update has been pushed to testing.

2 years ago
User Icon dhgutteridge commented & provided feedback 2 years ago
karma

No regressions noted.

User Icon cairo provided feedback 2 years ago
karma

This update has been submitted for batched by bodhi.

2 years ago

This update has been submitted for stable by bodhi.

2 years ago

Adding my brief manual functional test screen log of the newly exposed python bindings:

[vagrant@pulp3 devel]$ ipython
Python 2.7.15 (default, May 15 2018, 15:37:31)
Type "copyright", "credits" or "license" for more information.

IPython 5.5.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import solv

In [2]: pool = solv.Pool()

In [3]: repo = pool.add_repo('fiz')

In [4]: solvable = repo.add_solvable()

In [5]: solvable.name = 'foo'

In [6]: solvable.evr = '0:1-2'

In [7]: solvable.arch = 'noarch'

In [8]: solvable
Out[8]: <Solvable #2 foo-0:1-2.noarch>

In [9]: repodata = repo.add_repodata()

In [10]: dirid = repodata.str2dir('/foo', create=True)

In [11]: dirid
Out[11]: 3

In [12]: repodata.add_dirstr(solvable.id, solv.SOLVABLE_FILELIST, dirid, 'bar')

In [13]: repo.internalize()

In [14]: pool.setarch()

In [15]: pool.addfileprovides()

In [16]: pool.createwhatprovides()

In [17]: selection = pool.select('/foo/bar', solv.Selection.SELECTION_FILELIST)

In [18]: selection
Out[18]: <Selection foo-0:1-2.noarch [noautoset]>

In [19]: selection.isempty()
Out[19]: False

In [20]: jobs = selection.jobs(solv.Job.SOLVER_INSTALL)

In [21]: solver = pool.Solver()

In [22]: problems = solver.solve(jobs)

In [23]: problems
Out[23]: []

In [24]: transaction = solver.transaction()

In [25]: transaction
Out[25]: <solv.Transaction; proxy of <Swig Object of type 'Transaction *' at 0x7fa8b41a9090> >

In [26]: transaction.newsolvables()
Out[26]: [<Solvable #2 foo-0:1-2.noarch>]

In [27]: transaction.newpackages()
Out[27]: [<Solvable #2 foo-0:1-2.noarch>]

In [28]: solv.__package__

In [29]: solv.__file__
Out[29]: '/usr/lib64/python2.7/site-packages/solv.pyc'


[1]+  Stopped                 ipython
[vagrant@pulp3 devel]$ rpm -q libsolv
libsolv-0.6.34-3.fc28.x86_64
[vagrant@pulp3 devel]$ rpm -q python2-solv
python2-solv-0.6.34-3.fc28.x86_64
[vagrant@pulp3 devel]$

karma: +1

This update has been pushed to stable.

2 years ago

Please login to add feedback.

Metadata
Type
enhancement
Karma
2
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
2
Stable by Time
disabled
Dates
submitted
2 years ago
in testing
2 years ago
in stable
2 years ago
BZ#1596285 Update libsolv to expose repodata_dir2str, repodata_str2dir, repodata_add_dirstr in the Python binding
0
0

Automated Test Results