portage.git
17 years agoAllow dep_check to use the global db for compatibility (fixes python-updater breakage).
Zac Medico [Wed, 27 Dec 2006 00:11:18 +0000 (00:11 -0000)]
Allow dep_check to use the global db for compatibility (fixes python-updater breakage).

svn path=/main/trunk/; revision=5398

17 years agoMake _setitem do a deepcopy just in case.
Zac Medico [Tue, 26 Dec 2006 02:43:49 +0000 (02:43 -0000)]
Make _setitem do a deepcopy just in case.

svn path=/main/trunk/; revision=5394

17 years agoFor bug #148603, when an ebuild dies, print eclasses that are from overlays. Thanks...
Zac Medico [Mon, 25 Dec 2006 20:42:08 +0000 (20:42 -0000)]
For bug #148603, when an ebuild dies, print eclasses that are from overlays.  Thanks to Alec Warner for the initial patch.

svn path=/main/trunk/; revision=5392

17 years agoUse a SIGTERM signal to support a die call inside of a subshell.
Zac Medico [Mon, 25 Dec 2006 19:13:37 +0000 (19:13 -0000)]
Use a SIGTERM signal to support a die call inside of a subshell.

svn path=/main/trunk/; revision=5391

17 years agoMake sure that portage_group_warning() will be shown even in quiet mode.
Zac Medico [Mon, 25 Dec 2006 09:15:50 +0000 (09:15 -0000)]
Make sure that portage_group_warning() will be shown even in quiet mode.

svn path=/main/trunk/; revision=5390

17 years agoWhen the user has insufficient access privileges, specify whether superuser access...
Zac Medico [Mon, 25 Dec 2006 09:02:20 +0000 (09:02 -0000)]
When the user has insufficient access privileges, specify whether superuser access or portage group access is required.  When only portage group access is required but the user is not in the portage group, call portage_data.portage_group_warning() to remind people that the portage group is a system administration group.

svn path=/main/trunk/; revision=5389

17 years agoPrevent the regen action from running in --pretend mode.
Zac Medico [Mon, 25 Dec 2006 06:04:03 +0000 (06:04 -0000)]
Prevent the regen action from running in --pretend mode.

svn path=/main/trunk/; revision=5388

17 years agoDrop the warning messages for users that aren't in the portage group since tpordbapi...
Zac Medico [Mon, 25 Dec 2006 05:42:45 +0000 (05:42 -0000)]
Drop the warning messages for users that aren't in the portage group since tpordbapi now correctly puts the on-disk cache into readonly mode in this case (and allows metadata generation in-memory if necessary).

svn path=/main/trunk/; revision=5387

17 years agoDocstrings for mergeme...
Alec Warner [Mon, 25 Dec 2006 05:27:45 +0000 (05:27 -0000)]
Docstrings for mergeme...

svn path=/main/trunk/; revision=5386

17 years agomore docstrings..
Alec Warner [Mon, 25 Dec 2006 04:52:11 +0000 (04:52 -0000)]
more docstrings..

svn path=/main/trunk/; revision=5385

17 years agoMake sure that bindbapi makes EAPI correctly default to 0 in all possible cases.
Zac Medico [Sun, 24 Dec 2006 23:49:25 +0000 (23:49 -0000)]
Make sure that bindbapi makes EAPI correctly default to 0 in all possible cases.

svn path=/main/trunk/; revision=5384

17 years agoMake bindbapi.aux_get() selectively cache metadata in order to optimize dep matching...
Zac Medico [Sun, 24 Dec 2006 23:17:26 +0000 (23:17 -0000)]
Make bindbapi.aux_get() selectively cache metadata in order to optimize dep matching (like portdbapi does).

svn path=/main/trunk/; revision=5383

17 years agoClone cached match results before returning them from portdbapi.xmatch(). Thanks...
Zac Medico [Sun, 24 Dec 2006 20:03:22 +0000 (20:03 -0000)]
Clone cached match results before returning them from portdbapi.xmatch().  Thanks to Brian <dol-sen@telus.net> for reporting this issue.

svn path=/main/trunk/; revision=5382

17 years agocptot appears to be unused, punting it along with this commented out function, it...
Alec Warner [Sun, 24 Dec 2006 06:20:27 +0000 (06:20 -0000)]
cptot appears to be unused, punting it along with this commented out function, it appears to be unused as well.

svn path=/main/trunk/; revision=5372

17 years agoDocstrings for doebuild
Alec Warner [Sun, 24 Dec 2006 06:19:26 +0000 (06:19 -0000)]
Docstrings for doebuild

svn path=/main/trunk/; revision=5371

17 years agoMore code cleanup, packagetree appears to be completely unused, so lets remove it...
Alec Warner [Sun, 24 Dec 2006 06:10:58 +0000 (06:10 -0000)]
More code cleanup, packagetree appears to be completely unused, so lets remove it in favor of inheriting from object

svn path=/main/trunk/; revision=5370

17 years agoManpage fix for bug # 158983, thanks to Fabio Correa for the patch
Alec Warner [Sun, 24 Dec 2006 02:04:36 +0000 (02:04 -0000)]
Manpage fix for bug # 158983, thanks to Fabio Correa for the patch

svn path=/main/trunk/; revision=5369

17 years agoFor forward compatibility, make metadata_overlay pass any additional positional and...
Zac Medico [Sat, 23 Dec 2006 20:09:57 +0000 (20:09 -0000)]
For forward compatibility, make metadata_overlay pass any additional positional and keyword parameters into the super constructor.

svn path=/main/trunk/; revision=5368

17 years agoFor bug #158931, add some release notes to explain performance penalties for dependen...
Zac Medico [Sat, 23 Dec 2006 19:15:37 +0000 (19:15 -0000)]
For bug #158931, add some release notes to explain performance penalties for dependency calculations.

svn path=/main/trunk/; revision=5367

17 years agomove actionmap_deps out of global scope and into doebuild where it is actually used...
Alec Warner [Sat, 23 Dec 2006 16:13:31 +0000 (16:13 -0000)]
move actionmap_deps out of global scope and into doebuild where it is actually used, add docstrings to config class in the meantime.

svn path=/main/trunk/; revision=5366

17 years agoMore Docstrings in portage.py
Alec Warner [Sat, 23 Dec 2006 15:53:44 +0000 (15:53 -0000)]
More Docstrings in portage.py

svn path=/main/trunk/; revision=5365

17 years agodisable display of elapsed time for collision-protect as it's for benchmarking purpos...
Marius Mauch [Sat, 23 Dec 2006 10:19:28 +0000 (10:19 -0000)]
disable display of elapsed time for collision-protect as it's for benchmarking purposes and useless to most people.

svn path=/main/trunk/; revision=5364

17 years agoList package in summary logfile
Marius Mauch [Sat, 23 Dec 2006 10:06:24 +0000 (10:06 -0000)]
List package in summary logfile

svn path=/main/trunk/; revision=5363

17 years agostartime is set up in treewalk, so no need to do it globally...
Alec Warner [Sat, 23 Dec 2006 06:00:24 +0000 (06:00 -0000)]
startime is set up in treewalk, so no need to do it globally...

svn path=/main/trunk/; revision=5362

17 years agoShow the "Calculating dependencies .. done!" message with --resume since the spinner...
Zac Medico [Sat, 23 Dec 2006 05:17:06 +0000 (05:17 -0000)]
Show the "Calculating dependencies .. done!" message with --resume since the spinner now runs inside the depgraph constructor.  Thanks to antarus for reporting.

svn path=/main/trunk/; revision=5361

17 years agoOnly write repo.stats and repo.fails when the repoman user has write access to /var...
Zac Medico [Sat, 23 Dec 2006 04:06:50 +0000 (04:06 -0000)]
Only write repo.stats and repo.fails when the repoman user has write access to /var/cache/edb.

svn path=/main/trunk/; revision=5360

17 years agoCombine two default EAPI settings in portdbapi.aux_get().
Zac Medico [Sat, 23 Dec 2006 01:56:34 +0000 (01:56 -0000)]
Combine two default EAPI settings in portdbapi.aux_get().

svn path=/main/trunk/; revision=5359

17 years agoFix inverted EAPI default logic.
Zac Medico [Sat, 23 Dec 2006 01:35:16 +0000 (01:35 -0000)]
Fix inverted EAPI default logic.

svn path=/main/trunk/; revision=5358

17 years agoMake metadata_overlay use the autocommits attribute of the underlying database.
Zac Medico [Sat, 23 Dec 2006 00:21:15 +0000 (00:21 -0000)]
Make metadata_overlay use the autocommits attribute of the underlying database.

svn path=/main/trunk/; revision=5357

17 years agoPass a cache instance into metadata_overlay since it doesn't have enough information...
Zac Medico [Sat, 23 Dec 2006 00:11:27 +0000 (00:11 -0000)]
Pass a cache instance into metadata_overlay since it doesn't have enough information to construct one itself.

svn path=/main/trunk/; revision=5356

17 years agoAdd volatile cache module missing from the previous commit.
Zac Medico [Fri, 22 Dec 2006 23:27:28 +0000 (23:27 -0000)]
Add volatile cache module missing from the previous commit.

svn path=/main/trunk/; revision=5355

17 years agoWhen an unprivileged user runs portage (not in the portage group), use metadata_overl...
Zac Medico [Fri, 22 Dec 2006 23:26:48 +0000 (23:26 -0000)]
When an unprivileged user runs portage (not in the portage group), use metadata_overlay together with a volatile in-memory cache module in order to implement cache writes.  This allows, for example, a user who's not in the portage group to run `ebuild foo.ebuild digest` (issue reported by Charlie Shepherd <masterdriverz@gentoo.org>).

svn path=/main/trunk/; revision=5354

17 years agoRemove two old functions, appear to be relics from 2.0.X branch, no longer used by...
Alec Warner [Fri, 22 Dec 2006 22:55:33 +0000 (22:55 -0000)]
Remove two old functions, appear to be relics from 2.0.X branch, no longer used by portage or gentoolkit or esearch

svn path=/main/trunk/; revision=5353

17 years agoI hate docstrings
Alec Warner [Fri, 22 Dec 2006 22:29:42 +0000 (22:29 -0000)]
I hate docstrings

svn path=/main/trunk/; revision=5351

17 years agoUse a pipe instead of a temp file for the depend phase.
Zac Medico [Fri, 22 Dec 2006 22:22:37 +0000 (22:22 -0000)]
Use a pipe instead of a temp file for the depend phase.

svn path=/main/trunk/; revision=5350

17 years agoRevert the default choice for --ask --unmerge (bug #158354) because people are compla...
Zac Medico [Fri, 22 Dec 2006 10:02:35 +0000 (10:02 -0000)]
Revert the default choice for --ask --unmerge (bug #158354) because people are complaining.

svn path=/main/trunk/; revision=5349

17 years agoFor bug #158649, allow --buildpkgonly to bypass the fakedb population like --nodeps...
Zac Medico [Fri, 22 Dec 2006 01:19:19 +0000 (01:19 -0000)]
For bug #158649, allow --buildpkgonly to bypass the fakedb population like --nodeps does.

svn path=/main/trunk/; revision=5348

17 years agoFix the "help" phase so that it works without build dirs.
Zac Medico [Fri, 22 Dec 2006 00:53:31 +0000 (00:53 -0000)]
Fix the "help" phase so that it works without build dirs.

svn path=/main/trunk/; revision=5347

17 years agoMake emerge enable backward compatibility mode for dep_check() calls on installed...
Zac Medico [Thu, 21 Dec 2006 08:09:20 +0000 (08:09 -0000)]
Make emerge enable backward compatibility mode for dep_check() calls on installed packages so that it can gracefully invalid atoms or dep syntax.

svn path=/main/trunk/; revision=5346

17 years agoCreate a backward compatibility mode for dep_check() so that emerge can use it to...
Zac Medico [Thu, 21 Dec 2006 07:44:30 +0000 (07:44 -0000)]
Create a backward compatibility mode for dep_check() so that emerge can use it to gracefully deal with installed packages that have invalid atoms or dep syntax.

svn path=/main/trunk/; revision=5345

17 years agoUse the return value from setdefault to avoid an extra dict lookup.
Zac Medico [Thu, 21 Dec 2006 02:45:02 +0000 (02:45 -0000)]
Use the return value from setdefault to avoid an extra dict lookup.

svn path=/main/trunk/; revision=5344

17 years agoFor bug #158658, fix the 'TypeError: int argument required' that happens in the final...
Zac Medico [Thu, 21 Dec 2006 02:36:26 +0000 (02:36 -0000)]
For bug #158658, fix the 'TypeError: int argument required' that happens in the finalize() routine.

svn path=/main/trunk/; revision=5343

17 years agoFor bug #158632, make aux_get caching safe for missing values in cache entries.
Zac Medico [Thu, 21 Dec 2006 01:54:42 +0000 (01:54 -0000)]
For bug #158632, make aux_get caching safe for missing values in cache entries.

svn path=/main/trunk/; revision=5342

17 years agoFor installed packages with invalid depstrings, tell the user the location of the...
Zac Medico [Thu, 21 Dec 2006 01:11:44 +0000 (01:11 -0000)]
For installed packages with invalid depstrings, tell the user the location of the *DEPEND files.

svn path=/main/trunk/; revision=5341

17 years agoWhen a removal phase fails, tell the user where the ebuild is and advise them that...
Zac Medico [Thu, 21 Dec 2006 00:32:10 +0000 (00:32 -0000)]
When a removal phase fails, tell the user where the ebuild is and advise them that the ebuild can be removed in order to skip the removal phases.

svn path=/main/trunk/; revision=5340

17 years agoFor bug #158558, ignore invalid depstrings for packages that are being replaced anywa...
Zac Medico [Wed, 20 Dec 2006 23:09:09 +0000 (23:09 -0000)]
For bug #158558, ignore invalid depstrings for packages that are being replaced anyway (otherwise the user would be forced to manually unmerge the package).

svn path=/main/trunk/; revision=5339

17 years agoMore intelligently handle CacheCorruption errors in the writable cache.
Zac Medico [Wed, 20 Dec 2006 22:09:59 +0000 (22:09 -0000)]
More intelligently handle CacheCorruption errors in the writable cache.

svn path=/main/trunk/; revision=5338

17 years agoFor bug #158649, minimize portdb cache pulls for installed packages when --nodeps...
Zac Medico [Wed, 20 Dec 2006 21:19:42 +0000 (21:19 -0000)]
For bug #158649, minimize portdb cache pulls for installed packages when --nodeps is enabled.  This patch also allows the vardb lock to be released before doing any cache pulls (even when --nodeps is not enabled), and updates the spinner while the metadata is being pulled.

svn path=/main/trunk/; revision=5337

17 years agoFix broken exception handling syntax causing strange exception reported in bug #15860...
Zac Medico [Wed, 20 Dec 2006 19:29:17 +0000 (19:29 -0000)]
Fix broken exception handling syntax causing strange exception reported in bug #158608.  Thanks to grobian for help troubleshooting.

svn path=/main/trunk/; revision=5335

17 years agoFix the invalid dependency message so there's no confusion about which package has...
Zac Medico [Wed, 20 Dec 2006 04:09:31 +0000 (04:09 -0000)]
Fix the invalid dependency message so there's no confusion about which package has the problem.

svn path=/main/trunk/; revision=5333

17 years agoGive the user some advice whenever an invalid dependency string is encountered.
Zac Medico [Wed, 20 Dec 2006 04:01:26 +0000 (04:01 -0000)]
Give the user some advice whenever an invalid dependency string is encountered.

svn path=/main/trunk/; revision=5332

17 years agoAdd missing newlines to the warning message that's printed when the user has distlock...
Zac Medico [Wed, 20 Dec 2006 02:22:22 +0000 (02:22 -0000)]
Add missing newlines to the warning message that's printed when the user has distlocks enabled together with skiprocheck and the filesystem is readonly.

svn path=/main/trunk/; revision=5331

17 years agoFor bug #158608, don't attempt to use distlocks when it's detected that the filesyste...
Zac Medico [Wed, 20 Dec 2006 02:17:02 +0000 (02:17 -0000)]
For bug #158608, don't attempt to use distlocks when it's detected that the filesystem is readonly (unless "skiprocheck" is in FEATURES for some strange reason).

svn path=/main/trunk/; revision=5330

17 years agoFix an import statement typo.
Zac Medico [Wed, 20 Dec 2006 00:49:16 +0000 (00:49 -0000)]
Fix an import statement typo.

svn path=/main/trunk/; revision=5329

17 years agoFor bug #158558, make the unmerge phase do automatic cleanup for broken vardbapi...
Zac Medico [Tue, 19 Dec 2006 23:30:14 +0000 (23:30 -0000)]
For bug #158558, make the unmerge phase do automatic cleanup for broken vardbapi.move_ent() in portage versions before 2.1.2.

svn path=/main/trunk/; revision=5328

17 years agoFor bug #158558, fix broken ebuild rename logic in vardbapi.move_ent().
Zac Medico [Tue, 19 Dec 2006 22:48:18 +0000 (22:48 -0000)]
For bug #158558, fix broken ebuild rename logic in vardbapi.move_ent().

svn path=/main/trunk/; revision=5327

17 years agoMake binarytree.move_ent() properly update PF.
Zac Medico [Tue, 19 Dec 2006 22:26:40 +0000 (22:26 -0000)]
Make binarytree.move_ent() properly update PF.

svn path=/main/trunk/; revision=5326

17 years agoNew elog modules for dismerging messages into a single file/mail
Marius Mauch [Tue, 19 Dec 2006 14:56:17 +0000 (14:56 -0000)]
New elog modules for dismerging messages into a single file/mail

svn path=/main/trunk/; revision=5325

17 years agoUse a separate digraph to store parent/child relationships (PDEPEND relationships...
Zac Medico [Tue, 19 Dec 2006 08:12:57 +0000 (08:12 -0000)]
Use a separate digraph to store parent/child relationships (PDEPEND relationships are not reversed) so that relationship is always known in case a slot collision occurs.

svn path=/main/trunk/; revision=5324

17 years agoIncrease cache hits in portdbapi.xmatch().
Zac Medico [Tue, 19 Dec 2006 07:16:32 +0000 (07:16 -0000)]
Increase cache hits in portdbapi.xmatch().

svn path=/main/trunk/; revision=5323

17 years agoFor bug #158508, make --fetchonly display a list of packages for which the fetch...
Zac Medico [Tue, 19 Dec 2006 03:11:17 +0000 (03:11 -0000)]
For bug #158508, make --fetchonly display a list of packages for which the fetch phase failed.

svn path=/main/trunk/; revision=5322

17 years agoFor bug #158503, allow --nodeps to override blockers.
Zac Medico [Tue, 19 Dec 2006 00:10:21 +0000 (00:10 -0000)]
For bug #158503, allow --nodeps to override blockers.

svn path=/main/trunk/; revision=5321

17 years agoFor bug #158354, make "No" the default response for unmerge actions.
Zac Medico [Mon, 18 Dec 2006 06:22:40 +0000 (06:22 -0000)]
For bug #158354, make "No" the default response for unmerge actions.

svn path=/main/trunk/; revision=5318

17 years agoJust start with an empty dict in dep_check_trees since nothing more is needed.
Zac Medico [Mon, 18 Dec 2006 05:46:04 +0000 (05:46 -0000)]
Just start with an empty dict in dep_check_trees since nothing more is needed.

svn path=/main/trunk/; revision=5317

17 years agoCatch PortageException from portdbapi.aux_get since it can happen when gpg is in...
Zac Medico [Mon, 18 Dec 2006 03:47:31 +0000 (03:47 -0000)]
Catch PortageException from portdbapi.aux_get since it can happen when gpg is in FEATURES.

svn path=/main/trunk/; revision=5316

17 years agoMake portdbapi cache SLOT in addition to EAPI and KEYWORDS in order to further optimi...
Zac Medico [Mon, 18 Dec 2006 03:31:29 +0000 (03:31 -0000)]
Make portdbapi cache SLOT in addition to EAPI and KEYWORDS in order to further optimize dep matching/selection.

svn path=/main/trunk/; revision=5315

17 years agoDisable the spinner when --debug is enabled so that it doesn't interfere.
Zac Medico [Mon, 18 Dec 2006 01:14:34 +0000 (01:14 -0000)]
Disable the spinner when --debug is enabled so that it doesn't interfere.

svn path=/main/trunk/; revision=5314

17 years agoMake depclean skip empty depstrings.
Zac Medico [Mon, 18 Dec 2006 00:57:20 +0000 (00:57 -0000)]
Make depclean skip empty depstrings.

svn path=/main/trunk/; revision=5313

17 years agoDo some minor cleanup of the --depclean code.
Zac Medico [Mon, 18 Dec 2006 00:38:26 +0000 (00:38 -0000)]
Do some minor cleanup of the --depclean code.

svn path=/main/trunk/; revision=5312

17 years agoAdd --debug support for --depclean.
Zac Medico [Sun, 17 Dec 2006 20:41:49 +0000 (20:41 -0000)]
Add --debug support for --depclean.

svn path=/main/trunk/; revision=5311

17 years agoAdd a comment about the previous commit.
Zac Medico [Sun, 17 Dec 2006 20:32:00 +0000 (20:32 -0000)]
Add a comment about the previous commit.

svn path=/main/trunk/; revision=5310

17 years agoDon't optimize depgraph.altlist() in reversed mode since the optimization destroys...
Zac Medico [Sun, 17 Dec 2006 20:29:04 +0000 (20:29 -0000)]
Don't optimize depgraph.altlist() in reversed mode since the optimization destroys --tree ouput.

svn path=/main/trunk/; revision=5309

17 years agoIn depgraph.altlist(), pop as many leaf nodes as possible when no relationship has...
Zac Medico [Sun, 17 Dec 2006 10:17:54 +0000 (10:17 -0000)]
In depgraph.altlist(), pop as many leaf nodes as possible when no relationship has been ignored.  This can halve the time taken for a large merge order calculation.

svn path=/main/trunk/; revision=5308

17 years agoforce environment.bz2 to be clobbered if it already exists
Mike Frysinger [Sun, 17 Dec 2006 01:30:30 +0000 (01:30 -0000)]
force environment.bz2 to be clobbered if it already exists

svn path=/main/trunk/; revision=5307

17 years agoremove pointless redirects to /dev/null when using hasq()
Mike Frysinger [Sun, 17 Dec 2006 01:28:49 +0000 (01:28 -0000)]
remove pointless redirects to /dev/null when using hasq()

svn path=/main/trunk/; revision=5306

17 years agoMake use_reduce raise an InvalidDependString exception for use? conditionals that...
Zac Medico [Sat, 16 Dec 2006 23:25:03 +0000 (23:25 -0000)]
Make use_reduce raise an InvalidDependString exception for use? conditionals that aren't followed by parenthesis and add appropriate exception handling in dep_check.

svn path=/main/trunk/; revision=5305

17 years agoMake dep_check validate all depstring atoms in order to prevent problems from occurin...
Zac Medico [Sat, 16 Dec 2006 21:42:07 +0000 (21:42 -0000)]
Make dep_check validate all depstring atoms in order to prevent problems from occuring later due to unexpected invalid atoms.

svn path=/main/trunk/; revision=5304

17 years agoFix global updates error handling to prevent a traceback with python-2.5 as reported...
Zac Medico [Sat, 16 Dec 2006 09:59:47 +0000 (09:59 -0000)]
Fix global updates error handling to prevent a traceback with python-2.5 as reported in bug #158264.

svn path=/main/trunk/; revision=5303

17 years agoFor bug #158177, force configure scripts that automatically detect ccache to respect...
Zac Medico [Sat, 16 Dec 2006 05:21:52 +0000 (05:21 -0000)]
For bug #158177, force configure scripts that automatically detect ccache to respect FEATURES="-ccache".  Thanks to Horst Schirmeier <gentoo@schirmeier.com> for this suggestion.

svn path=/main/trunk/; revision=5302

17 years agoMake repoman cache per-profile xmatch results.
Zac Medico [Sat, 16 Dec 2006 03:26:43 +0000 (03:26 -0000)]
Make repoman cache per-profile xmatch results.

svn path=/main/trunk/; revision=5301

17 years agoSplit ACCEPT_KEYWORDS before entering the loop for better efficiency.
Zac Medico [Sat, 16 Dec 2006 02:16:26 +0000 (02:16 -0000)]
Split ACCEPT_KEYWORDS before entering the loop for better efficiency.

svn path=/main/trunk/; revision=5300

17 years agoMake sure eapi is defined in order to prevent a NameError.
Zac Medico [Sat, 16 Dec 2006 02:14:13 +0000 (02:14 -0000)]
Make sure eapi is defined in order to prevent a NameError.

svn path=/main/trunk/; revision=5299

17 years agoCache KEYWORDS and EAPI metadata values in order to speed up portdbapi.gvisible(...
Zac Medico [Sat, 16 Dec 2006 02:10:05 +0000 (02:10 -0000)]
Cache KEYWORDS and EAPI metadata values in order to speed up portdbapi.gvisible() calls.  This greatly improves repoman performance (help emerge a little too).

svn path=/main/trunk/; revision=5298

17 years agoFor bug #157897, show parent nodes in order to help the user decide about what action...
Zac Medico [Sat, 16 Dec 2006 02:04:19 +0000 (02:04 -0000)]
For bug #157897, show parent nodes in order to help the user decide about what action to take.

svn path=/main/trunk/; revision=5297

17 years agoCache blocked slots for better efficiency.
Zac Medico [Thu, 14 Dec 2006 20:42:33 +0000 (20:42 -0000)]
Cache blocked slots for better efficiency.

svn path=/main/trunk/; revision=5296

17 years agoMake --columns blockers output more consistent when --quiet is not enabled.
Zac Medico [Thu, 14 Dec 2006 07:21:12 +0000 (07:21 -0000)]
Make --columns blockers output more consistent when --quiet is not enabled.

svn path=/main/trunk/; revision=5294

17 years agoRemove pointless unpacking of the parent node.
Zac Medico [Thu, 14 Dec 2006 07:09:49 +0000 (07:09 -0000)]
Remove pointless unpacking of the parent node.

svn path=/main/trunk/; revision=5293

17 years agoRemove redundant priority handling since that's always handled in select_dep() for...
Zac Medico [Thu, 14 Dec 2006 07:03:24 +0000 (07:03 -0000)]
Remove redundant priority handling since that's always handled in select_dep() for nodes that have parents.

svn path=/main/trunk/; revision=5292

17 years agoFix the --onlydeps conditional logic in depgraph.create(). These aren't real nodes...
Zac Medico [Thu, 14 Dec 2006 04:30:13 +0000 (04:30 -0000)]
Fix the --onlydeps conditional logic in depgraph.create().  These aren't real nodes and shouldn't be added to the digraph, etc...

svn path=/main/trunk/; revision=5291

17 years agoUse depgraph.pkg_node_map so simplify comparison against existing nodes at the beginn...
Zac Medico [Thu, 14 Dec 2006 01:57:22 +0000 (01:57 -0000)]
Use depgraph.pkg_node_map so simplify comparison against existing nodes at the beginning of depgraph.create().

svn path=/main/trunk/; revision=5290

17 years agoUpdate the comment about depgraph.pkg_node_map since it now maps all nodes added...
Zac Medico [Thu, 14 Dec 2006 01:06:11 +0000 (01:06 -0000)]
Update the comment about depgraph.pkg_node_map since it now maps all nodes added to the graph.

svn path=/main/trunk/; revision=5289

17 years agoFix a typo from the previous commit.
Zac Medico [Thu, 14 Dec 2006 01:01:31 +0000 (01:01 -0000)]
Fix a typo from the previous commit.

svn path=/main/trunk/; revision=5288

17 years agoFor bug #157897, add slot collision handling in depgraph.create(), since create(...
Zac Medico [Thu, 14 Dec 2006 00:57:44 +0000 (00:57 -0000)]
For bug #157897, add slot collision handling in depgraph.create(), since create() is called from places other than select_dep().

svn path=/main/trunk/; revision=5287

17 years agohandle --cols when displaying blockers
Mike Frysinger [Wed, 13 Dec 2006 22:13:14 +0000 (22:13 -0000)]
handle --cols when displaying blockers

svn path=/main/trunk/; revision=5286

17 years agoFor bug #157897, handle the case of multiple versions within a single package slot...
Zac Medico [Wed, 13 Dec 2006 21:50:19 +0000 (21:50 -0000)]
For bug #157897, handle the case of multiple versions within a single package slot have been pulled into the dependency graph.  If possible, the package that has already been pulled in will be reused.  Otherwise, an error message will advise the user to mask an unwanted version.

svn path=/main/trunk/; revision=5285

17 years agoRemove redundant digraph.pkg_node_map node insertions. Once per digraph.create(...
Zac Medico [Wed, 13 Dec 2006 10:50:03 +0000 (10:50 -0000)]
Remove redundant digraph.pkg_node_map node insertions.  Once per digraph.create() call will cover all nodes.

svn path=/main/trunk/; revision=5283

17 years agoTrack slot atom to digraph node mappings as the depgraph is built. This mapping...
Zac Medico [Wed, 13 Dec 2006 10:40:24 +0000 (10:40 -0000)]
Track slot atom to digraph node mappings as the depgraph is built.  This mapping will be used to detect node collisions for bug #157897.

svn path=/main/trunk/; revision=5282

17 years agoMove the biolerplate cpv_all() implementation from portdbapi to dbapi.
Zac Medico [Wed, 13 Dec 2006 01:19:19 +0000 (01:19 -0000)]
Move the biolerplate cpv_all() implementation from portdbapi to dbapi.

svn path=/main/trunk/; revision=5281

17 years agoFor bug #157897, ensure that only "merge" nodes are stored in digraph.pkg_node_map.
Zac Medico [Tue, 12 Dec 2006 22:25:20 +0000 (22:25 -0000)]
For bug #157897, ensure that only "merge" nodes are stored in digraph.pkg_node_map.

svn path=/main/trunk/; revision=5280

17 years agoFor bug #157897, only let depgraph.create() inject "merge" nodes into the final state...
Zac Medico [Tue, 12 Dec 2006 11:59:42 +0000 (11:59 -0000)]
For bug #157897, only let depgraph.create() inject "merge" nodes into the final state dbapi.

svn path=/main/trunk/; revision=5279