1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-07 09:46:22 +01:00
Commit Graph

233 Commits

Author SHA1 Message Date
Michael Schroeder
eaed4ac011 solv example: add autopackages on SUSE systems 2013-12-06 15:36:11 +01:00
Michael Schroeder
09e3108d36 pysolv: more python3 adaptions 2013-11-22 11:25:04 +01:00
Michael Schroeder
f3a5e22f19 port to python3 2013-11-19 16:18:41 +01:00
Michael Schroeder
1aed650c81 Create a real type for a checksum handle
Should be completely compatible, as the handle
was of type "void *" before.
2013-11-14 16:35:09 +01:00
Michael Schroeder
f9d4dbaf43 do not rewrite the command line repo 2013-10-31 13:58:12 +01:00
Michael Schroeder
f0180798f1 solv example: always internalize the "installed" repo, support '-i' option 2013-10-31 13:52:09 +01:00
Michael Schroeder
fd8b8acd06 support ADD_WITH_SUBKEYS/ADD_MULTIPLE_PUBKEYS/ADD_WITH_KEYSIGNATURES 2013-10-28 19:18:37 +01:00
Michael Schroeder
347e247833 remove trailing whitespace 2013-10-16 18:33:01 +02:00
Michael Schroeder
9a49a03931 make 'solv info' work with command line packages 2013-10-16 16:13:33 +02:00
Michael Schroeder
1db11dd84a parse appdata in solv example
Also support a '-d' option to increase the debug level.
2013-10-14 17:38:23 +02:00
Michael Schroeder
0352e80c8c add --type and --arch filter support 2013-10-04 16:44:38 +02:00
Michael Schroeder
5752066d07 bindings: add stringification shortcut for problems
Also fixes bugs in the rbsolv example.
2013-09-20 15:15:59 +02:00
Michael Schroeder
75941c2115 rename selection_make_deps to selection_make_matchdeps, add marker support
Also add pool_intersect_evrs.
2013-09-09 12:07:29 +02:00
Michael Schroeder
813ed1da55 add pool_whatmatchesdep and selection_make_deps to query for packages intersecting a dependency 2013-09-04 18:54:57 +02:00
Michael Schroeder
2007c85d43 solv example: use gpgv instead of gpg to verify sigs 2013-08-28 17:24:47 +02:00
Michael Schroeder
e946434a70 oops, revert unwanted commit chunks 2013-08-23 18:07:53 +02:00
Michael Schroeder
8c5a5fc0be solv_parse_sig: clear return values at the beginning 2013-08-23 18:06:04 +02:00
Michael Schroeder
27c054b487 rename rpmdb_pubkey to pubkey 2013-07-25 17:39:15 +02:00
Michael Schroeder
c4490a3492 pysolv: check applydeltarpm exit status 2013-06-17 14:34:01 +02:00
Michael Schroeder
cb3836353d bindings: add pool.errstr, make add_rpm/... return Solvable objects 2013-06-14 11:50:12 +02:00
Michael Schroeder
774880183d bindings consistency: rename new/keptpackages to new/keptsolvables
We keep the old methods available for now to be backward compatible.
2013-06-07 11:14:34 +02:00
Michael Schroeder
e46864fb28 p5solv: missed one string in bareword translation 2013-06-05 19:19:23 +02:00
Michael Schroeder
788d830af9 ok, no local in current perl code. Also, use ls instead of li as short form of list 2013-06-05 19:15:09 +02:00
Michael Schroeder
65fc23b007 adapt to modern perl and use barewords for hash keys 2013-06-05 18:44:30 +02:00
Michael Schroeder
794dd7269b Apply first part of Thierry's patches 2013-06-05 15:37:33 +02:00
Michael Schroeder
4a20affa12 solv: create cache in user's home dir if not run as root 2013-06-05 14:55:01 +02:00
Michael Schroeder
9156031dfe missed a change 2013-06-04 19:47:06 +02:00
Michael Schroeder
35fe9fc7be Make 'dep' attribute in Ruleinfo return an object, add fromstr/tostr attributes to TransactionClass and remove old fromdep()/todep() methods 2013-06-04 17:55:34 +02:00
Michael Schroeder
bcd77f2fef add POOL_FLAG_ADDFILEPROVIDESFILTERED option to make pool_addfileprovides only add files in the standard locations
Non-standard files are searched lazyly on demand.
2013-06-03 15:37:13 +02:00
Michael Schroeder
0424ef2001 allow SOLVID_META queries through SOLVID_POS
Add 'meta' attribute in repo bindings and get rid of no longer neededed
lookup methods.
2013-05-17 16:32:44 +02:00
Michael Schroeder
7399ad11f4 pysolv: do not import from solv 2013-05-15 18:30:10 +02:00
Michael Schroeder
cce3d233cc allow ls for list command 2013-04-24 16:19:19 +02:00
Michael Schroeder
ceef7a0a62 use add_rpmdb_reffp in examples 2013-04-24 12:20:50 +02:00
Michael Schroeder
b524d2b343 add SOLVER_TRANSACTION_OBSOLETE_IS_UPGRADE helper flag
Many users don't want to show the obsoletes as extra part of the
classification. Only makes sense when SOLVER_TRANSACTION_SHOW_OBSOLETES
is also specified.
2013-04-24 11:53:00 +02:00
Michael Schroeder
843dc7e190 add repo_add_rpmdb_reffp to easily add rpmdb content when there is an old solv file 2013-04-23 15:18:20 +02:00
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