summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)AuthorFilesLines
2013-04-10Reimplement state handling in rpm_by functionsMichael Schroeder1-16/+13
We now have rpm_state_create and rpm_state_free to create/free the state. API change, but should be pretty internal.
2013-04-08refactor solv demo a bitMichael Schroeder1-144/+187
2013-04-08fix bugs in fileconflicts code and prepare for aliased dirsMichael Schroeder1-2/+2
Breaks API but that should not be a problem as noone seems to use the function yet.
2013-03-30Use futimens() instead of futimes()Ingo Weinhold1-1/+1
futimens() is POSIX, futimes() isn't.
2013-03-30Improve C89 complianceIngo Weinhold1-2/+4
Make sure variables are declared at the beginning of a block.
2013-03-30Define SYSTEM_LIBRARIES in main CMakeLists.txtIngo Weinhold1-12/+0
* There were identical SYSTEM_LIBRARIES definitions in several CMakeLists.txt files (well almost identical -- some still checked for DEBIAN instead of ENABLE_RPMDB). Now it's defined in the main CMakeLists.txt. * Remove --as-needed from CMAKE_C_FLAGS and add it to SYSTEM_LIBRARIES. It isn't a compiler flag and older gcc's issue a warning when encountering it on a compile line.
2013-03-26Fix misuses of memsetAndreas Schwab1-3/+3
src/md5.c: In function 'sat_MD5_Final': src/md5.c:269:23: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] memset(ctx, 0, sizeof(ctx)); ^ examples/solv.c: In function 'read_repos': examples/solv.c:1616:27: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to remove the addressof? [-Werror=sizeof-pointer-memaccess] memset(&stb, 0, sizeof(&stb)); ^
2013-03-22rename "NOOBSOLETES" to "MULTIVERSION"Michael Schroeder1-8/+11
The name was always not very fitting, but newer rpm versions do look at the obsoletes and just don't remove packages with the same name, which makes the old name even worse. So rename to "multiversion", which seems to be what many package managers use anyway.
2013-02-04reuse solver in examplesMichael Schroeder4-23/+21
2013-01-14fix 'solv patch' commandMichael Schroeder1-1/+1
2012-12-10implement special install/erase namespace provides hackMichael Schroeder1-0/+17
2012-12-06cosmetics: print number of problems in examplesMichael Schroeder3-3/+3
2012-12-05Add Dep.Rel() method and a couple of Selection constructorsMichael Schroeder3-8/+5
2012-12-05rename selection_limit to selection_filter, add flags to make selection_make ↵Michael Schroeder4-17/+21
more flexible
2012-12-04support cleandeps in targeted up/dup cases, add testsMichael Schroeder1-1/+7
2012-11-27cleanup example codeMichael Schroeder3-532/+531
2012-11-27xfileno doesn't exist anymore, use fileno() insteadMichael Schroeder1-7/+7
2012-11-27use a Selection for the 'search' command so that the repofilter worksMichael Schroeder2-16/+23
2012-11-27Selection: rename addsimple method to add_raw in the bindingsMichael Schroeder3-4/+4
2012-11-26Already use LOCALPOOL when converting filelist/language extensionsMichael Schroeder4-15/+34
Seems to work and helps to keep the main pool small.
2012-11-23support medianr in lookup_deltalocation, change lookup_location to return ↵Michael Schroeder2-2/+2
medianr 0 if the media number was not set
2012-11-23use correct file pointer when checking the debian release file's sigMichael Schroeder1-1/+1
2012-11-21use "isemptyupdate" method to check for updates with no matching installed ↵Michael Schroeder3-14/+7
package
2012-11-19implement '--best' in solv demoMichael Schroeder1-0/+10
2012-11-16don't write incomplete repos in "solv", like with py/rb/p5solvMichael Schroeder4-30/+34
2012-11-15implement update to specific update targetsMichael Schroeder1-14/+2
2012-11-15make 'solv dup' use the right mode againMichael Schroeder1-1/+1
2012-11-06rename repodata_delete to repodata_set_deleted, add repo_set_deleted and ↵Michael Schroeder1-1/+1
solvable_set_deleted
2012-11-05more swig trickery: add a "DepId" type that can take a Dep pointer or an IdMichael Schroeder3-6/+6
2012-11-02make FILE objects autoclose the fd in the destructorMichael Schroeder3-66/+43
Makes the code much nicer for perl/python, does not help much for ruby. Also, we have to do a glibc hack to implement a close method needed for ruby. Sigh.
2012-11-02make pool.setarch() do the right thingMichael Schroeder3-5/+3
2012-11-02add pool_lookup_deltalocation helper so we can change the way the location ↵Michael Schroeder2-8/+7
is encoded
2012-11-02get rid of the ugly load_if_changed methodMichael Schroeder3-27/+24
2012-11-02small cleanup: move incomplete check into writecachedrepoMichael Schroeder3-9/+11
2012-11-02add SELECTION_WITH_SOURCE, rename SELECTION_SOURCE to SELECTION_SOURCE_ONLYMichael Schroeder1-0/+2
2012-10-30use susetags data dir for susetags deltasMichael Schroeder2-1/+7
2012-10-30beautify examples a bitMichael Schroeder3-48/+59
2012-10-29unify cookie generation for solv/pysolv/rbsolv/p5solvMichael Schroeder4-54/+45
2012-10-29fix autorefresh flag in pysolv, support metadata_expire == -1 like in solv.cMichael Schroeder3-5/+4
2012-10-29set SOLVER_SETREPO and SOLVER_SETVENDOR flags in repo limiterMichael Schroeder2-2/+3
2012-10-26add pool_job2solvables and selection_solvablesMichael Schroeder1-3/+8
2012-10-25- retabify (untabify for pysolv)Michael Schroeder3-111/+111
2012-10-25generalize matching code from examples/solv.c to src/selection.cMichael Schroeder4-831/+149
Adapt the examples to use the new mechanism. This is probably not the final version of the interface, so handle with care.
2012-10-24example/solv: support all compression typesMichael Schroeder1-6/+20
2012-10-23examples/solv: factor out downloadchecksig functionMichael Schroeder1-67/+43
2012-10-23fix build on debianMichael Schroeder1-1/+1
2012-10-23implement pool_set_rootdir/REPO_USE_ROOTDIR instead of passing a rootdir to ↵Michael Schroeder1-38/+54
various functions. Breaks the interface a bit, sorry. The new way seems to be much cleaner, though. Extra apologies to Nate Skulic for removing his add_rpmdb_root method one day after adding it.
2012-10-08only call add_products if the method existsMichael Schroeder3-3/+8
2012-10-08add repodata_set_sourcepkg and solvable_lookup_sourcepkg, fix ↵Michael Schroeder1-1/+1
solvable_get_location return type
2012-08-24cosmetic: fix possibly uninitialized variable warning in solv.c.Ales Kozumplik1-1/+1