platform/upstream/libsolv.git
12 years agoreduce memory by splitting the pages array into two mapped_at and file_pages arrays
Michael Schroeder [Wed, 28 Nov 2012 14:31:09 +0000 (15:31 +0100)]
reduce memory by splitting the pages array into two mapped_at and file_pages arrays

12 years agosimplily repopage handling quite a bit
Michael Schroeder [Wed, 28 Nov 2012 13:31:34 +0000 (14:31 +0100)]
simplily repopage handling quite a bit

No more searching for the best place, a much easier algorithm
seems to be better than the complex search.

12 years agooptimize repopagestore_load_page_range
Michael Schroeder [Tue, 27 Nov 2012 18:02:05 +0000 (19:02 +0100)]
optimize repopagestore_load_page_range

12 years agocleanup example code
Michael Schroeder [Tue, 27 Nov 2012 14:24:40 +0000 (15:24 +0100)]
cleanup example code

12 years agofix EXTEND calls in perl bindings
Michael Schroeder [Tue, 27 Nov 2012 14:23:40 +0000 (15:23 +0100)]
fix EXTEND calls in perl bindings

12 years agoxfileno doesn't exist anymore, use fileno() instead
Michael Schroeder [Tue, 27 Nov 2012 12:32:58 +0000 (13:32 +0100)]
xfileno doesn't exist anymore, use fileno() instead

12 years agouse a Selection for the 'search' command so that the repofilter works
Michael Schroeder [Tue, 27 Nov 2012 10:56:19 +0000 (11:56 +0100)]
use a Selection for the 'search' command so that the repofilter works

12 years agoSelection: rename addsimple method to add_raw in the bindings
Michael Schroeder [Tue, 27 Nov 2012 10:33:11 +0000 (11:33 +0100)]
Selection: rename addsimple method to add_raw in the bindings

12 years agomake FOR_RULELITERALS safe against whatprovides realloc
Michael Schroeder [Tue, 27 Nov 2012 10:26:32 +0000 (11:26 +0100)]
make FOR_RULELITERALS safe against whatprovides realloc

Should only make iterating a tiny bit slower, but is more safe and
brings the macro in line with the other iterater macros.

12 years agoAlready use LOCALPOOL when converting filelist/language extensions
Michael Schroeder [Mon, 26 Nov 2012 13:26:02 +0000 (14:26 +0100)]
Already use LOCALPOOL when converting filelist/language extensions

Seems to work and helps to keep the main pool small.

12 years ago- save memory in localpool case
Michael Schroeder [Mon, 26 Nov 2012 12:24:08 +0000 (13:24 +0100)]
- save memory in localpool case

We mis-use the old hashmask as indication if we have the correct blocking, as
we don't want to break ABI compat right now.

12 years agosupport medianr in lookup_deltalocation, change lookup_location to return medianr...
Michael Schroeder [Fri, 23 Nov 2012 13:27:02 +0000 (14:27 +0100)]
support medianr in lookup_deltalocation, change lookup_location to return medianr 0 if the media number was not set

12 years agobump version, add changes
Michael Schroeder [Fri, 23 Nov 2012 13:06:15 +0000 (14:06 +0100)]
bump version, add changes

12 years agouse correct file pointer when checking the debian release file's sig
Michael Schroeder [Fri, 23 Nov 2012 12:20:41 +0000 (13:20 +0100)]
use correct file pointer when checking the debian release file's sig

12 years agooptimize string handling in repo_add_solv a bit
Michael Schroeder [Fri, 23 Nov 2012 11:46:50 +0000 (12:46 +0100)]
optimize string handling in repo_add_solv a bit

12 years agomake sure we have at least id 0 and 1 in a local pool, also call the correct shrink...
Michael Schroeder [Thu, 22 Nov 2012 15:59:31 +0000 (16:59 +0100)]
make sure we have at least id 0 and 1 in a local pool, also call the correct shrink function so we can add new strings

12 years agomore cleanup
Michael Schroeder [Thu, 22 Nov 2012 15:02:59 +0000 (16:02 +0100)]
more cleanup

12 years agosmall code cleanups
Michael Schroeder [Thu, 22 Nov 2012 12:36:51 +0000 (13:36 +0100)]
small code cleanups

12 years agouse "isemptyupdate" method to check for updates with no matching installed package
Michael Schroeder [Wed, 21 Nov 2012 15:21:48 +0000 (16:21 +0100)]
use "isemptyupdate" method to check for updates with no matching installed package

12 years agosolver_samerule -> solver_rulecmp
Michael Schroeder [Tue, 20 Nov 2012 14:40:56 +0000 (15:40 +0100)]
solver_samerule -> solver_rulecmp

12 years agodo not add identical choice rules
Michael Schroeder [Tue, 20 Nov 2012 13:42:21 +0000 (14:42 +0100)]
do not add identical choice rules

12 years agomake FORCEBEST work with targeted up/dup
Michael Schroeder [Tue, 20 Nov 2012 13:06:08 +0000 (14:06 +0100)]
make FORCEBEST work with targeted up/dup

12 years agoimplement '--best' in solv demo
Michael Schroeder [Mon, 19 Nov 2012 16:32:07 +0000 (17:32 +0100)]
implement '--best' in solv demo

12 years agofix typo caught by testcase
Michael Schroeder [Mon, 19 Nov 2012 16:31:28 +0000 (17:31 +0100)]
fix typo caught by testcase

12 years agoimplement SOLVER_FORCRBEST for install/up/dup
Michael Schroeder [Mon, 19 Nov 2012 16:18:51 +0000 (17:18 +0100)]
implement SOLVER_FORCRBEST for install/up/dup

12 years agofix policy_is_illegal function. Hmm...
Michael Schroeder [Fri, 16 Nov 2012 16:45:34 +0000 (17:45 +0100)]
fix policy_is_illegal function. Hmm...

12 years agodo not reinstall identical packages in targeted update
Michael Schroeder [Fri, 16 Nov 2012 13:48:38 +0000 (14:48 +0100)]
do not reinstall identical packages in targeted update

12 years agodon't write incomplete repos in "solv", like with py/rb/p5solv
Michael Schroeder [Fri, 16 Nov 2012 11:00:09 +0000 (12:00 +0100)]
don't write incomplete repos in "solv", like with py/rb/p5solv

12 years agounify update targets list
Michael Schroeder [Fri, 16 Nov 2012 10:40:11 +0000 (11:40 +0100)]
unify update targets list

12 years agoimplement update to specific update targets
Michael Schroeder [Thu, 15 Nov 2012 16:27:59 +0000 (17:27 +0100)]
implement update to specific update targets

12 years agoimplement dup on single packages
Michael Schroeder [Thu, 15 Nov 2012 13:23:02 +0000 (14:23 +0100)]
implement dup on single packages

12 years agomake 'solv dup' use the right mode again
Michael Schroeder [Thu, 15 Nov 2012 10:46:13 +0000 (11:46 +0100)]
make 'solv dup' use the right mode again

12 years agoimprove magic epoch promotion code to work better when multiple epochs match
Michael Schroeder [Thu, 15 Nov 2012 10:39:19 +0000 (11:39 +0100)]
improve magic epoch promotion code to work better when multiple epochs match

12 years agoimplement magic epoch promotion for nevra selections
Michael Schroeder [Wed, 14 Nov 2012 18:20:04 +0000 (19:20 +0100)]
implement magic epoch promotion for nevra selections

12 years agofix rpmdbid handling in repo_unset and repo_set_num
Michael Schroeder [Tue, 13 Nov 2012 17:51:16 +0000 (18:51 +0100)]
fix rpmdbid handling in repo_unset and  repo_set_num

12 years agorefactor a bit
Michael Schroeder [Tue, 13 Nov 2012 14:06:24 +0000 (15:06 +0100)]
refactor a bit

12 years agosupport REPO_NO_LOCATION, rename "set_deleted" to the more clear "unset"
Michael Schroeder [Tue, 13 Nov 2012 09:24:00 +0000 (10:24 +0100)]
support REPO_NO_LOCATION, rename "set_deleted" to the more clear "unset"

12 years agoadd deb2solv for completeness
Michael Schroeder [Mon, 12 Nov 2012 14:45:31 +0000 (15:45 +0100)]
add deb2solv for completeness

12 years agofix stupid typo in repo_deb, specialize obsoletes instead of dropping them
Michael Schroeder [Mon, 12 Nov 2012 13:22:39 +0000 (14:22 +0100)]
fix stupid typo in repo_deb, specialize obsoletes instead of dropping them

12 years agofix licenses
Michael Schroeder [Tue, 6 Nov 2012 13:09:30 +0000 (14:09 +0100)]
fix licenses

12 years agoadd repodata_set_deltalocation and use it in the parsers
Michael Schroeder [Tue, 6 Nov 2012 12:47:27 +0000 (13:47 +0100)]
add repodata_set_deltalocation and use it in the parsers

12 years agorename repodata_delete to repodata_set_deleted, add repo_set_deleted and solvable_set...
Michael Schroeder [Tue, 6 Nov 2012 11:16:35 +0000 (12:16 +0100)]
rename repodata_delete to repodata_set_deleted, add repo_set_deleted and solvable_set_deleted

12 years agoadd generic Solvable.add_deparray method to bindings
Michael Schroeder [Mon, 5 Nov 2012 17:30:25 +0000 (18:30 +0100)]
add generic Solvable.add_deparray method to bindings

12 years agomore swig trickery: add a "DepId" type that can take a Dep pointer or an Id
Michael Schroeder [Mon, 5 Nov 2012 14:47:15 +0000 (15:47 +0100)]
more swig trickery: add a "DepId" type that can take a Dep pointer or an Id

12 years agodo some wild swig trickery instead of relying on undocumented glibc functions
Michael Schroeder [Mon, 5 Nov 2012 13:47:16 +0000 (14:47 +0100)]
do some wild swig trickery instead of relying on undocumented glibc functions

12 years agoAdd Solvable.Dataiterator constructor, add missing SEARCH_ definitions, add Datamatch...
Michael Schroeder [Mon, 5 Nov 2012 11:01:30 +0000 (12:01 +0100)]
Add Solvable.Dataiterator constructor, add missing SEARCH_ definitions, add Datamatch.__str__ method

Also autostringfy if SEARCH_FILES is used and there is no matcher.

12 years agomake FILE objects autoclose the fd in the destructor
Michael Schroeder [Fri, 2 Nov 2012 17:38:12 +0000 (18:38 +0100)]
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.

12 years agofix delta location suffix
Michael Schroeder [Fri, 2 Nov 2012 15:10:58 +0000 (16:10 +0100)]
fix delta location suffix

12 years agomake pool.setarch() do the right thing
Michael Schroeder [Fri, 2 Nov 2012 14:27:53 +0000 (15:27 +0100)]
make pool.setarch() do the right thing

12 years agoadd pool_lookup_deltalocation helper so we can change the way the location is encoded
Michael Schroeder [Fri, 2 Nov 2012 14:01:53 +0000 (15:01 +0100)]
add pool_lookup_deltalocation helper so we can change the way the location is encoded

12 years agoget rid of the ugly load_if_changed method
Michael Schroeder [Fri, 2 Nov 2012 13:32:27 +0000 (14:32 +0100)]
get rid of the ugly load_if_changed method

12 years agosmall cleanup: move incomplete check into writecachedrepo
Michael Schroeder [Fri, 2 Nov 2012 13:05:44 +0000 (14:05 +0100)]
small cleanup: move incomplete check into writecachedrepo

12 years agoadd SELECTION_WITH_SOURCE, rename SELECTION_SOURCE to SELECTION_SOURCE_ONLY
Michael Schroeder [Fri, 2 Nov 2012 10:41:43 +0000 (11:41 +0100)]
add SELECTION_WITH_SOURCE, rename SELECTION_SOURCE to SELECTION_SOURCE_ONLY

12 years agorename SELECTION_MAYBESRC to SELECTION_SOURCE, make it just select src/nosrc packages
Michael Schroeder [Wed, 31 Oct 2012 13:43:05 +0000 (14:43 +0100)]
rename SELECTION_MAYBESRC to SELECTION_SOURCE, make it just select src/nosrc packages

12 years agofix .src matching .src and .nosrc packages
Michael Schroeder [Wed, 31 Oct 2012 11:05:35 +0000 (12:05 +0100)]
fix .src matching .src and .nosrc packages

12 years agomake it possible to select src packages via .src or .nosrc suffixes
Michael Schroeder [Wed, 31 Oct 2012 10:38:30 +0000 (11:38 +0100)]
make it possible to select src packages via .src or .nosrc suffixes

12 years agomake marker handling in bindings more flexible
Michael Schroeder [Tue, 30 Oct 2012 13:23:35 +0000 (14:23 +0100)]
make marker handling in bindings more flexible

12 years agofix Selection.solvables() method
Michael Schroeder [Tue, 30 Oct 2012 11:08:42 +0000 (12:08 +0100)]
fix Selection.solvables() method

12 years agouse susetags data dir for susetags deltas
Michael Schroeder [Tue, 30 Oct 2012 10:39:41 +0000 (11:39 +0100)]
use susetags data dir for susetags deltas

12 years agobeautify examples a bit
Michael Schroeder [Tue, 30 Oct 2012 10:27:34 +0000 (11:27 +0100)]
beautify examples a bit

12 years agounify cookie generation for solv/pysolv/rbsolv/p5solv
Michael Schroeder [Mon, 29 Oct 2012 14:55:57 +0000 (15:55 +0100)]
unify cookie generation for solv/pysolv/rbsolv/p5solv

12 years agofix autorefresh flag in pysolv, support metadata_expire == -1 like in solv.c
Michael Schroeder [Mon, 29 Oct 2012 13:26:10 +0000 (14:26 +0100)]
fix autorefresh flag in pysolv, support metadata_expire == -1 like in solv.c

12 years agoset SOLVER_SETREPO and SOLVER_SETVENDOR flags in repo limiter
Michael Schroeder [Mon, 29 Oct 2012 13:02:06 +0000 (14:02 +0100)]
set SOLVER_SETREPO and SOLVER_SETVENDOR flags in repo limiter

12 years agooops, fix selection2str()
Michael Schroeder [Mon, 29 Oct 2012 12:50:00 +0000 (13:50 +0100)]
oops, fix selection2str()

12 years agojoin selection strings with ' + ', not ' | '
Michael Schroeder [Mon, 29 Oct 2012 12:46:36 +0000 (13:46 +0100)]
join selection strings with ' + ', not ' | '

12 years agoadd pool_selection2str() and use it in the bindings
Michael Schroeder [Mon, 29 Oct 2012 11:54:39 +0000 (12:54 +0100)]
add pool_selection2str() and use it in the bindings

12 years agofix selection_limit_rel call for debian nevra match
Michael Schroeder [Mon, 29 Oct 2012 10:49:09 +0000 (11:49 +0100)]
fix selection_limit_rel call for debian nevra match

12 years agosupport SOLVER_SOLVABLE_REPO and SOLVER_SOLVABLE_ALL in more job types, even if many...
Michael Schroeder [Fri, 26 Oct 2012 13:17:51 +0000 (15:17 +0200)]
support SOLVER_SOLVABLE_REPO and SOLVER_SOLVABLE_ALL in more job types, even if many are not meaningful

12 years agoadd pool_job2solvables and selection_solvables
Michael Schroeder [Fri, 26 Oct 2012 12:42:13 +0000 (14:42 +0200)]
add pool_job2solvables and selection_solvables

12 years ago- retabify (untabify for pysolv)
Michael Schroeder [Thu, 25 Oct 2012 16:55:39 +0000 (18:55 +0200)]
- retabify (untabify for pysolv)

12 years agogeneralize matching code from examples/solv.c to src/selection.c
Michael Schroeder [Thu, 25 Oct 2012 14:55:11 +0000 (16:55 +0200)]
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.

12 years agoexample/solv: support all compression types
Michael Schroeder [Wed, 24 Oct 2012 14:39:14 +0000 (16:39 +0200)]
example/solv: support all compression types

12 years agohelp gcc inliner a bit
Michael Schroeder [Tue, 23 Oct 2012 16:56:53 +0000 (18:56 +0200)]
help gcc inliner a bit

12 years agoexamples/solv: factor out downloadchecksig function
Michael Schroeder [Tue, 23 Oct 2012 12:36:25 +0000 (14:36 +0200)]
examples/solv: factor out downloadchecksig function

12 years agofix build on debian
Michael Schroeder [Tue, 23 Oct 2012 11:42:35 +0000 (13:42 +0200)]
fix build on debian

12 years agosupport repository:repomd:size, cleanup code a bit
Michael Schroeder [Tue, 23 Oct 2012 11:39:45 +0000 (13:39 +0200)]
support repository:repomd:size, cleanup code a bit

12 years agoimplement pool_set_rootdir/REPO_USE_ROOTDIR instead of passing a rootdir to various...
Michael Schroeder [Tue, 23 Oct 2012 10:37:25 +0000 (12:37 +0200)]
implement pool_set_rootdir/REPO_USE_ROOTDIR instead of passing a rootdir to 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.

12 years agoMerge pull request #19 from nateskulic/master
Michael Schroeder [Mon, 22 Oct 2012 13:06:47 +0000 (06:06 -0700)]
Merge pull request #19 from nateskulic/master

Add add_rpmdb_root to allow setting root in language bindings
(will probably go away again when we have a different way to handle the rootdir)

12 years ago- add add_rpmdb_root
nate skulic [Fri, 19 Oct 2012 20:49:31 +0000 (22:49 +0200)]
- add add_rpmdb_root

12 years agocheck for rpm/db.h header file
Michael Schroeder [Fri, 19 Oct 2012 12:44:01 +0000 (14:44 +0200)]
check for rpm/db.h header file

12 years agoadd changes, bump version upstream/0.2.0
Michael Schroeder [Thu, 18 Oct 2012 14:59:17 +0000 (16:59 +0200)]
add changes, bump version

12 years agofix encoding of big values
Michael Schroeder [Thu, 18 Oct 2012 14:09:32 +0000 (16:09 +0200)]
fix encoding of big values

12 years agoadapt for older cmake versions
Michael Schroeder [Mon, 15 Oct 2012 16:11:58 +0000 (18:11 +0200)]
adapt for older cmake versions

12 years agoadd repo_add_rpm_handle, add ENABLE_RPMDB_BYRPMHEADER so that we don't need to link...
Michael Schroeder [Mon, 15 Oct 2012 10:10:06 +0000 (12:10 +0200)]
add repo_add_rpm_handle, add ENABLE_RPMDB_BYRPMHEADER so that we don't need to link against rpm if rpm_byrpmh is not needed

12 years agoonly call add_products if the method exists
Michael Schroeder [Mon, 8 Oct 2012 14:35:13 +0000 (16:35 +0200)]
only call add_products if the method exists

12 years agouse evrid2vrstr inline function
Michael Schroeder [Mon, 8 Oct 2012 13:25:31 +0000 (15:25 +0200)]
use evrid2vrstr inline function

12 years agoadd repodata_set_sourcepkg and solvable_lookup_sourcepkg, fix solvable_get_location...
Michael Schroeder [Mon, 8 Oct 2012 13:16:42 +0000 (15:16 +0200)]
add repodata_set_sourcepkg and solvable_lookup_sourcepkg, fix solvable_get_location return type

12 years agofix finish_solvable do not rely on a "handle" argument, as the handle might have...
Michael Schroeder [Mon, 8 Oct 2012 09:55:41 +0000 (11:55 +0200)]
fix finish_solvable do not rely on a "handle" argument, as the handle might have been set to zero

12 years agofix repo_lookup_deparray() corner case when looking for post-marker deps
Michael Schroeder [Fri, 5 Oct 2012 15:07:33 +0000 (17:07 +0200)]
fix repo_lookup_deparray() corner case when looking for post-marker deps

12 years agosimplify forcebinary code again: use TAG_SOURCEPACKAGE like rpm does
Michael Schroeder [Fri, 5 Oct 2012 13:08:57 +0000 (15:08 +0200)]
simplify forcebinary code again: use TAG_SOURCEPACKAGE like rpm does

12 years agodo not force rpm5 rpms to binary, the type info in the lead is always zero
Michael Schroeder [Thu, 4 Oct 2012 13:42:27 +0000 (15:42 +0200)]
do not force rpm5 rpms to binary, the type info in the lead is always zero

12 years ago- fix error handling in solv_xfopen_buf
Michael Schroeder [Mon, 10 Sep 2012 16:23:13 +0000 (18:23 +0200)]
- fix error handling in solv_xfopen_buf

12 years ago- repo_arch: make it work with empty prefixes
Michael Schroeder [Thu, 6 Sep 2012 12:19:16 +0000 (14:19 +0200)]
- repo_arch: make it work with empty prefixes

12 years agocompatibility with rpm: force to binary rpm if the rpmlead says so
Michael Schroeder [Wed, 5 Sep 2012 12:49:05 +0000 (14:49 +0200)]
compatibility with rpm: force to binary rpm if the rpmlead says so

We also force all entries from the rpm package database to be binaries.

12 years ago- add workaround for swig undefing bool
Michael Schroeder [Thu, 30 Aug 2012 09:52:30 +0000 (11:52 +0200)]
- add workaround for swig undefing bool

12 years agoMerge pull request #17 from akozumpl/pullreq
Michael Schroeder [Fri, 24 Aug 2012 14:10:55 +0000 (07:10 -0700)]
Merge pull request #17 from akozumpl/pullreq

cosmetic: fix possibly uninitialized variable warning in solv.c.

12 years agocosmetic: fix possibly uninitialized variable warning in solv.c.
Ales Kozumplik [Fri, 24 Aug 2012 13:30:29 +0000 (15:30 +0200)]
cosmetic: fix possibly uninitialized variable warning in solv.c.

12 years agosolv.i: new perl includes <stdbool.h> and the custom typedefs cause gcc errors.
Ales Kozumplik [Mon, 23 Jul 2012 08:44:24 +0000 (10:44 +0200)]
solv.i: new perl includes <stdbool.h> and the custom typedefs cause gcc errors.

Use <stdbool.h> as the default instead. Additionally this also causes all
functions with return type 'bool' in solv.i having their return value
converted into 1 or 0[1].

[1] C99 Draft, 6.3.1.2

12 years ago- close file handle after reading in cudf file BASE-SuSE-Code-12_2-Branch
Michael Schroeder [Wed, 27 Jun 2012 12:48:52 +0000 (14:48 +0200)]
- close file handle after reading in cudf file

12 years ago- implement RPM_ADD_WITH_LEADSIGID, make RPM_ADD_WITH_HDRID also work in repo_add_rpm
Michael Schroeder [Wed, 27 Jun 2012 12:47:50 +0000 (14:47 +0200)]
- implement RPM_ADD_WITH_LEADSIGID, make RPM_ADD_WITH_HDRID also work in repo_add_rpm