portage.git
16 years agoDocument FEATURES="metadata-transfer" changes some more. (trunk r9934)
Zac Medico [Mon, 21 Apr 2008 05:16:24 +0000 (05:16 -0000)]
Document FEATURES="metadata-transfer" changes some more. (trunk r9934)

svn path=/main/branches/2.1.2/; revision=9935

16 years agoFix portage version, should be >=2.1.5. (trunk r9932)
Zac Medico [Mon, 21 Apr 2008 04:27:08 +0000 (04:27 -0000)]
Fix portage version, should be >=2.1.5. (trunk r9932)

svn path=/main/branches/2.1.2/; revision=9933

16 years ago* Make portdbapi.aux_get() automatically pull pre-generated metadata
Zac Medico [Mon, 21 Apr 2008 04:18:12 +0000 (04:18 -0000)]
* Make portdbapi.aux_get() automatically pull pre-generated metadata
  directly from the metadata/cache/ directory when metadata-transfer
  is not enabled in FEATURES. This makes all cache modules behave
  similar to existing metadata_overlay module, except when
  FEATURES="metadata-transfer" has been explicitly enabled.

* Remove metadata-transfer from FEATURES in make.globals so that it's
  no longer enabled by default. Users will be happy about this since
  the "Updating Portage cache" part of emerge --sync can be more time
  consuming than the rsync run itself. It's also nicer when when using
  PORTDIR over nfs or bind mounted in a chroot since there's no need
  to run emerge --metadata.

* Update FEATURES="metadata-transfer" docs to warn users of the rsync
  tree to modify eclases in PORTDIR_OVERLAY if necessary instead of
  doing it directly in the rsync tree.

* Relevant updates to /etc/portage/modules docs.

(trunk r9930)

svn path=/main/branches/2.1.2/; revision=9931

16 years agoBug #218559 - Make portdbapi automatically add sandbox write access to
Zac Medico [Sun, 20 Apr 2008 20:53:33 +0000 (20:53 -0000)]
Bug #218559 - Make portdbapi automatically add sandbox write access to
self.depcachedir when appropriate. This makes the portageq blanket sandbox
exemption unnecessary. (trunk r9928)

svn path=/main/branches/2.1.2/; revision=9929

16 years agoAdd a new part for "Dependency Resolution". (trunk r9926)
Zac Medico [Sat, 19 Apr 2008 13:12:11 +0000 (13:12 -0000)]
Add a new part for "Dependency Resolution". (trunk r9926)

svn path=/main/branches/2.1.2/; revision=9927

16 years agoBug #218202 - Make sure the spinner is quiet in --nodep mode. (trunk r9924)
Zac Medico [Fri, 18 Apr 2008 04:15:07 +0000 (04:15 -0000)]
Bug #218202 - Make sure the spinner is quiet in --nodep mode. (trunk r9924)

svn path=/main/branches/2.1.2/; revision=9925

16 years agoMake the ccache userpriv permission check from bug #162542 less sensitive
Zac Medico [Fri, 18 Apr 2008 01:44:15 +0000 (01:44 -0000)]
Make the ccache userpriv permission check from bug #162542 less sensitive
by skipping permission checks on files and just checking the directories.
(trunk r9922)

svn path=/main/branches/2.1.2/; revision=9923

16 years agoRemove redundant version sorting in _expand_new_virtuals() since the
Zac Medico [Wed, 16 Apr 2008 22:31:23 +0000 (22:31 -0000)]
Remove redundant version sorting in _expand_new_virtuals() since the
dbapi match results are already sorted. (trunk r9920)

svn path=/main/branches/2.1.2/; revision=9921

16 years agoFix portdbapi.getfetchlist() so that it doesn't unnecessarily calculate
Zac Medico [Wed, 16 Apr 2008 18:09:27 +0000 (18:09 -0000)]
Fix portdbapi.getfetchlist() so that it doesn't unnecessarily calculate
USE when the "all" parameter is True. (trunk r9918)

svn path=/main/branches/2.1.2/; revision=9919

16 years agoIf the mysettings parameter is not passed in to portdbapi.getfetchlist()
Zac Medico [Wed, 16 Apr 2008 18:02:48 +0000 (18:02 -0000)]
If the mysettings parameter is not passed in to portdbapi.getfetchlist()
then substitue self.doebuild_settings since that one is mutable which
is necessary in case setcpv() needs to be called. (trunk r9916)

svn path=/main/branches/2.1.2/; revision=9917

16 years agoBug #217905 - Fix portdbapi.getfetchlist() to correctly calculate
Zac Medico [Wed, 16 Apr 2008 17:55:24 +0000 (17:55 -0000)]
Bug #217905 - Fix portdbapi.getfetchlist() to correctly calculate
USE when the useflags parameter is not passed in. (trunk r9914)

svn path=/main/branches/2.1.2/; revision=9915

16 years agoHandle potential InvalidDependString exceptions from visible(). (trunk r9912)
Zac Medico [Wed, 16 Apr 2008 00:19:56 +0000 (00:19 -0000)]
Handle potential InvalidDependString exceptions from visible(). (trunk r9912)

svn path=/main/branches/2.1.2/; revision=9913

16 years agoInside dblink.unmerge(), call self.updateprotect() just in case anything
Zac Medico [Tue, 15 Apr 2008 23:12:58 +0000 (23:12 -0000)]
Inside dblink.unmerge(), call self.updateprotect() just in case anything
has changed since the dblink instance was constructed. (trunk r9910)

svn path=/main/branches/2.1.2/; revision=9911

16 years agoThe dependency resolver now has a feedback mechanism that helps make atom
Zac Medico [Tue, 15 Apr 2008 17:56:20 +0000 (17:56 -0000)]
The dependency resolver now has a feedback mechanism that helps make atom
selections more consistent with previous selections that have been added to
the graph. This solves some common cases of bug #1343. (trunk r9906)

svn path=/main/branches/2.1.2/; revision=9907

16 years agoComment some more on the significance of passing the graph_db and parent
Zac Medico [Tue, 15 Apr 2008 17:16:01 +0000 (17:16 -0000)]
Comment some more on the significance of passing the graph_db and parent
into depgraph._select_atoms() to solve some cases of bug #1343 while
avoiding unresolvable direct circular dependencies. (trunk r9904)

svn path=/main/branches/2.1.2/; revision=9905

16 years agoAdd support to depgraph._select_atoms() to take a "parent" parameter
Zac Medico [Tue, 15 Apr 2008 06:32:24 +0000 (06:32 -0000)]
Add support to depgraph._select_atoms() to take a "parent" parameter
and use that to try and avoid unresolvable direct circular dependencies
when necessary. Also, make atom selection more consistent with the
graph to solve some cases of bug #1343. This improves the fix from
bug #141118 to work in cases when a virtual is not yet installed but
it has been pulled into the graph. For example, see the case of
Bug #163801#c17, where we want kaffe to satisfy virtual/jdk-1.4
without an extra jvm being pulled in unnecessarily. (trunk r9901)

svn path=/main/branches/2.1.2/; revision=9903

16 years agoRevert part of atom selection consistency improvement from r9873 since it
Zac Medico [Tue, 15 Apr 2008 06:17:54 +0000 (06:17 -0000)]
Revert part of atom selection consistency improvement from r9873 since it
in some cases it triggers unresolvable direct circular dependencies. For
example, this happens with gwydion-dylan which depends on either itself
or gwydion-dylan-bin. In case gwydion-dylan is not yet installed,
gwydion-dylan-bin needs to be selected in order to avoid a an unresolvable
direct circular dependency. (trunk r9900)

svn path=/main/branches/2.1.2/; revision=9902

16 years agoBug #217664 - Fix emerge 'by path' package argument handling so that
Zac Medico [Mon, 14 Apr 2008 23:54:18 +0000 (23:54 -0000)]
Bug #217664 - Fix emerge 'by path' package argument handling so that
Package instances are properly cached (avoiding a KeyError later).
(trunk r9898)

svn path=/main/branches/2.1.2/; revision=9899

16 years agoIn config.setcpv() and regenerate(), replace str.startswith() calls with
Zac Medico [Mon, 14 Apr 2008 21:56:16 +0000 (21:56 -0000)]
In config.setcpv() and regenerate(), replace str.startswith() calls with
slice comparison. It's not pretty but performance is critical in this section
of code and there is a measurable performance difference. (trunk r9896)

svn path=/main/branches/2.1.2/; revision=9897

16 years ago* Call depgraph._add_dep() to add package dependencies to the graph
Zac Medico [Mon, 14 Apr 2008 01:35:25 +0000 (01:35 -0000)]
* Call depgraph._add_dep() to add package dependencies to the graph
  as soon as possible rather than pushing them onto the stack. (trunk r9885)

* Fix some breakage in the allow_unsatisfied handling. (trunk r9886)

svn path=/main/branches/2.1.2/; revision=9889

16 years agoSplit out a depgraph._add_dep() method. (trunk r9884)
Zac Medico [Mon, 14 Apr 2008 01:32:24 +0000 (01:32 -0000)]
Split out a depgraph._add_dep() method. (trunk r9884)

svn path=/main/branches/2.1.2/; revision=9888

16 years agos/timetasmp/timestamp/ (trunk r9883)
Zac Medico [Mon, 14 Apr 2008 01:27:41 +0000 (01:27 -0000)]
s/timetasmp/timestamp/ (trunk r9883)

svn path=/main/branches/2.1.2/; revision=9887

16 years ago* For optimal atom selection, use PackageVirtualDbapi instances in place
Zac Medico [Sun, 13 Apr 2008 23:21:13 +0000 (23:21 -0000)]
* For optimal atom selection, use PackageVirtualDbapi instances in place
  of the vardb for all dep_check() calls.
* Replace dep_check_trees in depgraph.validate_blockers() with the
  equivalent self._graph_trees reference.
(trunk r9879)

svn path=/main/branches/2.1.2/; revision=9880

16 years agoTo optimize consistency of atom selections, add all of the root packages
Zac Medico [Sun, 13 Apr 2008 22:22:14 +0000 (22:22 -0000)]
To optimize consistency of atom selections, add all of the root packages
to the graph before processing any dependencies. (trunk r9874)

svn path=/main/branches/2.1.2/; revision=9878

16 years agoImprove lookahead for new-style virtuals:
Zac Medico [Sun, 13 Apr 2008 22:19:47 +0000 (22:19 -0000)]
Improve lookahead for new-style virtuals:

* Substitute the graph tree for the vartree in dep_check() since we
  want atom selections to be consistent with package selections
  that have already been made.
* Add the selected package to the graph as soon as possible
  so that later dep_check() calls can use it as feedback
  for making more consistent atom selections.
* Expand all slots of new-style virtuals inside _dep_check_composite_db
  so that lookahead examines all matched slots.

This solves some cases of bug #1343, and extends the fix for bug
#141118 to work in cases when a virtual is not yet installed but
it has been pulled into the graph.

(trunk r9873)

svn path=/main/branches/2.1.2/; revision=9877

16 years agoMake _dep_check_composite_db match() return multiple slots so that
Zac Medico [Sun, 13 Apr 2008 22:13:59 +0000 (22:13 -0000)]
Make _dep_check_composite_db match() return multiple slots so that
it behaves more like other dbapi instances would, and also make it
inherit from dbapi. (trunk r9869:9872)

svn path=/main/branches/2.1.2/; revision=9876

16 years agoMake movefile() tolerant to EPERM errors that can be raised from utime()
Zac Medico [Sun, 13 Apr 2008 22:07:18 +0000 (22:07 -0000)]
Make movefile() tolerant to EPERM errors that can be raised from utime()
calls. Instead of failing, use stat() to return the mtime if possible.
(trunk r9863:9865)

svn path=/main/branches/2.1.2/; revision=9875

16 years agoBug #215673 - Make ebuild.sh leave IUSE defaults intact instead of filtering
Zac Medico [Sun, 13 Apr 2008 05:40:33 +0000 (05:40 -0000)]
Bug #215673 - Make ebuild.sh leave IUSE defaults intact instead of filtering
them out. The built_with_use() function in eutils.eclass needs to be updated
for compatibility. (trunk r9674)

svn path=/main/branches/2.1.2/; revision=9863

16 years agoIn --buildpkgonly mode, don't discard RDEPEND and PDEPEND if --empty or
Zac Medico [Sun, 13 Apr 2008 01:56:35 +0000 (01:56 -0000)]
In --buildpkgonly mode, don't discard RDEPEND and PDEPEND if --empty or
--deep are enabled. The makes it possible to run `emerge -eB world` and
have every single package rebuilt (without actually installing anything).
(trunk r9860)

svn path=/main/branches/2.1.2/; revision=9861

16 years agoFix the filtering for bug #215016:
Zac Medico [Sat, 12 Apr 2008 20:37:49 +0000 (20:37 -0000)]
Fix the filtering for bug #215016:

* fix broken comparison for he iuse filtering
* filter out any duplicates that variable may contain
(trunk r9858)

svn path=/main/branches/2.1.2/; revision=9859

16 years agoBug #217444 - Send debug-print() output to stderr so that it can't interfere
Zac Medico [Sat, 12 Apr 2008 19:54:38 +0000 (19:54 -0000)]
Bug #217444 - Send debug-print() output to stderr so that it can't interfere
with command substitution. Thanks to Fabio Rossi <rossi.f@inwind.it> for
this patch. (trunk r9856)

svn path=/main/branches/2.1.2/; revision=9857

16 years ago* Optimize config.setcpv() to return early if IUSE has not changed since
Zac Medico [Sat, 12 Apr 2008 19:40:28 +0000 (19:40 -0000)]
* Optimize config.setcpv() to return early if IUSE has not changed since
  the previous setcpv() call.

* Add EBUILD_PHASE to the blacklisted variables list.

(trunk r9854)

svn path=/main/branches/2.1.2/; revision=9855

16 years agoBug #215016 - When transforming of USE flags to USE_EXPAND variables,
Zac Medico [Sat, 12 Apr 2008 18:49:40 +0000 (18:49 -0000)]
Bug #215016 - When transforming of USE flags to USE_EXPAND variables,
filter out flags that aren't considered to be part of IUSE or implicit
IUSE. This patch moves all IUSE dependent code from config.regenerate()
to config.setcpv(). (trunk r9852)

svn path=/main/branches/2.1.2/; revision=9853

16 years agoMake binarytree.prevent_collision() adjust permissions on directories
Zac Medico [Sat, 12 Apr 2008 09:23:06 +0000 (09:23 -0000)]
Make binarytree.prevent_collision() adjust permissions on directories
and raise a PermissionDenied error if the required directories is
not writable. (trunk r9850)

svn path=/main/branches/2.1.2/; revision=9851

16 years agoAdd some notes for the parallel-fetch feature and the new --complete-graph
Zac Medico [Fri, 11 Apr 2008 23:55:54 +0000 (23:55 -0000)]
Add some notes for the parallel-fetch feature and the new --complete-graph
option for emerge. (trunk r9848)

svn path=/main/branches/2.1.2/; revision=9849

16 years agoRename the undocumented --conistent option to --complete-graph and add
Zac Medico [Fri, 11 Apr 2008 23:05:00 +0000 (23:05 -0000)]
Rename the undocumented --conistent option to --complete-graph and add
some docs. (trunk r9846)

svn path=/main/branches/2.1.2/; revision=9847

16 years agoMake file_get() redirect FETCHCOMMAND output to stdout just like
Zac Medico [Fri, 11 Apr 2008 21:58:31 +0000 (21:58 -0000)]
Make file_get() redirect FETCHCOMMAND output to stdout just like
portage.fetch() does. Thanks to Ramereth for reporting. (trunk r9844)

svn path=/main/branches/2.1.2/; revision=9845

16 years agoFix 'undefined name' errors found by pyflakes. (trunk r9842)
Zac Medico [Fri, 11 Apr 2008 21:20:14 +0000 (21:20 -0000)]
Fix 'undefined name' errors found by pyflakes. (trunk r9842)

svn path=/main/branches/2.1.2/; revision=9843

16 years agoWhen dep_check() expands new-style virtuals, use USE flags from aux_get
Zac Medico [Fri, 11 Apr 2008 20:29:47 +0000 (20:29 -0000)]
When dep_check() expands new-style virtuals, use USE flags from aux_get
calls to evaluate any conditionals that the depstrings might contain. This
works properly for ebuilds now that aux_get() is backed by Package instances
containing the correct USE. (trunk r9838:9840)

svn path=/main/branches/2.1.2/; revision=9841

16 years agoMake doebuild() bail out early with a PermissionDenied error if there
Zac Medico [Fri, 11 Apr 2008 19:55:50 +0000 (19:55 -0000)]
Make doebuild() bail out early with a PermissionDenied error if there
is no write access to $PKGDIR. (trunk r9837)

svn path=/main/branches/2.1.2/; revision=9838

16 years agoRemove all calls to config.load_infodir() since it doesn't seem
Zac Medico [Fri, 11 Apr 2008 19:07:25 +0000 (19:07 -0000)]
Remove all calls to config.load_infodir() since it doesn't seem
to server any purpose now that the complete environment is loaded
from environment.bz2. (trunk r9833:9835)

svn path=/main/branches/2.1.2/; revision=9836

16 years agoIn config.setcpv() and load_infodir(), always set known good values
Zac Medico [Fri, 11 Apr 2008 18:48:33 +0000 (18:48 -0000)]
In config.setcpv() and load_infodir(), always set known good values
for CATEGORY and PF, since corruption of these can cause problems.
(trunk r9832)

svn path=/main/branches/2.1.2/; revision=9833

16 years agoCopy group mode bits from $PKGDIR when creating subdirectories.
Zac Medico [Fri, 11 Apr 2008 03:28:02 +0000 (03:28 -0000)]
Copy group mode bits from $PKGDIR when creating subdirectories.
(trunk r9827)

svn path=/main/branches/2.1.2/; revision=9828

16 years agoTweak --buildpkgonly and fakeroot logic so that --buildpkgonly can be
Zac Medico [Fri, 11 Apr 2008 00:50:03 +0000 (00:50 -0000)]
Tweak --buildpkgonly and fakeroot logic so that --buildpkgonly can be
used by a non-root user to build binary packages with fakeroot.
(trunk r9825)

svn path=/main/branches/2.1.2/; revision=9826

16 years agoNest the DepcheckCompositeDB class inside the depgraph class since it's
Zac Medico [Thu, 10 Apr 2008 23:30:56 +0000 (23:30 -0000)]
Nest the DepcheckCompositeDB class inside the depgraph class since it's
not intended for use elsewhere. (trunk r9823)

svn path=/main/branches/2.1.2/; revision=9824

16 years agoRename variable pkg_cpv to pkg_str. (trunk r9821)
Zac Medico [Thu, 10 Apr 2008 21:08:42 +0000 (21:08 -0000)]
Rename variable pkg_cpv to pkg_str. (trunk r9821)

svn path=/main/branches/2.1.2/; revision=9822

16 years agoFix "pkg" variable name collisions in depgraph.display(). (trunk r9819)
Zac Medico [Thu, 10 Apr 2008 21:04:58 +0000 (21:04 -0000)]
Fix "pkg" variable name collisions in depgraph.display(). (trunk r9819)

svn path=/main/branches/2.1.2/; revision=9820

16 years agoMake the CHOST visibility check tolerant of missing CHOST metadata.
Zac Medico [Thu, 10 Apr 2008 20:46:56 +0000 (20:46 -0000)]
Make the CHOST visibility check tolerant of missing CHOST metadata.
(trunk r9817)

svn path=/main/branches/2.1.2/; revision=9818

16 years agoBug #217122 - When waiting for a parallel-fetch download to complete,
Zac Medico [Thu, 10 Apr 2008 20:37:41 +0000 (20:37 -0000)]
Bug #217122 - When waiting for a parallel-fetch download to complete,
show a more friendly and informative message.
(trunk r9815)

svn path=/main/branches/2.1.2/; revision=9816

16 years agoRemove an unused function. (trunk r9810)
Zac Medico [Thu, 10 Apr 2008 18:47:19 +0000 (18:47 -0000)]
Remove an unused function. (trunk r9810)

svn path=/main/branches/2.1.2/; revision=9814

16 years agoImplement expansion of catgories in DepcheckCompositeDB.match() for old
Zac Medico [Thu, 10 Apr 2008 18:45:28 +0000 (18:45 -0000)]
Implement expansion of catgories in DepcheckCompositeDB.match() for old
installed packages that may contain atoms that are not fully qualified.
(trunk r9808)

svn path=/main/branches/2.1.2/; revision=9813

16 years agoMake the "this code is not 64bit clean" die less strict like it was before so
Zac Medico [Thu, 10 Apr 2008 16:19:30 +0000 (16:19 -0000)]
Make the "this code is not 64bit clean" die less strict like it was before so
that maintainers aren't disturbed by too many bugs like bug #216848.

svn path=/main/branches/2.1.2/; revision=9802

16 years agoIterate over a copy of the digraph nodes so that removal can't break
Zac Medico [Thu, 10 Apr 2008 09:11:56 +0000 (09:11 -0000)]
Iterate over a copy of the digraph nodes so that removal can't break
the iterator. (trunk r9799)

svn path=/main/branches/2.1.2/; revision=9800

16 years agoMake sure that everything except Package nodes is ignored when doing
Zac Medico [Thu, 10 Apr 2008 08:43:34 +0000 (08:43 -0000)]
Make sure that everything except Package nodes is ignored when doing
the --buildpkgonly digraph.hasallzeros() check. (trunk r9797)

svn path=/main/branches/2.1.2/; revision=9798

16 years agoAdd some docs for the DepcheckCompositeDB class. (trunk r9785)
Zac Medico [Thu, 10 Apr 2008 07:45:08 +0000 (07:45 -0000)]
Add some docs for the DepcheckCompositeDB class. (trunk r9785)

svn path=/main/branches/2.1.2/; revision=9796

16 years agoUse cached Package instances in depgraph.display(). (trunk r9794)
Zac Medico [Thu, 10 Apr 2008 06:37:30 +0000 (06:37 -0000)]
Use cached Package instances in depgraph.display(). (trunk r9794)

svn path=/main/branches/2.1.2/; revision=9795

16 years ago* Make depclean/prune use cached Package instances for visibility checks.
Zac Medico [Thu, 10 Apr 2008 06:15:24 +0000 (06:15 -0000)]
* Make depclean/prune use cached Package instances for visibility checks.
* Make FakeVartree wrap dbapi.match() to make sure the metadata in Package
  instances gets updated for any cpv that is returned from a match()
  call, since the metadata can be accessed directly from the Package instance
  instead of via aux_get().
(trunk r9789)

svn path=/main/branches/2.1.2/; revision=9793

16 years agoMake FakeVartree use PackageVirtualDbapi instead of fakedbapi so that it can
Zac Medico [Thu, 10 Apr 2008 06:14:25 +0000 (06:14 -0000)]
Make FakeVartree use PackageVirtualDbapi instead of fakedbapi so that it can
populate and utilize a cache of Package instances. (trunk r9788)

svn path=/main/branches/2.1.2/; revision=9792

16 years agoImprove used of cached Package instances in depgraph._select_pkg_from_graph().
Zac Medico [Thu, 10 Apr 2008 06:09:08 +0000 (06:09 -0000)]
Improve used of cached Package instances in depgraph._select_pkg_from_graph().
(trunk r9787)

svn path=/main/branches/2.1.2/; revision=9791

16 years agoReplace the fakedbapi class that is used to track depgraph state with a
Zac Medico [Thu, 10 Apr 2008 06:08:07 +0000 (06:08 -0000)]
Replace the fakedbapi class that is used to track depgraph state with a
similar PackageVirtualDbapi class that uses Package instances internally.
This eliminates some redundancy since the Package instances can be reused
elsewhere, unlike the internal data structures used by fakedbapi.
(trunk r9786)

svn path=/main/branches/2.1.2/; revision=9790

16 years agoPull in "system" as a separate set instead of mixing it with "world".
Zac Medico [Wed, 9 Apr 2008 21:12:31 +0000 (21:12 -0000)]
Pull in "system" as a separate set instead of mixing it with "world".

svn path=/main/branches/2.1.2/; revision=9784

16 years agoTo avoid false positives during the transition
Zac Medico [Wed, 9 Apr 2008 20:50:26 +0000 (20:50 -0000)]
To avoid false positives during the transition
period, don't show ? if the installed package
is missing a repository label. Stages starting
with 2008.0 will come with repository labels.

svn path=/main/branches/2.1.2/; revision=9783

16 years agoAdd system atoms to world since we're trying to emulate behavior of older
Zac Medico [Wed, 9 Apr 2008 20:39:26 +0000 (20:39 -0000)]
Add system atoms to world since we're trying to emulate behavior of older
portage (rather than the latest behavior which is different).

svn path=/main/branches/2.1.2/; revision=9782

16 years agoFix a potential TypeError.
Zac Medico [Wed, 9 Apr 2008 18:45:33 +0000 (18:45 -0000)]
Fix a potential TypeError.

svn path=/main/branches/2.1.2/; revision=9781

16 years agoWhen checking atoms without categories against the installed packages, just
Zac Medico [Wed, 9 Apr 2008 18:33:19 +0000 (18:33 -0000)]
When checking atoms without categories against the installed packages, just
check for existence of the cat/pn rather that a full match. (trunk r9779)

svn path=/main/branches/2.1.2/; revision=9780

16 years agoFix the docstring for depgraph._dep_expand(). (trunk r9777)
Zac Medico [Wed, 9 Apr 2008 18:21:58 +0000 (18:21 -0000)]
Fix the docstring for depgraph._dep_expand(). (trunk r9777)

svn path=/main/branches/2.1.2/; revision=9778

16 years agoFix minor issues in the calculation of the number of parents omitted from
Zac Medico [Wed, 9 Apr 2008 18:04:29 +0000 (18:04 -0000)]
Fix minor issues in the calculation of the number of parents omitted from
the slot collision display. (trunk r9775)

svn path=/main/branches/2.1.2/; revision=9776

16 years agoWhen pruning the list of parents for the slot collision display, always
Zac Medico [Wed, 9 Apr 2008 17:54:24 +0000 (17:54 -0000)]
When pruning the list of parents for the slot collision display, always
show parents that themselves have been pulled into collision slots, since
those are more relevant that others.

svn path=/main/branches/2.1.2/; revision=9773

16 years agoMake DepcheckCompositeDB cache Package instances for aux_get() calls.
Zac Medico [Wed, 9 Apr 2008 17:02:10 +0000 (17:02 -0000)]
Make DepcheckCompositeDB cache Package instances for aux_get() calls.
(trunk r9771)

svn path=/main/branches/2.1.2/; revision=9772

16 years agoWhen depgraph.select_files() expands an atom category, in case of an old-style
Zac Medico [Wed, 9 Apr 2008 16:15:57 +0000 (16:15 -0000)]
When depgraph.select_files() expands an atom category, in case of an old-style
virtual, defer category expansion so that the depgraph has more choices.
(trunk r9769)

svn path=/main/branches/2.1.2/; revision=9770

16 years agoCreate a new depgraph._dep_expand() method for select_files() to expand
Zac Medico [Wed, 9 Apr 2008 07:33:47 +0000 (07:33 -0000)]
Create a new depgraph._dep_expand() method for select_files() to expand
atoms that have no category. (trunk r9765)

svn path=/main/branches/2.1.2/; revision=9768

16 years agoMake depgraph.select_files() detect when a package name given as an argument
Zac Medico [Wed, 9 Apr 2008 07:29:34 +0000 (07:29 -0000)]
Make depgraph.select_files() detect when a package name given as an argument
is ambiguous due to the existence of a new-style virtual with the same
name (cpv_expand() will not always raise a ValueError in cases like this).
(trunk r9762)

svn path=/main/branches/2.1.2/; revision=9767

16 years agoSplit out a depgraph method to check if a specific new-style virtual
Zac Medico [Wed, 9 Apr 2008 07:27:50 +0000 (07:27 -0000)]
Split out a depgraph method to check if a specific new-style virtual
package exists. (trunk r9761)

svn path=/main/branches/2.1.2/; revision=9766

16 years agoHandle issues with newlines in elog messages that can trigger an unhandled
Zac Medico [Wed, 9 Apr 2008 05:31:53 +0000 (05:31 -0000)]
Handle issues with newlines in elog messages that can trigger an unhandled
ValueError to be raised from a split() call inside collect_ebuild_messages():
* Use \0 to delimit messages, so that that elog messages containing newlines
  are handled correctly.
* Handle a potential ValueError when splitting the message type.
(trunk r9763)

svn path=/main/branches/2.1.2/; revision=9764

16 years agoBug #162542 - When checking permissions inside CCACHE_DIR for compatibility
Zac Medico [Tue, 8 Apr 2008 22:46:36 +0000 (22:46 -0000)]
Bug #162542 - When checking permissions inside CCACHE_DIR for compatibility
with FEATURES=userpriv, check the permissions on files inside the directory
to decide whether to fix the permissions. (trunk r9759)

svn path=/main/branches/2.1.2/; revision=9760

16 years agoBug #197810 - Don't automatically downgrade packages for which available
Zac Medico [Tue, 8 Apr 2008 20:01:38 +0000 (20:01 -0000)]
Bug #197810 - Don't automatically downgrade packages for which available
matching versions are masked by corruption, but do automatically downgrade
installed packages that themselves have a valid mask such as from
package.mask. (trunk r9756)

svn path=/main/branches/2.1.2/; revision=9758

16 years agoFix --update greedy atoms logic so that it only pulls in packages that
Zac Medico [Tue, 8 Apr 2008 19:58:19 +0000 (19:58 -0000)]
Fix --update greedy atoms logic so that it only pulls in packages that
actually match the given atom. (trunk r9755)

svn path=/main/branches/2.1.2/; revision=9757

16 years agoMerge improved argument handling and other general depgraph improvements
Zac Medico [Tue, 8 Apr 2008 07:36:14 +0000 (07:36 -0000)]
Merge improved argument handling and other general depgraph improvements
from trunk.

svn path=/main/branches/2.1.2/; revision=9754

16 years agoFor repoman, only cache the metadata necessary for visibility
Zac Medico [Tue, 8 Apr 2008 05:42:01 +0000 (05:42 -0000)]
For repoman, only cache the metadata necessary for visibility
checks in order to reduce memory consumption. (trunk r9743)

svn path=/main/branches/2.1.2/; revision=9753

16 years ago* Optimize metadata caching in pordbapi and bindbapi so that cache is
Zac Medico [Tue, 8 Apr 2008 05:38:33 +0000 (05:38 -0000)]
* Optimize metadata caching in pordbapi and bindbapi so that cache is
  never pulled for the same package twice.
* Cache a Package instances constructed during package selection
  and reuse them during later package selections.
(trunk r9741)

svn path=/main/branches/2.1.2/; revision=9752

16 years agoIn dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that they are always
Zac Medico [Tue, 8 Apr 2008 04:59:44 +0000 (04:59 -0000)]
In dump_trace(), fix BASH_ARGV and BASH_ARGC offsets so that they are always
correct wrt eachother. Thanks to Betelgeuse for reporting. (trunk r9732:9734)

svn path=/main/branches/2.1.2/; revision=9751

16 years agoFix java.eclassesnotused logic. Thanks to Betelgeuse. (trunk r9732)
Zac Medico [Tue, 8 Apr 2008 04:56:58 +0000 (04:56 -0000)]
Fix java.eclassesnotused logic. Thanks to Betelgeuse. (trunk r9732)

svn path=/main/branches/2.1.2/; revision=9750

16 years ago* Use type -P which does not produce messages to stderr.
Zac Medico [Tue, 8 Apr 2008 04:55:46 +0000 (04:55 -0000)]
* Use type -P which does not produce messages to stderr.
another option is to redirect both stderr and out.
* Avoid &> replace with > ... 2>&1
Thanks to Alon Bar-Lev for this patch.
(trunk r9727)

svn path=/main/branches/2.1.2/; revision=9749

16 years agoBug #197905 - Preserve order of ebuild messages even between different
Zac Medico [Tue, 8 Apr 2008 04:54:35 +0000 (04:54 -0000)]
Bug #197905 - Preserve order of ebuild messages even between different
message types. (trunk r9726 and r9747)

svn path=/main/branches/2.1.2/; revision=9748

16 years agoClarify --with-bdeps behavior with example. Thanks to Griffon26 for
Zac Medico [Tue, 8 Apr 2008 04:25:18 +0000 (04:25 -0000)]
Clarify --with-bdeps behavior with example. Thanks to Griffon26 for
this patch. (trunk r9725)

svn path=/main/branches/2.1.2/; revision=9746

16 years agoFix the CompositDbapi.match() logic wrt "selective" behavior and installed
Zac Medico [Sun, 6 Apr 2008 18:54:26 +0000 (18:54 -0000)]
Fix the CompositDbapi.match() logic wrt "selective" behavior and installed
packages so that it correctly handles false argument matches due to PROVIDE
when a corresponding new-style virtual exists. (trunk r9729)

svn path=/main/branches/2.1.2/; revision=9730

16 years agoWhen necessary, make quickpkg add missing metadata to the vdb entry before
Zac Medico [Sat, 5 Apr 2008 20:03:43 +0000 (20:03 -0000)]
When necessary, make quickpkg add missing metadata to the vdb entry before
creating the binary package. (trunk r9723)

svn path=/main/branches/2.1.2/; revision=9724

16 years agoIn dbapi.move_ent(), never assume that any of the expected metadata
Zac Medico [Sat, 5 Apr 2008 19:27:13 +0000 (19:27 -0000)]
In dbapi.move_ent(), never assume that any of the expected metadata
entries exist (PF, CATEGORY, or *.ebuild). (trunk r9712)

svn path=/main/branches/2.1.2/; revision=9722

16 years agoFor better performace and consistency in package selection, merge the
Zac Medico [Sat, 5 Apr 2008 19:00:38 +0000 (19:00 -0000)]
For better performace and consistency in package selection, merge the
CompositeDbapi code from trunk.

svn path=/main/branches/2.1.2/; revision=9721

16 years agoBug #216328 - Fix broken --newuse reinstallation logic. (trunk r9718)
Zac Medico [Sat, 5 Apr 2008 17:48:49 +0000 (17:48 -0000)]
Bug #216328 - Fix broken --newuse reinstallation logic. (trunk r9718)

svn path=/main/branches/2.1.2/; revision=9719

16 years agoAdd missing "the" to fix grammar. (trunk r9710)
Zac Medico [Fri, 4 Apr 2008 20:42:32 +0000 (20:42 -0000)]
Add missing "the" to fix grammar. (trunk r9710)

svn path=/main/branches/2.1.2/; revision=9711

16 years ago* In the event that a previously installed package has since been masked,
Zac Medico [Fri, 4 Apr 2008 18:59:38 +0000 (18:59 -0000)]
* In the event that a previously installed package has since been masked,
  emerge will no longer perform an automatic downgrade as part of a "world"
  update. You should either unmask such packages or else explicitly re-merge
  them in order to have them dowgraded to an unmasked version.
(trunk r9708)

svn path=/main/branches/2.1.2/; revision=9709

16 years agoDisplay the note referencing "masked packages" docs when there are
Zac Medico [Fri, 4 Apr 2008 18:43:29 +0000 (18:43 -0000)]
Display the note referencing "masked packages" docs when there are
installed masked packages to display. (trunk r9704:9706)

svn path=/main/branches/2.1.2/; revision=9707

16 years agoMerge FEATURES=webrsync-gpg docs from trunk.
Zac Medico [Fri, 4 Apr 2008 09:33:18 +0000 (09:33 -0000)]
Merge FEATURES=webrsync-gpg docs from trunk.

svn path=/main/branches/2.1.2/; revision=9704

16 years agoFix a typo in the depclean USE flag handling when populating the
Zac Medico [Fri, 4 Apr 2008 06:33:35 +0000 (06:33 -0000)]
Fix a typo in the depclean USE flag handling when populating the
digraph for bug #201045. (trunk r9702)

svn path=/main/branches/2.1.2/; revision=9703

16 years agoWhen the user has given --depclean a list of atoms to clean, pull all
Zac Medico [Fri, 4 Apr 2008 04:52:21 +0000 (04:52 -0000)]
When the user has given --depclean a list of atoms to clean, pull all
installed packages into the graph (not just those traversable from system
or world) to ensure that packages can not be uninstalled unless nothing
requires them. (trunk r9698:9700)

svn path=/main/branches/2.1.2/; revision=9701

16 years agoAdd missing DepPriority instances to the graph so that the --buildpkgonly
Zac Medico [Fri, 4 Apr 2008 00:56:20 +0000 (00:56 -0000)]
Add missing DepPriority instances to the graph so that the --buildpkgonly
hasallzeros() calculation works correctly. (trunk r9695:9697)

svn path=/main/branches/2.1.2/; revision=9698

16 years agoFix package selection logic so that it always properly finds the highest
Zac Medico [Thu, 3 Apr 2008 22:35:32 +0000 (22:35 -0000)]
Fix package selection logic so that it always properly finds the highest
available version in a new slot even though the graph already contains
a matching version in a lower slot. (trunk r9693)

svn path=/main/branches/2.1.2/; revision=9694

16 years agoAdd missing str.upper() call for PORTAGE_FETCH_RESUME_MIN_SIZE. (trunk r9691)
Zac Medico [Thu, 3 Apr 2008 20:04:29 +0000 (20:04 -0000)]
Add missing str.upper() call for PORTAGE_FETCH_RESUME_MIN_SIZE. (trunk r9691)

svn path=/main/branches/2.1.2/; revision=9692

16 years agoIf PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty, silently use
Zac Medico [Thu, 3 Apr 2008 19:59:57 +0000 (19:59 -0000)]
If PORTAGE_FETCH_RESUME_MIN_SIZE is undefined or empty, silently use
the default. (trunk r9689)

svn path=/main/branches/2.1.2/; revision=9690