portage.git
16 years agoremove PORTAGE_TMPFS comment
Marius Mauch [Thu, 1 May 2008 11:55:00 +0000 (11:55 -0000)]
remove PORTAGE_TMPFS comment

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

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

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

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

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

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

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

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

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

16 years agoFix 2 more types.InstanceType comparisons that are broken by
Zac Medico [Wed, 30 Apr 2008 19:45:54 +0000 (19:45 -0000)]
Fix 2 more types.InstanceType comparisons that are broken by
the transition of dbapi to new-style classes. (trunk r6188)

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

16 years agoBug #219837 - Adjust date calculations to improve accuracy. (trunk r10047)
Zac Medico [Wed, 30 Apr 2008 18:28:16 +0000 (18:28 -0000)]
Bug #219837 - Adjust date calculations to improve accuracy. (trunk r10047)

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

16 years agoHandle a KeyError when validating the blocker cache. (trunk r10045)
Zac Medico [Wed, 30 Apr 2008 09:00:46 +0000 (09:00 -0000)]
Handle a KeyError when validating the blocker cache. (trunk r10045)

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

16 years ago* Fix dep_check() so that it doesn't expand virtual blockers since the
Zac Medico [Wed, 30 Apr 2008 08:50:44 +0000 (08:50 -0000)]
* Fix dep_check() so that it doesn't expand virtual blockers since the
  un-expanded virtual atom is more useful for maintaining a cache of
  blocker atoms.

* Expand virtual blockers in depgraph.validate_blockers(), since it's
  not done by dep_check() anymore.

* If blocker data from the graph is available, use it to validate the
  blocker cache and update the cache if it seems invalid.

* Make BlockerCache._load() more tolerant to installs/uninstalls so
  so that cache isn't rebuilt so often.
(trunk r10040:10043)

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

16 years agoFix "deep" logic in depgraph._complete_graph() so that it always
Zac Medico [Wed, 30 Apr 2008 00:11:58 +0000 (00:11 -0000)]
Fix "deep" logic in depgraph._complete_graph() so that it always
properly recognizes whether or not "deep" was previously enabled.
(trunk r10039)

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

16 years agoMake unmerge() group packages by cat/pn when the order doesn't matter, so
Zac Medico [Tue, 29 Apr 2008 18:33:35 +0000 (18:33 -0000)]
Make unmerge() group packages by cat/pn when the order doesn't matter, so
the display appears like earlier versions of portage. (trunk r10037)

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

16 years agoPrevent some more visible downgrades from possibly being missed (bug #219369).
Zac Medico [Tue, 29 Apr 2008 03:33:29 +0000 (03:33 -0000)]
Prevent some more visible downgrades from possibly being missed (bug #219369).
(trunk r10033:10035)

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

16 years agoHandle a potential KeyError in depgraph.display() when in --resume mode
Zac Medico [Mon, 28 Apr 2008 22:23:32 +0000 (22:23 -0000)]
Handle a potential KeyError in depgraph.display() when in --resume mode
and a package scheduled for uninstall is no longer installed. (trunk r10032)

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

16 years agoWhen a package scheduled for uninstall isn't installed anymore, move
Zac Medico [Mon, 28 Apr 2008 21:16:37 +0000 (21:16 -0000)]
When a package scheduled for uninstall isn't installed anymore, move
on to the next task. (trunk r10030)

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

16 years agoFix spelling. (trunk r10028)
Zac Medico [Mon, 28 Apr 2008 20:44:56 +0000 (20:44 -0000)]
Fix spelling. (trunk r10028)

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

16 years agoAdd a Package.pv_split attibute to optimize version comparison
Zac Medico [Mon, 28 Apr 2008 20:31:12 +0000 (20:31 -0000)]
Add a Package.pv_split attibute to optimize version comparison
operators. (trunk r10026)

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

16 years agoFor bug #211833, be explicit that the pkg_prerm() and pkg_postrm() removal
Zac Medico [Mon, 28 Apr 2008 17:35:13 +0000 (17:35 -0000)]
For bug #211833, be explicit that the pkg_prerm() and pkg_postrm() removal
phases are the ones that are skipped. (trunk r10024)

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

16 years agoAs suggested by Chr. Schaefer in bug #211833, comment #15, note that
Zac Medico [Mon, 28 Apr 2008 17:25:48 +0000 (17:25 -0000)]
As suggested by  Chr. Schaefer in bug #211833, comment  #15, note that
removal of the environment.bz2 file is preferred since it may allow the
removal phases to execute successfully. (trunk r10022)

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

16 years agoAdd comma to ("__weakref__",) so that it's a tuple instead of a string.
Zac Medico [Mon, 28 Apr 2008 06:00:59 +0000 (06:00 -0000)]
Add comma to ("__weakref__",) so that it's a tuple instead of a string.
Thanks to ferringb. (trunk r10020)

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

16 years agoTry to format the elog message better for bug #211833, separating
Zac Medico [Mon, 28 Apr 2008 03:41:31 +0000 (03:41 -0000)]
Try to format the elog message better for bug #211833, separating
paragraphs for easier reading. (trunk r10018)

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

16 years agoUse write_atomic() for manifest updates. (trunk r10016)
Zac Medico [Mon, 28 Apr 2008 02:34:44 +0000 (02:34 -0000)]
Use write_atomic() for manifest updates. (trunk r10016)

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

16 years agoFix PackageVirtualDbapi.cpv_inject() to make sure packages with duplicate
Zac Medico [Mon, 28 Apr 2008 02:03:48 +0000 (02:03 -0000)]
Fix PackageVirtualDbapi.cpv_inject() to make sure packages with duplicate
cpv or slot are handled correctly. (trunk r10014)

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

16 years agoBug #211833 - When an ebuild removal phase fails, notify the user that
Zac Medico [Mon, 28 Apr 2008 01:46:58 +0000 (01:46 -0000)]
Bug #211833 - When an ebuild removal phase fails, notify the user that
removal of environment.bz2 file will cause the ebuild to be sourced and
eclasses from the current portage tree will be used when necessary.
(trunk r10009)

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

16 years agoBug #218854 - Fix depgraph._iter_atoms_for_pkg() so that argument atoms
Zac Medico [Mon, 28 Apr 2008 01:41:15 +0000 (01:41 -0000)]
Bug #218854 - Fix depgraph._iter_atoms_for_pkg() so that argument atoms
only match the highest visible slot. (trunk r10006:10008)

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

16 years agoFix the EbuildQuote check to ignore "echo" and the elog functions since
Zac Medico [Mon, 28 Apr 2008 01:30:49 +0000 (01:30 -0000)]
Fix the EbuildQuote check to ignore "echo" and the elog functions since
people might not want quotes in those cases. (trunk r10006)

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

16 years ago* Remove the only remaining sys.exit() calls inside the depgraph class.
Zac Medico [Mon, 28 Apr 2008 01:29:34 +0000 (01:29 -0000)]
* Remove the only remaining sys.exit() calls inside the depgraph class.
* Fix _unknown_internal_error() to work with zero arguments.
(trunk r10005)

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

16 years agoNever uninstall sys-apps/portage except through replacement. (trunk r10003)
Zac Medico [Sun, 27 Apr 2008 20:16:52 +0000 (20:16 -0000)]
Never uninstall sys-apps/portage except through replacement. (trunk r10003)

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

16 years agoBug #219369 - Enable automatic upgrage or downgrade to a version
Zac Medico [Sun, 27 Apr 2008 19:56:50 +0000 (19:56 -0000)]
Bug #219369 - Enable automatic upgrage or downgrade to a version
with visible KEYWORDS when the installed version is masked by
KEYWORDS, but never reinstall the same exact version only due to
a KEYWORDS mask. (trunk r10001)

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

16 years agoTake the classes that initialize variables in __slots__ with keyword
Zac Medico [Sun, 27 Apr 2008 07:26:25 +0000 (07:26 -0000)]
Take the classes that initialize variables in __slots__ with keyword
constructor arguments and make them all derive from a new SlotObject
class. (trunk r9994)

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

16 years agoCreate a digraph.difference_update() method and use it to amortize the
Zac Medico [Sun, 27 Apr 2008 06:38:37 +0000 (06:38 -0000)]
Create a digraph.difference_update() method and use it to amortize the
cost of removing nodes from the digraph.order list. (trunk r9992)

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

16 years agoRemove unnecessary "mydbapi" variable in depgraph.display(). (trunk r9990)
Zac Medico [Sun, 27 Apr 2008 00:44:34 +0000 (00:44 -0000)]
Remove unnecessary "mydbapi" variable in depgraph.display(). (trunk r9990)

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

16 years agoBug #172812 - When a package needs to be uninstalled in advance rather
Zac Medico [Sun, 27 Apr 2008 00:32:06 +0000 (00:32 -0000)]
Bug #172812 - When a package needs to be uninstalled in advance rather
than through replacement, show the corresponding [blocks] entries in the
displayed list. In order to show more structure in the --tree display,
expand Package -> Uninstall edges into Package -> Blocker -> Uninstall
edges. Also, create edges between a package's own blockers and it's
Uninstall task since it's blockers become irrelevant as soon as it's
uninstalled. (trunk r9983)

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

16 years agoAdd a PackageVirtualDbapi.copy() method. (trunk r9982)
Zac Medico [Sun, 27 Apr 2008 00:26:28 +0000 (00:26 -0000)]
Add a PackageVirtualDbapi.copy() method. (trunk r9982)

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

16 years agoUse digraphs to clean up blocker reference counting in the depgraph.
Zac Medico [Sun, 27 Apr 2008 00:25:51 +0000 (00:25 -0000)]
Use digraphs to clean up blocker reference counting in the depgraph.
(trunk r9981)

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

16 years agoDon't assume that altlist() will succeed inside display_problems().
Zac Medico [Sun, 27 Apr 2008 00:23:47 +0000 (00:23 -0000)]
Don't assume that altlist() will succeed inside display_problems().
(trunk r9980)

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

16 years ago* Add a Blocker class to use instead of tuples.
Zac Medico [Sun, 27 Apr 2008 00:23:03 +0000 (00:23 -0000)]
* Add a Blocker class to use instead of tuples.
* Fix the Task constructor to properly traverse __slots__ of all inherited
  classes.
(trunk r9979)

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

16 years agoRefactor the way that depgraph.altlist(), _complete_graph(), and
Zac Medico [Sun, 27 Apr 2008 00:21:24 +0000 (00:21 -0000)]
Refactor the way that depgraph.altlist(), _complete_graph(), and
validate_blockers() interact with eachother. This simplifies things
by eliminating the need for recursive calls to validate_blockers().
(trunk r9977)

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

16 years agoDon't duplicate "system" in xterm titles either.
Zac Medico [Fri, 25 Apr 2008 17:33:28 +0000 (17:33 -0000)]
Don't duplicate "system" in xterm titles either.

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

16 years agoDon't show "world" twice in the xterm titles. Thanks to armin76 for reporting.
Zac Medico [Fri, 25 Apr 2008 17:31:10 +0000 (17:31 -0000)]
Don't show "world" twice in the xterm titles. Thanks to armin76 for reporting.

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

16 years agos/be only/only be/ (trunk r9972)
Zac Medico [Fri, 25 Apr 2008 06:34:17 +0000 (06:34 -0000)]
s/be only/only be/ (trunk r9972)

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

16 years agoAdd some more spinner.update() calls in possibly time consuming loops.
Zac Medico [Fri, 25 Apr 2008 03:18:56 +0000 (03:18 -0000)]
Add some more spinner.update() calls in possibly time consuming loops.
(trunk r9968)

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

16 years agoBug #172812 - If any Uninstall tasks need to be executed in order
Zac Medico [Fri, 25 Apr 2008 02:30:39 +0000 (02:30 -0000)]
Bug #172812 - If any Uninstall tasks need to be executed in order
to avoid a conflict, complete the graph with any dependencies that
may have been initially neglected (to ensure that unsafe Uninstall
tasks are properly identified and blocked from execution).
(trunk r9962:9965)

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

16 years agoAdd a note about automatic uninstallation to solve blockers. (trunk r9959)
Zac Medico [Thu, 24 Apr 2008 03:59:59 +0000 (03:59 -0000)]
Add a note about automatic uninstallation to solve blockers. (trunk r9959)

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

16 years agoCombine --nodeps spinner logic. (trunk r9953)
Zac Medico [Thu, 24 Apr 2008 03:37:44 +0000 (03:37 -0000)]
Combine --nodeps spinner logic. (trunk r9953)

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

16 years agoBug #172812 - Automatically uninstall packages to avoid blocker conflicts.
Zac Medico [Thu, 24 Apr 2008 03:34:07 +0000 (03:34 -0000)]
Bug #172812 - Automatically uninstall packages to avoid blocker conflicts.
(trunk r9944:9956)

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

16 years agoMake dir_get_metadata() retry if a httplib.ResponseNotReady exception
Zac Medico [Tue, 22 Apr 2008 18:30:54 +0000 (18:30 -0000)]
Make dir_get_metadata() retry if a httplib.ResponseNotReady exception
occurs. (trunk r9943)

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

16 years agoBug #218439 - Improve alignment in short emerge --help options output.
Zac Medico [Mon, 21 Apr 2008 19:44:51 +0000 (19:44 -0000)]
Bug #218439 - Improve alignment in short emerge --help options output.
(trunk r9939:9941)

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

16 years agoIn show_slot_collision_notice(), refer to the problem as a "slot conflict"
Zac Medico [Mon, 21 Apr 2008 18:55:14 +0000 (18:55 -0000)]
In show_slot_collision_notice(), refer to the problem as a "slot conflict"
since that's how I'm refering to it in the docs. (trunk r9938)

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

16 years agoIn action_metadata(), properly put the source cache in readonly mode.
Zac Medico [Mon, 21 Apr 2008 16:56:04 +0000 (16:56 -0000)]
In action_metadata(), properly put the source cache in readonly mode.
(trunk r9936)

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

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