platform/upstream/libsolv.git
11 years agomake it possible to re-run an existing solver (re-using the rpm rules)
Michael Schroeder [Mon, 4 Feb 2013 14:43:27 +0000 (15:43 +0100)]
make it possible to re-run an existing solver (re-using the rpm rules)

11 years agosmall cleanups
Michael Schroeder [Thu, 31 Jan 2013 15:49:15 +0000 (16:49 +0100)]
small cleanups

11 years agodo not ignore disabled/considered flags for src packages
Michael Schroeder [Tue, 15 Jan 2013 12:59:31 +0000 (13:59 +0100)]
do not ignore disabled/considered flags for src packages

11 years agoadd changes, bump version
Michael Schroeder [Mon, 14 Jan 2013 15:02:47 +0000 (16:02 +0100)]
add changes, bump version

11 years agotrivial_installable: check vendor of affected package to see if a patch should be...
Michael Schroeder [Mon, 14 Jan 2013 14:59:55 +0000 (15:59 +0100)]
trivial_installable: check vendor of affected package to see if a patch should be ignored [bnc#736100]

11 years agofix 'solv patch' command
Michael Schroeder [Mon, 14 Jan 2013 14:57:52 +0000 (15:57 +0100)]
fix 'solv patch' command

11 years agosupport "pooljobs", fixed jobs set in the pool
Michael Schroeder [Fri, 11 Jan 2013 12:54:53 +0000 (13:54 +0100)]
support "pooljobs", fixed jobs set in the pool

Those are normally jobs like USERINSTALLED or NOOBSOLETES.

11 years agofix trivial installable requires handling [bnc#795267]
Michael Schroeder [Thu, 3 Jan 2013 12:54:24 +0000 (13:54 +0100)]
fix trivial installable requires handling [bnc#795267]

11 years agoMerge pull request #23 from johnnypeck/patch-1
Michael Schroeder [Thu, 3 Jan 2013 11:50:54 +0000 (03:50 -0800)]
Merge pull request #23 from johnnypeck/patch-1

Update README

11 years agoUpdate README
Johnny Peck [Thu, 27 Dec 2012 23:54:33 +0000 (18:54 -0500)]
Update README

algorihtm to algorithm

11 years agoimprove repo_add_rpmdb speed a tiny bit
Michael Schroeder [Thu, 20 Dec 2012 16:12:02 +0000 (17:12 +0100)]
improve repo_add_rpmdb speed a tiny bit

11 years agolink libsolvext with libsolv for completeness
Michael Schroeder [Thu, 20 Dec 2012 15:05:14 +0000 (16:05 +0100)]
link libsolvext with libsolv for completeness

11 years agolink libsolvext against the system libraries
Michael Schroeder [Wed, 19 Dec 2012 14:36:51 +0000 (15:36 +0100)]
link libsolvext against the system libraries

11 years agoadd changes, bump version upstream/0.2.3
Michael Schroeder [Tue, 18 Dec 2012 18:22:01 +0000 (19:22 +0100)]
add changes, bump version

11 years agosimplify and fix ruby vendordir check in spec file
Michael Schroeder [Tue, 18 Dec 2012 14:38:07 +0000 (15:38 +0100)]
simplify and fix ruby vendordir check in spec file

11 years agodon't access r->p after solver_addrule is called, as it may realloc the rules
Michael Schroeder [Tue, 18 Dec 2012 12:36:53 +0000 (13:36 +0100)]
don't access r->p after solver_addrule is called, as it may realloc the rules

Thanks valgrind!

11 years agosimplify transaction_obs_pkg a bit
Michael Schroeder [Tue, 18 Dec 2012 12:36:22 +0000 (13:36 +0100)]
simplify transaction_obs_pkg a bit

11 years agocosmetics: fix comments
Michael Schroeder [Mon, 17 Dec 2012 17:24:40 +0000 (18:24 +0100)]
cosmetics: fix comments

11 years agofind_problemrule: don't look at the learnt rule multiple times, it may take really...
Michael Schroeder [Mon, 17 Dec 2012 13:18:18 +0000 (14:18 +0100)]
find_problemrule: don't look at the learnt rule multiple times, it may take really long with some jobs

This basically repeats what's already done in analyze_unsolvable.

11 years agodelete old debug statements
Michael Schroeder [Thu, 13 Dec 2012 14:25:22 +0000 (15:25 +0100)]
delete old debug statements

11 years agosimplify testcase
Michael Schroeder [Thu, 13 Dec 2012 12:20:05 +0000 (13:20 +0100)]
simplify testcase

11 years agotest "addalreadyrecommended"
Michael Schroeder [Thu, 13 Dec 2012 10:47:34 +0000 (11:47 +0100)]
test "addalreadyrecommended"

11 years agosmall optimization: make whatprovidesdata + 2 always contain the systemsolvable
Michael Schroeder [Thu, 13 Dec 2012 10:41:53 +0000 (11:41 +0100)]
small optimization: make whatprovidesdata + 2 always contain the systemsolvable

11 years agoadd testcase for special namespaceprovides jobs
Michael Schroeder [Tue, 11 Dec 2012 15:42:07 +0000 (16:42 +0100)]
add testcase for special namespaceprovides jobs

11 years agosupport special namespace privides install/erase jobs in testcases
Michael Schroeder [Tue, 11 Dec 2012 11:52:55 +0000 (12:52 +0100)]
support special namespace privides install/erase jobs in testcases

11 years agoimplement special install/erase namespace provides hack
Michael Schroeder [Mon, 10 Dec 2012 18:18:31 +0000 (19:18 +0100)]
implement special install/erase namespace provides hack

11 years agoimprove error handling in makedeps
Michael Schroeder [Mon, 10 Dec 2012 09:31:32 +0000 (10:31 +0100)]
improve error handling in makedeps

11 years agoprint bad package name when detecting dependency array mismatches
Michael Schroeder [Fri, 7 Dec 2012 12:52:30 +0000 (13:52 +0100)]
print bad package name when detecting dependency array mismatches

11 years agocosmetics: print number of problems in examples
Michael Schroeder [Thu, 6 Dec 2012 18:43:56 +0000 (19:43 +0100)]
cosmetics: print number of problems in examples

11 years agoadd changes, bump version
Michael Schroeder [Wed, 5 Dec 2012 13:39:55 +0000 (14:39 +0100)]
add changes, bump version

11 years agoAdd Dep.Rel() method and a couple of Selection constructors
Michael Schroeder [Wed, 5 Dec 2012 12:31:53 +0000 (13:31 +0100)]
Add Dep.Rel() method and a couple of Selection constructors

11 years agosimplify some testcases
Michael Schroeder [Wed, 5 Dec 2012 10:26:16 +0000 (11:26 +0100)]
simplify some testcases

11 years agorename selection_limit to selection_filter, add flags to make selection_make more...
Michael Schroeder [Wed, 5 Dec 2012 10:25:10 +0000 (11:25 +0100)]
rename selection_limit to selection_filter, add flags to make selection_make more flexible

11 years agowrite trailing "result" line in -r -r mode
Michael Schroeder [Tue, 4 Dec 2012 14:15:14 +0000 (15:15 +0100)]
write trailing "result" line in -r -r mode

11 years agosupport cleandeps in targeted up/dup cases, add tests
Michael Schroeder [Tue, 4 Dec 2012 13:00:34 +0000 (14:00 +0100)]
support cleandeps in targeted up/dup cases, add tests

11 years agoadapt testcase to last change
Michael Schroeder [Tue, 4 Dec 2012 09:54:45 +0000 (10:54 +0100)]
adapt testcase to last change

11 years agomake cleandeps do less reinstalls, fix cleandeps reset bug
Michael Schroeder [Mon, 3 Dec 2012 17:24:23 +0000 (18:24 +0100)]
make cleandeps do less reinstalls, fix cleandeps reset bug

11 years agofix typos in comments, fix queue free
Michael Schroeder [Mon, 3 Dec 2012 16:03:23 +0000 (17:03 +0100)]
fix typos in comments, fix queue free

11 years agoadd "forcebest" testcases
Michael Schroeder [Mon, 3 Dec 2012 15:06:22 +0000 (16:06 +0100)]
add "forcebest" testcases

11 years agoexpand testcases
Michael Schroeder [Fri, 30 Nov 2012 15:54:25 +0000 (16:54 +0100)]
expand testcases

11 years agosmall optimization for targeted dup
Michael Schroeder [Fri, 30 Nov 2012 13:40:01 +0000 (14:40 +0100)]
small optimization for targeted dup

11 years agoanother targeted dup fix, add testcases
Michael Schroeder [Fri, 30 Nov 2012 13:28:10 +0000 (14:28 +0100)]
another targeted dup fix, add testcases

11 years agofree tmp repodata when repo_solv returns an error
Michael Schroeder [Thu, 29 Nov 2012 13:45:23 +0000 (14:45 +0100)]
free tmp repodata when repo_solv returns an error

11 years agoadd SOLVER_FLAG_NO_AUTOTARGET to testcase code
Michael Schroeder [Thu, 29 Nov 2012 12:52:12 +0000 (13:52 +0100)]
add SOLVER_FLAG_NO_AUTOTARGET to testcase code

11 years agofix targeted dup, we also have to add the obsoleters to the involved map
Michael Schroeder [Thu, 29 Nov 2012 12:51:10 +0000 (13:51 +0100)]
fix targeted dup, we also have to add the obsoleters to the involved map

11 years agoadd SOLVER_TARGETED and SOLVER_FLAG_NO_AUTOTARGET flags
Michael Schroeder [Thu, 29 Nov 2012 11:48:12 +0000 (12:48 +0100)]
add SOLVER_TARGETED and SOLVER_FLAG_NO_AUTOTARGET flags

11 years agosimplify datamatcher code, use datamatcher_checkbasename also in repo_search
Michael Schroeder [Thu, 29 Nov 2012 10:32:34 +0000 (11:32 +0100)]
simplify datamatcher code, use datamatcher_checkbasename also in repo_search

11 years agospeed up filelist matching by pre-matching the basename first
Michael Schroeder [Wed, 28 Nov 2012 16:57:10 +0000 (17:57 +0100)]
speed up filelist matching by pre-matching the basename first

11 years agofurther simplify code: use -1 as 'free' in mapped array, like in mapped_at
Michael Schroeder [Wed, 28 Nov 2012 15:01:59 +0000 (16:01 +0100)]
further simplify code: use -1 as 'free' in mapped array, like in mapped_at

11 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

11 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.

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

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

11 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

11 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

11 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

11 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

11 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.

11 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.

11 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.

11 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

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

11 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

11 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

11 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

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

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

11 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

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

11 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

11 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

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

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

11 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

11 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...

11 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

11 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

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

11 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

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

11 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

11 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

11 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

11 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

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

11 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"

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

11 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

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

11 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