portage.git
16 years agoUse set.instersection() instead of a for loop.
Zac Medico [Fri, 9 May 2008 03:00:10 +0000 (03:00 -0000)]
Use set.instersection() instead of a for loop.

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

16 years agoAllow scheduled uninstalls to be selected the same way as other leaf nodes.
Zac Medico [Fri, 9 May 2008 02:28:54 +0000 (02:28 -0000)]
Allow scheduled uninstalls to be selected the same way as other leaf nodes.

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

16 years agoMake the fix for bug #220341 better by checking all selected packages for
Zac Medico [Fri, 9 May 2008 02:14:38 +0000 (02:14 -0000)]
Make the fix for bug #220341 better by checking all selected packages for
matching cpv rather than just the last one.

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

16 years agoOptimize BlockerDB.findInstalledBlockers() so that it doesn't unnecessarily
Zac Medico [Fri, 9 May 2008 01:49:02 +0000 (01:49 -0000)]
Optimize BlockerDB.findInstalledBlockers() so that it doesn't unnecessarily
try to match packages against an empty set of blocker atoms.

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

16 years agoBug #220987 - Fix UnboundLocalError for 'skip' that only occurs when
Zac Medico [Thu, 8 May 2008 21:51:29 +0000 (21:51 -0000)]
Bug #220987 - Fix UnboundLocalError for 'skip' that only occurs when
using alternate ROOT. Thanks to Ryan Tandy <tarpman@gmail.com>.

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

16 years agoMake some confmem behavior modifications in order to try and make it
Zac Medico [Thu, 8 May 2008 21:18:01 +0000 (21:18 -0000)]
Make some confmem behavior modifications in order to try and make it
less confusing for people who have forgotten about the --noconfmem
option or are completely unaware of it. Thanks to Joe Peterson
<lavajoe@gentoo.org> for suggesting these:

* Always behave like --noconfmem is enabled for downgrades.

* Purge confmem entries when a package is unmerged rather
  than replaced.

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

16 years agoRemove stale uninstall tasks from scheduled_uninstalls when necessary.
Zac Medico [Thu, 8 May 2008 19:46:47 +0000 (19:46 -0000)]
Remove stale uninstall tasks from scheduled_uninstalls when necessary.

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

16 years agoRemove unnecessary BlockerDB and BlockerCache _installed_pkgs attributes.
Zac Medico [Thu, 8 May 2008 19:03:42 +0000 (19:03 -0000)]
Remove unnecessary BlockerDB and BlockerCache _installed_pkgs attributes.

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

16 years agoDon't save "uninstall" tasks in the resume list since they'll be regenerated
Zac Medico [Thu, 8 May 2008 18:35:39 +0000 (18:35 -0000)]
Don't save "uninstall" tasks in the resume list since they'll be regenerated
by dependency calculations upon resume.

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

16 years agoBug #220341 - USE=multislot can make an installed package appear as if
Zac Medico [Thu, 8 May 2008 17:37:38 +0000 (17:37 -0000)]
Bug #220341 - USE=multislot can make an installed package appear as if
it doesn't satisfy a slot dependency. Rebuilding the ebuild won't do
any good as long as USE=multislot is enabled since the newly built
package still won't have the expected slot. Therefore, assume that
such SLOT dependencies are already satisfied rather than forcing a
rebuild.

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

16 years agoBug #220775 - Source isolated-functions.sh before trying to call vecho.
Zac Medico [Thu, 8 May 2008 17:08:13 +0000 (17:08 -0000)]
Bug #220775 - Source isolated-functions.sh before trying to call vecho.

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

16 years agoBug #220689 - Fix package selection logic so that it doesn't trigger the
Zac Medico [Thu, 8 May 2008 16:52:45 +0000 (16:52 -0000)]
Bug #220689 - Fix package selection logic so that it doesn't trigger the
code path from bug 219369 in some unwanted cases.

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

16 years agoDon't use try/finally to close atomic_ofstream since we don't want to
Zac Medico [Thu, 8 May 2008 10:33:30 +0000 (10:33 -0000)]
Don't use try/finally to close atomic_ofstream since we don't want to
call close() on this stream if an error occurs.

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

16 years agoFix findInstalledBlockers() to check for blockers in both directions.
Zac Medico [Thu, 8 May 2008 09:26:47 +0000 (09:26 -0000)]
Fix findInstalledBlockers() to check for blockers in both directions.

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

16 years agoInstead of doing automatic uninstalls in advance, install conflicting
Zac Medico [Thu, 8 May 2008 07:48:59 +0000 (07:48 -0000)]
Instead of doing automatic uninstalls in advance, install conflicting
packages first and then do the uninstall afterwards. This requires
special handling for file collisions occur, but it's preferred
because it ensures that package files remain installed in a usable
state whenever possible.

When file collisions occur between conflicting packages, the contents
entries for those files are removed from the packages that are
scheduled for uninstallation. This prevents uninstallation operations
from removing overlapping files that have been claimed by conflicting
packages.

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

16 years agoTolerate InvalidDependString exceptions when checking visibility of
Zac Medico [Wed, 7 May 2008 18:49:19 +0000 (18:49 -0000)]
Tolerate InvalidDependString exceptions when checking visibility of
installed packages.

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

16 years agoFix spelling of "SATISFIED". Thanks to Arfrever.
Zac Medico [Wed, 7 May 2008 17:06:39 +0000 (17:06 -0000)]
Fix spelling of "SATISFIED". Thanks to Arfrever.

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

16 years agoIn install_mask(), discard stderr messages from the 'find' command
Zac Medico [Tue, 6 May 2008 20:26:05 +0000 (20:26 -0000)]
In install_mask(), discard stderr messages from the 'find' command
since some tokens from INSTALL_MASK can trigger lots of warnings
and errors that are irrelevant for our purposes.

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

16 years agoMake satisfied blockers "darkblue" by default.
Zac Medico [Tue, 6 May 2008 01:34:39 +0000 (01:34 -0000)]
Make satisfied blockers "darkblue" by default.

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

16 years agoFor consistency with the merge list display, show "block" instead
Zac Medico [Tue, 6 May 2008 00:36:04 +0000 (00:36 -0000)]
For consistency with the merge list display, show "block" instead
of "blocker" in the summary.

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

16 years agoDisplay satisfied blockers in green and show a small "b" instead of a
Zac Medico [Tue, 6 May 2008 00:12:51 +0000 (00:12 -0000)]
Display satisfied blockers in green and show a small "b" instead of a
big "B" (similar to "f" for satisfied fetch restrictions).

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

16 years agoUse find -path -or -name to match basenames of files in INSTALL_MASK
Zac Medico [Mon, 5 May 2008 21:50:08 +0000 (21:50 -0000)]
Use find -path -or -name to match basenames of files in INSTALL_MASK
as suggested by solar in bug #219286, comment #8.

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

16 years agoCache results for Task.__hash__() calls.
Zac Medico [Mon, 5 May 2008 21:06:30 +0000 (21:06 -0000)]
Cache results for Task.__hash__() calls.

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

16 years agoUse vardbapi._excluded_dirs to filter results inside cp_list().
Zac Medico [Mon, 5 May 2008 19:29:54 +0000 (19:29 -0000)]
Use vardbapi._excluded_dirs to filter results inside cp_list().

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

16 years agoAdd -MERGING-.* to vardbapi._excluded_dirs.
Zac Medico [Mon, 5 May 2008 19:22:42 +0000 (19:22 -0000)]
Add -MERGING-.* to vardbapi._excluded_dirs.

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

16 years ago* In vardbapi.cpv_all() use catpkgsplit() for validation since that's what
Zac Medico [Mon, 5 May 2008 18:40:49 +0000 (18:40 -0000)]
* In vardbapi.cpv_all() use catpkgsplit() for validation since that's what
  with cp_all() uses.
* Use the listdir() dirsonly=1 parameter to avoid unnecessary stat calls
  via os.path.isdir().

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

16 years agoHandle a potential InvalidData exception in vardbapi.cp_all().
Zac Medico [Mon, 5 May 2008 16:55:18 +0000 (16:55 -0000)]
Handle a potential InvalidData exception in vardbapi.cp_all().

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

16 years agofix preserve_libs logic to properly account for the current package instance v2.2_pre6
Marius Mauch [Mon, 5 May 2008 08:58:05 +0000 (08:58 -0000)]
fix preserve_libs logic to properly account for the current package instance

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

16 years agoAdd "package" to EBUILD_PHASES since it's possible for einfo to be called
Zac Medico [Mon, 5 May 2008 06:35:57 +0000 (06:35 -0000)]
Add "package" to EBUILD_PHASES since it's possible for einfo to be called
by install_mask() during that phase.

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

16 years agoBug #219286 - Whitelist INSTALL_MASK so that it works properly for binary
Zac Medico [Mon, 5 May 2008 05:56:52 +0000 (05:56 -0000)]
Bug #219286 - Whitelist INSTALL_MASK so that it works properly for binary
packages. Also, filter INSTALL_MASK when saving or loading environment.bz2.
This also applies to PKG_INSTALL_MASK and DOC_SYMLINKS_DIR, so add them
too.

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

16 years ago* Fix --buildpkgonly logic to avoid an unwanted code path.
Zac Medico [Mon, 5 May 2008 05:07:35 +0000 (05:07 -0000)]
* Fix --buildpkgonly logic to avoid an unwanted code path.
* Remove unnecessary mtimedb.pop("resume", None) call.

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

16 years agoBug #220171 - Filter out 'lost+found' directories in vardbapi.cpv_all()
Zac Medico [Mon, 5 May 2008 04:44:30 +0000 (04:44 -0000)]
Bug #220171 - Filter out 'lost+found' directories in vardbapi.cpv_all()
in order to avoid fatal 'Permission denied' errors. Currently, CVS and
names beginning with '.' are also filtered.

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

16 years agoUse writemsg() to warn about InvalidDependString exceptions that may
Zac Medico [Mon, 5 May 2008 03:30:24 +0000 (03:30 -0000)]
Use writemsg() to warn about InvalidDependString exceptions that may
occur for installed packages.

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

16 years agoUse a separate digraph to preserve irrelevant blocker relationships that
Zac Medico [Mon, 5 May 2008 03:27:30 +0000 (03:27 -0000)]
Use a separate digraph to preserve irrelevant blocker relationships that
are removed from depgraph._blocker_parents since the irrelevant blockers
are still needed for the blocker cache.

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

16 years agoFix misplaced variable.
Zac Medico [Mon, 5 May 2008 03:18:45 +0000 (03:18 -0000)]
Fix misplaced variable.

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

16 years agoIn the package uninstall sanity check, use RDEPEND from the currently
Zac Medico [Sun, 4 May 2008 19:41:52 +0000 (19:41 -0000)]
In the package uninstall sanity check, use RDEPEND from the currently
running 'sys-apps/portage' instance to create a set of protected atoms.

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

16 years agoactually remove libraries that aren't strictly needed from the preservation candidate...
Marius Mauch [Sun, 4 May 2008 14:16:14 +0000 (14:16 -0000)]
actually remove libraries that aren't strictly needed from the preservation candidate list

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

16 years agoremove NEEDED from list of metadata variables (and associated special handling) as...
Marius Mauch [Sun, 4 May 2008 13:00:53 +0000 (13:00 -0000)]
remove NEEDED from list of metadata variables (and associated special handling) as it's no longer used

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

16 years agoremove obsolete class
Marius Mauch [Sun, 4 May 2008 12:55:24 +0000 (12:55 -0000)]
remove obsolete class

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

16 years agoSimilar to the sys-apps/portage protection, also add protection against
Zac Medico [Sun, 4 May 2008 08:06:58 +0000 (08:06 -0000)]
Similar to the sys-apps/portage protection, also add protection against
inappropriately uninstalling either app-shells/bash or dev-lang/python.

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

16 years agoDo more validation of resume data from the mtimedb.
Zac Medico [Sun, 4 May 2008 06:39:58 +0000 (06:39 -0000)]
Do more validation of resume data from the mtimedb.

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

16 years agoIn order to fix --tree display behave normally in --resume mode,
Zac Medico [Sun, 4 May 2008 05:25:14 +0000 (05:25 -0000)]
In order to fix --tree display behave normally in --resume mode,
properly add to the digraph all packages matched by arguments.

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

16 years agoFix misplaced variable used as parameter to _load_favorites().
Zac Medico [Sun, 4 May 2008 04:20:24 +0000 (04:20 -0000)]
Fix misplaced variable used as parameter to _load_favorites().

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

16 years agoFix package counters in depgraph.display() so they're only incremented
Zac Medico [Sun, 4 May 2008 03:46:19 +0000 (03:46 -0000)]
Fix package counters in depgraph.display() so they're only incremented
for "ordered" display nodes.

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

16 years agoFix some unwanted interaction between --tree display and unsatisfied
Zac Medico [Sun, 4 May 2008 03:24:27 +0000 (03:24 -0000)]
Fix some unwanted interaction between --tree display and unsatisfied
blockers in depgraph.display().

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

16 years agoRemove obsolete tuple() usage inside depgraph.display().
Zac Medico [Sun, 4 May 2008 02:09:34 +0000 (02:09 -0000)]
Remove obsolete tuple() usage inside depgraph.display().

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

16 years agoFix spelling of _show_unsatisfied_blockers().
Zac Medico [Sun, 4 May 2008 01:48:04 +0000 (01:48 -0000)]
Fix spelling of _show_unsatisfied_blockers().

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

16 years agoIn BlockerData._load(), salvage as much cache as possible when some
Zac Medico [Sun, 4 May 2008 01:04:44 +0000 (01:04 -0000)]
In BlockerData._load(), salvage as much cache as possible when some
seems to be corrupt.

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

16 years agoValidate all the data types inside BlockerCache._load() so that
Zac Medico [Sun, 4 May 2008 00:48:45 +0000 (00:48 -0000)]
Validate all the data types inside BlockerCache._load() so that
any corruption is detected as soon as possible.

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

16 years agoWhen a resume list is rejected, display the invalid resume list data
Zac Medico [Sat, 3 May 2008 23:09:17 +0000 (23:09 -0000)]
When a resume list is rejected, display the invalid resume list data
in case the user is interested. This is enabled with --verbose or
--debug.

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

16 years agoWhen a --resume list is rejected due to unsatisfied deps, display a
Zac Medico [Sat, 3 May 2008 21:57:15 +0000 (21:57 -0000)]
When a --resume list is rejected due to unsatisfied deps, display a
list of missing deps and which packages they belong to.

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

16 years agoDon't clean out old resume lists when in --ask or --pretend mode.
Zac Medico [Sat, 3 May 2008 21:22:20 +0000 (21:22 -0000)]
Don't clean out old resume lists when in --ask or --pretend mode.

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

16 years agoWhen loadResumeCommand() rejects a resume list, give a more informative
Zac Medico [Sat, 3 May 2008 21:08:27 +0000 (21:08 -0000)]
When loadResumeCommand() rejects a resume list, give a more informative
explanation.

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

16 years agoFix display_problems() logic some more.
Zac Medico [Sat, 3 May 2008 19:48:13 +0000 (19:48 -0000)]
Fix display_problems() logic some more.

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

16 years agoFix logic so display_problems() gets called every time display() does.
Zac Medico [Sat, 3 May 2008 19:39:49 +0000 (19:39 -0000)]
Fix logic so display_problems() gets called every time display() does.

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

16 years agoImprove --resume handling of saved "favorites" argument atoms:
Zac Medico [Sat, 3 May 2008 19:00:47 +0000 (19:00 -0000)]
Improve --resume handling of saved "favorites" argument atoms:

* Save the favorites in oneshot mode too since they're still useful for
  restoring state upon --resume.

* Add a depgraph._load_favorites() method to resume state from a previous
  select_files() call. This allows Package instances to be matched with
  DependencyArg instances during graph creation.

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

16 years ago* Move circular deps and blocker displays to depgraph.display_problems().
Zac Medico [Sat, 3 May 2008 08:21:02 +0000 (08:21 -0000)]
* Move circular deps and blocker displays to depgraph.display_problems().
* Always call display_problems() since calling it from inside display()
  can lead to unwanted recursion.

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

16 years agoSimilar to the circular dependency display, handle the unsatisfied blocker
Zac Medico [Sat, 3 May 2008 05:53:06 +0000 (05:53 -0000)]
Similar to the circular dependency display, handle the unsatisfied blocker
display inside _serialize_tasks() since that's a convenient place to bail
out.

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

16 years agoUse absolute paths for files in ${DISTDIR}. Thanks to RB <aoz.syn@gmail.com>
Zac Medico [Sat, 3 May 2008 04:16:44 +0000 (04:16 -0000)]
Use absolute paths for files in ${DISTDIR}. Thanks to RB <aoz.syn@gmail.com>
for this patch.

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

16 years agoBuf #219294 - Fix 'date' and 'cut' arguments for BSD userland. Thanks to
Zac Medico [Sat, 3 May 2008 04:13:39 +0000 (04:13 -0000)]
Buf #219294 - Fix 'date' and 'cut' arguments for BSD userland. Thanks to
RB <aoz.syn@gmail.com> for this patch.

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

16 years agoAlso move mtimedb resume list validation earlier.
Zac Medico [Sat, 3 May 2008 03:47:21 +0000 (03:47 -0000)]
Also move mtimedb resume list validation earlier.

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

16 years agoMove --resume options handling to the beginning of action_build() so
Zac Medico [Sat, 3 May 2008 03:43:19 +0000 (03:43 -0000)]
Move --resume options handling to the beginning of action_build() so
that the current options are updated with the saved options as soon
as possible.

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

16 years agoMake --nodepa automatically disable --tree.
Zac Medico [Sat, 3 May 2008 03:27:09 +0000 (03:27 -0000)]
Make --nodepa automatically disable --tree.

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

16 years agoFix depgraph.loadResumeCommand() to identify an unsatisfied dependency
Zac Medico [Sat, 3 May 2008 02:55:16 +0000 (02:55 -0000)]
Fix depgraph.loadResumeCommand() to identify an unsatisfied dependency
and invalidate the resume list in that case.

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

16 years agoDelete the resume list(s) if there is an unsatisfied block.
Zac Medico [Sat, 3 May 2008 02:24:40 +0000 (02:24 -0000)]
Delete the resume list(s) if there is an unsatisfied block.

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

16 years agoAdd --nodeps to the parallel-fetch --resume options since recalculation of
Zac Medico [Sat, 3 May 2008 02:17:23 +0000 (02:17 -0000)]
Add --nodeps to the parallel-fetch --resume options since recalculation of
deps is a a waste here.

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

16 years agoFix --resume mode to check for unsatisfied blockers and bail out when
Zac Medico [Sat, 3 May 2008 02:14:08 +0000 (02:14 -0000)]
Fix --resume mode to check for unsatisfied blockers and bail out when
necessary.

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

16 years ago* Check for masked packages in the --resume merge list and bail
Zac Medico [Sat, 3 May 2008 01:42:25 +0000 (01:42 -0000)]
* Check for masked packages in the --resume merge list and bail
  out in that case (bug #199408).

* In depgraph.loadResumeCommand(), create a dependency graph from
  the resume list. This ensures that the merge list has it's
  dependencies satisfied. It also enables --tree display together
  with --resume.

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

16 years agoAdd a PackageVirtualDbapi.__iter__() method and use it to iterate over
Zac Medico [Fri, 2 May 2008 22:32:01 +0000 (22:32 -0000)]
Add a PackageVirtualDbapi.__iter__() method and use it to iterate over
all installed packages in depgraph.validate_blockers().

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

16 years agoUse match_pkgs() to simplify package comparison.
Zac Medico [Fri, 2 May 2008 22:11:25 +0000 (22:11 -0000)]
Use match_pkgs() to simplify package comparison.

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

16 years agoMove the blocker cache validation into depgraph.validate_blockers().
Zac Medico [Fri, 2 May 2008 21:47:50 +0000 (21:47 -0000)]
Move the blocker cache validation into depgraph.validate_blockers().

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

16 years agoIn depgraph.validate_blockers(), discard any "uninstall" tasks scheduled
Zac Medico [Fri, 2 May 2008 21:09:20 +0000 (21:09 -0000)]
In depgraph.validate_blockers(), discard any "uninstall" tasks scheduled
by previous calls, since those tasks may not make sense given the current
graph state.

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

16 years agoWhen searching for a "sys-apps/portage" installation task, use match_pkgs()
Zac Medico [Fri, 2 May 2008 20:30:01 +0000 (20:30 -0000)]
When searching for a "sys-apps/portage" installation task, use match_pkgs()
instead of sequential search.

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

16 years agoUse Package.cp attribute instead of calling cpv_getkey().
Zac Medico [Fri, 2 May 2008 20:16:06 +0000 (20:16 -0000)]
Use Package.cp attribute instead of calling cpv_getkey().

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

16 years agoUse Package instance attributes to clean up and simplify
Zac Medico [Fri, 2 May 2008 19:58:13 +0000 (19:58 -0000)]
Use Package instance attributes to clean up and simplify
depgraph.validate_blockers().

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

16 years agoIn depgraph._serialize_tasks(), filter "nomerge" nodes at a more appropriate
Zac Medico [Fri, 2 May 2008 19:20:29 +0000 (19:20 -0000)]
In depgraph._serialize_tasks(), filter "nomerge" nodes at a more appropriate
place.

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

16 years agoIn depgraph._complete_graph(), use cached Package instances instead
Zac Medico [Fri, 2 May 2008 19:02:46 +0000 (19:02 -0000)]
In depgraph._complete_graph(), use cached Package instances instead
of constructing new ones.

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

16 years agoValidate resume list data some more.
Zac Medico [Fri, 2 May 2008 18:27:16 +0000 (18:27 -0000)]
Validate resume list data some more.

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

16 years agoClean up merge list handling:
Zac Medico [Fri, 2 May 2008 17:47:48 +0000 (17:47 -0000)]
Clean up merge list handling:
* In depgraph.loadResumeCommand(), populate _serialized_tasks_cache so that
  it can be returned from depgraph.altlist().
* Handle --skipfirst instide depgraph.loadResumeCommand(), and fix it to skip
  the first "merge" task and never skip "uninstall" tasks.
* Always get the merge list from depgraph.altlist() instead of using
  the mtimedb directly. The list returned from depgraph.altlist()
  contains Package instances with cached metadata.
* Remove obsolete code from depgraph.display() and MergeTask.merge() since
  the merge list always comes from depgraph.altlist() now, and never directly
  from the mtimedb.

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

16 years agoUpdate documentation for package set configuration. Original patch by Arfrever Frehte...
Marius Mauch [Fri, 2 May 2008 10:46:47 +0000 (10:46 -0000)]
Update documentation for package set configuration. Original patch by Arfrever Frehtes Taifersar Arahesis

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

16 years agorename NEEDED.2 to NEEDED.ELF.2 to allow other ABI formats to use a different syntax
Marius Mauch [Fri, 2 May 2008 10:04:20 +0000 (10:04 -0000)]
rename NEEDED.2 to NEEDED.ELF.2 to allow other ABI formats to use a different syntax

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

16 years agofix typo
Marius Mauch [Fri, 2 May 2008 09:35:56 +0000 (09:35 -0000)]
fix typo

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

16 years agouse special symlink comparison code (original patch from prefix r9499)
Marius Mauch [Fri, 2 May 2008 09:28:37 +0000 (09:28 -0000)]
use special symlink comparison code (original patch from prefix r9499)

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

16 years agov2 of FEATURES=preserved-libs, using LinkageMap instead of the now removed LibraryPac...
Marius Mauch [Fri, 2 May 2008 08:20:39 +0000 (08:20 -0000)]
v2 of FEATURES=preserved-libs, using LinkageMap instead of the now removed LibraryPackageMap class

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

16 years agodo not consider sets to be installed that are about to be unmerged
Marius Mauch [Fri, 2 May 2008 05:09:48 +0000 (05:09 -0000)]
do not consider sets to be installed that are about to be unmerged

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

16 years agomove cleaning of sets out of package loop
Marius Mauch [Fri, 2 May 2008 05:00:46 +0000 (05:00 -0000)]
move cleaning of sets out of package loop

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

16 years agoproperly remove sets from 'world' when unmerging
Marius Mauch [Fri, 2 May 2008 04:57:52 +0000 (04:57 -0000)]
properly remove sets from 'world' when unmerging

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

16 years agoadd config option for package sets to not be recorded in 'world'
Marius Mauch [Fri, 2 May 2008 04:17:52 +0000 (04:17 -0000)]
add config option for package sets to not be recorded in 'world'

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

16 years agocheck if a given package set is defined more than once
Marius Mauch [Fri, 2 May 2008 03:24:30 +0000 (03:24 -0000)]
check if a given package set is defined more than once

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

16 years agoremove 'sets/' name-prefix for file-based package sets
Marius Mauch [Fri, 2 May 2008 03:23:38 +0000 (03:23 -0000)]
remove 'sets/' name-prefix for file-based package sets

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

16 years agoFix broken variable references found by pyflakes.
Zac Medico [Fri, 2 May 2008 03:23:36 +0000 (03:23 -0000)]
Fix broken variable references found by pyflakes.

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

16 years agoSkip group/owner tarsync options for tarsync if chown on /usr/portage
Zac Medico [Fri, 2 May 2008 02:56:45 +0000 (02:56 -0000)]
Skip group/owner tarsync options for tarsync if chown on /usr/portage
fails, since the user might still be able to sync even though the
chown call is not permitted.

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

16 years agocheck if PORTAGE_TMPDIR is mounted readonly/noexec (bug #219957)
Marius Mauch [Fri, 2 May 2008 02:53:14 +0000 (02:53 -0000)]
check if PORTAGE_TMPDIR is mounted readonly/noexec (bug #219957)

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

16 years agoBug #219837 - Adjust date calculations some more and show an
Zac Medico [Fri, 2 May 2008 02:27:37 +0000 (02:27 -0000)]
Bug #219837 - Adjust date calculations some more and show an
informative ewarn message when bailing out due to a newer
snapshot being unavailable.

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

16 years agoFix variable rename breakage: pkg -> pkg.cpv
Zac Medico [Thu, 1 May 2008 20:33:03 +0000 (20:33 -0000)]
Fix variable rename breakage: pkg -> pkg.cpv

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

16 years agoWhen adding blockers for installed packages to the graph, use cached
Zac Medico [Thu, 1 May 2008 19:15:26 +0000 (19:15 -0000)]
When adding blockers for installed packages to the graph, use cached
Package instances instead of constructing new ones.

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

16 years agoDetect an old version of tarsync and use bzip2 compression in that case.
Zac Medico [Thu, 1 May 2008 07:26:36 +0000 (07:26 -0000)]
Detect an old version of tarsync and use bzip2 compression in that case.

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

16 years agoSort blockers when caching them.
Zac Medico [Thu, 1 May 2008 05:42:55 +0000 (05:42 -0000)]
Sort blockers when caching them.

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

16 years agoDon't add blockers to the graph more times than necessary.
Zac Medico [Thu, 1 May 2008 05:30:55 +0000 (05:30 -0000)]
Don't add blockers to the graph more times than necessary.

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

16 years ago* Add a Package.operation attribute and use it to distinguish "uninstall"
Zac Medico [Thu, 1 May 2008 04:17:34 +0000 (04:17 -0000)]
* Add a Package.operation attribute and use it to distinguish "uninstall"
  operations.

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