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
7ea7526604 remove "ref" argument from add_rpmdb() in the bindings
This is done mainly for consistency reasons (plus nobody
used the ref argument anyway). When we need the ref back,
we'll add a new method.
2013-04-23 10:54:00 +02:00
Michael Schroeder
83145da796 split ugly pubkey handling into separate repo_rpmdb_pubkey.c 2013-04-15 17:57:43 +02:00
Michael Schroeder
52dcb04b44 convert perror() and fprintf() calls to pool_error() 2013-04-15 14:46:47 +02:00
Michael Schroeder
1da63a9e70 add pool parameter to rpm_state_create so that we can use pool_error for error reporting 2013-04-15 14:19:02 +02:00
Michael Schroeder
1394005510 support checking for directory aliases when searching for file conflicts 2013-04-12 16:46:08 +02:00
Michael Schroeder
a54b5750cd Reimplement state handling in rpm_by functions
We now have rpm_state_create and rpm_state_free to create/free
the state. API change, but should be pretty internal.
2013-04-10 12:52:08 +02:00
Michael Schroeder
fb120cfd0f refactor solv demo a bit 2013-04-08 13:29:04 +02:00
Michael Schroeder
2bb9ff59dd fix bugs in fileconflicts code and prepare for aliased dirs
Breaks API but that should not be a problem as noone seems to
use the function yet.
2013-04-08 11:36:43 +02:00
Ingo Weinhold
4e4cea429d Use futimens() instead of futimes()
futimens() is POSIX, futimes() isn't.
2013-03-30 15:51:21 +00:00
Ingo Weinhold
f063fd2aa8 Improve C89 compliance
Make sure variables are declared at the beginning of a block.
2013-03-30 15:51:21 +00:00
Ingo Weinhold
0956fe2ddc Define SYSTEM_LIBRARIES in main CMakeLists.txt
* 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-30 14:32:57 +00:00
Andreas Schwab
4fdcd20f51 Fix misuses of memset
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-26 10:11:04 +01:00
Michael Schroeder
646a92ed48 rename "NOOBSOLETES" to "MULTIVERSION"
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-03-22 16:42:44 +01:00
Michael Schroeder
4604545353 reuse solver in examples 2013-02-04 17:41:31 +01:00
Michael Schroeder
de5c77d4f4 fix 'solv patch' command 2013-01-14 15:57:52 +01:00
Michael Schroeder
6d567daed9 implement special install/erase namespace provides hack 2012-12-10 19:18:31 +01:00
Michael Schroeder
47e0794d2d cosmetics: print number of problems in examples 2012-12-06 19:43:56 +01:00
Michael Schroeder
56f5e60ce7 Add Dep.Rel() method and a couple of Selection constructors 2012-12-05 13:31:53 +01:00
Michael Schroeder
9d3f22380a rename selection_limit to selection_filter, add flags to make selection_make more flexible 2012-12-05 11:25:10 +01:00
Michael Schroeder
3e809fce1e support cleandeps in targeted up/dup cases, add tests 2012-12-04 14:00:34 +01:00
Michael Schroeder
745ca15b2a cleanup example code 2012-11-27 15:24:40 +01:00
Michael Schroeder
a875307836 xfileno doesn't exist anymore, use fileno() instead 2012-11-27 13:32:58 +01:00
Michael Schroeder
edcec4ecdf use a Selection for the 'search' command so that the repofilter works 2012-11-27 11:56:19 +01:00
Michael Schroeder
683e50ed13 Selection: rename addsimple method to add_raw in the bindings 2012-11-27 11:33:11 +01:00
Michael Schroeder
f6d2b5c95e Already use LOCALPOOL when converting filelist/language extensions
Seems to work and helps to keep the main pool small.
2012-11-26 14:26:02 +01:00
Michael Schroeder
eef5896008 support medianr in lookup_deltalocation, change lookup_location to return medianr 0 if the media number was not set 2012-11-23 14:27:02 +01:00
Michael Schroeder
89125cc413 use correct file pointer when checking the debian release file's sig 2012-11-23 13:20:41 +01:00
Michael Schroeder
20ba2e3948 use "isemptyupdate" method to check for updates with no matching installed package 2012-11-21 16:21:48 +01:00
Michael Schroeder
5a7ca4eb23 implement '--best' in solv demo 2012-11-19 17:32:07 +01:00
Michael Schroeder
ff2c015c82 don't write incomplete repos in "solv", like with py/rb/p5solv 2012-11-16 12:00:09 +01:00
Michael Schroeder
cb0aa2685e implement update to specific update targets 2012-11-15 17:27:59 +01:00
Michael Schroeder
4e29b4d2fa make 'solv dup' use the right mode again 2012-11-15 11:46:13 +01:00
Michael Schroeder
5f153e320c rename repodata_delete to repodata_set_deleted, add repo_set_deleted and solvable_set_deleted 2012-11-06 12:16:35 +01:00
Michael Schroeder
b7916224c6 more swig trickery: add a "DepId" type that can take a Dep pointer or an Id 2012-11-05 15:47:15 +01:00
Michael Schroeder
60db387f9f make FILE objects autoclose the fd in the destructor
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-02 18:38:12 +01:00
Michael Schroeder
26f2f1fe6e make pool.setarch() do the right thing 2012-11-02 15:27:53 +01:00
Michael Schroeder
01226ce8a0 add pool_lookup_deltalocation helper so we can change the way the location is encoded 2012-11-02 15:01:53 +01:00
Michael Schroeder
85f694ba7a get rid of the ugly load_if_changed method 2012-11-02 14:32:27 +01:00
Michael Schroeder
5839b7d92c small cleanup: move incomplete check into writecachedrepo 2012-11-02 14:05:44 +01:00
Michael Schroeder
a6db1af2cd add SELECTION_WITH_SOURCE, rename SELECTION_SOURCE to SELECTION_SOURCE_ONLY 2012-11-02 11:41:43 +01:00
Michael Schroeder
f717c3042c use susetags data dir for susetags deltas 2012-10-30 11:39:41 +01:00
Michael Schroeder
48eaa7cda8 beautify examples a bit 2012-10-30 11:27:34 +01:00
Michael Schroeder
50ada341c2 unify cookie generation for solv/pysolv/rbsolv/p5solv 2012-10-29 15:55:57 +01:00
Michael Schroeder
d16e24a7df fix autorefresh flag in pysolv, support metadata_expire == -1 like in solv.c 2012-10-29 14:26:10 +01:00
Michael Schroeder
11477521f7 set SOLVER_SETREPO and SOLVER_SETVENDOR flags in repo limiter 2012-10-29 14:02:06 +01:00
Michael Schroeder
68c7ba0920 add pool_job2solvables and selection_solvables 2012-10-26 14:42:13 +02:00
Michael Schroeder
e4baafbc3b - retabify (untabify for pysolv) 2012-10-25 18:55:39 +02:00
Michael Schroeder
264d9fbb06 generalize matching code from examples/solv.c to src/selection.c
Adapt the examples to use the new mechanism. This is probably
not the final version of the interface, so handle with care.
2012-10-25 16:55:11 +02:00
Michael Schroeder
9db24cdc0b example/solv: support all compression types 2012-10-24 16:39:14 +02:00
Michael Schroeder
23b8cd4339 examples/solv: factor out downloadchecksig function 2012-10-23 14:36:25 +02:00