1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-05 12:45:46 +01:00

298 Commits

Author SHA1 Message Date
Michael Schroeder
ac6a1e10fe Make doshowproof a bit more readable 2026-02-03 13:04:27 +01:00
Michael Schroeder
709092ef52 luasolv: delete debug line 2024-03-27 14:05:11 +01:00
Michael Schroeder
ff35f9ebee Add stringification for the solutionelement class
Also globalize some renames.
2024-03-27 11:40:18 +01:00
Michael Schroeder
0d6e498aa0 Add lua bindings 2024-03-25 12:39:22 +01:00
Michael Schroeder
86c54ea5c7 Use solver_problem2str() convenience function in the demo solver 2022-12-21 14:18:16 +01:00
Michael Schroeder
685a7c850a Move replace solution types from the bindings to the library
This adds two new functions:

solver_all_solutionelements()
return a queue with (type,p,rp) solution triplets.

solver_solutionelementtype2str()
this is similar to solver_solutionelement2str(), but also takes a
type parameter so that the replace types result in different strings.

Make use of the two functions in the example solver to
show how they work.
2022-12-21 14:06:16 +01:00
Michael Schroeder
a030365d79 Fix typo in comment 2022-12-21 14:06:15 +01:00
Michael Schroeder
3967bf1abd solv: Do not print duchanges if there is no change 2022-12-13 11:22:29 +01:00
Michael Schroeder
103f54b5f8 Add alternative reporting
Also make pysolv work again with newer rpm versions. We need
to rewind the file descriptor int the RPMCALLBACK_INST_OPEN_FILE
callback as rpm now opens the file twice.
2022-12-12 16:18:43 +01:00
Michael Schroeder
a72dd720a0 Add proof reporting to the 'solv' example tool 2022-12-08 11:53:12 +01:00
Michael Schroeder
8f5a344b82 Add Decisionlistset object to the bindings to support merged decisions
Also make solvidset2str available.
2022-12-08 11:31:33 +01:00
Michael Schroeder
6d9ba1ec05 Support decisions in the bindings 2022-12-07 13:50:53 +01:00
Michael Schroeder
de84237336 Implement getting the releasever from the base product on SUSE 2022-09-15 16:11:38 +02:00
Ludwig Nussel
af500cd09d solv: add plaindir repo support 2022-07-13 16:17:25 +02:00
Igor Gnatenko
a8a2de8947 build: use GNUInstallDirs
Fixes: #128
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2019-03-30 18:08:22 +01:00
Jaroslav Rohel
bbfce7d100 Fix: Be sure that NONBLOCK is set 2018-12-11 13:33:52 +01:00
Michael Schroeder
0b3e2bcce9 tclsolv: Adapt to Selection-flags change
Should have been in commit c6b300573f
2018-12-07 15:03:14 +01:00
Michael Schroeder
c6b300573f Bindings: make Selection-flags an attribute
Incompatible API change! I hope this doesn't bite too many
bindings users. But better late than never, having a flags()
function does not make much sense.
2018-10-24 10:23:37 +02:00
Michael Schroeder
532e080d92 Incompatible ABI change: change transaction_calc_installsizechange from int to long long 2018-10-22 14:46:17 +02:00
Michael Schroeder
9f58a14bf6 Incompatible ABI change: change diskusage from int to long long
The diskusage is in kilobytes anyway, but this should make things
more future proof.
2018-10-22 11:15:01 +02:00
Michael Schroeder
321bb2ac1b Add selection_make_matchsolvable and selection_make_matchsolvablelist
This is like pool_whatmatchessolvable, but works on a selection.
The advantage is that it supports filtering.
2018-10-05 14:41:20 +02:00
Michael Schroeder
692bd3e7f6 Improve alldeps code in example solver 2018-10-05 13:58:56 +02:00
Michael Schroeder
0416f0d488 Add pool_whatmatchessolvable() function to match against the provides of a solvable 2018-10-04 17:22:43 +02:00
Michael Schroeder
32abb144db Also add autopatterns for the system repo
Should have been in commit 276e7586cc
2018-09-07 16:26:37 +02:00
Michael Schroeder
1c84dd042f Adapt for changed pubring naming in gpg 2018-07-18 21:52:17 +02:00
Michael Schroeder
4a8434ddbe Move old repo2solv.sh into examples 2018-07-16 21:56:10 +02:00
Michael Schroeder
c925f44bde Improve file conflict output in example solver 2018-02-12 14:59:14 +01:00
Michael Schroeder
b46e133115 Add pool_set_whatprovides function
Set an entry in the whatprovides table. Also make the pool methods
set_namespaceproviders and flush_namespaceproviders available in
the bindings.
2018-01-18 13:22:36 +01:00
Michael Schroeder
6a545e122c Simplify code a bit 2017-11-16 14:18:27 +01:00
Michael Schroeder
276e7586cc Call repo_add_autopattern before writing the repo
Otherwise the extension will never have the correct size if
the repo does not get rewritten because of missing file provides.
2017-11-08 15:14:12 +01:00
Michael Schroeder
f9be637db0 Add --testcase option to example solver 2017-10-04 10:58:16 +02:00
Neal Gompa
1773649652 Switch solv to read rpm-md repos on Mageia
Mageia is using libsolv with DNF and RPM-MD repositories, thus
the solv tool should be using our RPM-MD repository configuration.
2017-08-06 00:17:23 -04:00
Neal Gompa
f96788c665 Replace 'redhat-release' with generic 'system-release'
fedora-release and mageia-release offer generic 'system-release'
Provides that can be used to determine the release version of the
distribution. Derivatives of Fedora (including RHEL) also offer this
generic capability in their distribution release packages.
2017-08-06 00:06:58 -04:00
Neal Gompa
de2991f836 Add missing Mageia definitions
Mageia's RPM stack mirrors Fedora's, so libsolv's definitions need
to reflect this.
2017-08-06 00:05:15 -04:00
Michael Schroeder
ac5683a6c4 repoinfo_download.c: Add FEDORA ifdef 2017-07-24 15:04:59 +02:00
Denis Ollier
62ebd42874 Fix compilation warnings
examples/solv/repoinfo_download.c:95:18: warning: implicit declaration of function 'yum_substitute' [-Wimplicit-function-declaration]
        char *b = yum_substitute(cinfo->repo->pool, cinfo->baseurl);
                  ^~~~~~~~~~~~~~
examples/solv/repoinfo_download.c:95:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
2017-07-01 08:39:15 +02:00
Michael Schroeder
35381634f2 Add extend_to_repo calls in examples
Those are needed if the repo is not written to disk. Otherwise,
the repodata does not contain any solvable and thus the configured
extensions do not work.
2017-05-30 14:45:17 +02:00
Michael Schroeder
b44ad4c84b solv: add autopattern right after the repo has been read
Otherwise we get holes and other nasty things.
2016-11-18 13:52:12 +01:00
Michael Schroeder
d7a25c0691 Get rid of gcc-6 warnings 2016-09-02 16:26:10 +02:00
Atri Bhattacharya
19a561ded2 Fix example to work with new and legacy appdata dirs. 2016-07-20 20:17:01 +02:00
Michael Schroeder
f3737bb6ae Improve alternatives listing in example solver 2016-05-20 15:00:19 +02:00
Michael Schroeder
28ee43ed1a We always need the rerunsolver label in the example solver 2016-05-17 13:42:19 +02:00
Michael Schroeder
e48fbd2121 Support alternative disfavor in example solver
Just for testing purposes...
2016-05-04 11:11:23 +02:00
Michael Schroeder
1c8f75e7c1 Show alternatives in example solver 2016-05-03 17:41:09 +02:00
Michael Schroeder
a5cc7c5488 Add pool_whatcontainsdep, selection_make_containsdep, and SELECTION_MATCH_DEPSTR 2016-04-22 15:40:32 +02:00
Michael Schroeder
ac74fed84e Fix build on Mageia
Patch by Thierry Vignaud <thierry.vignaud@gmail.com>
2015-10-05 11:45:16 +02:00
Jackson Isaac
b686590ddf puts $op instead of $p in Transaction summary.
Print $op in the second part of puts when the package is to be
upgraded or downgraded. Previously same package info was been
printed.
2015-10-02 12:20:48 +05:30
Michael Schroeder
bc53e54920 solv: refactor find_repo 2015-09-14 15:27:07 +02:00
Michael Schroeder
5d5aff5662 move yum_substitute data freeing to free_repoinfos call 2015-09-14 15:06:58 +02:00
Michael Schroeder
f5ba19e270 split solv C example into multiple files 2015-09-14 12:18:09 +02:00