portage.git
16 years agoCreate Atom instances earlier to avoid redundant validation. (trunk r10495)
Zac Medico [Fri, 30 May 2008 00:13:34 +0000 (00:13 -0000)]
Create Atom instances earlier to avoid redundant validation. (trunk r10495)

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

16 years agoWhen dropping deps from the resume list, make sure that the loop can't
Zac Medico [Thu, 29 May 2008 23:41:57 +0000 (23:41 -0000)]
When dropping deps from the resume list, make sure that the loop can't
be infinite. (trunk r10493)

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

16 years agoUse Package.metadata instead of calling dbapi.aux_get(). (trunk r10491)
Zac Medico [Thu, 29 May 2008 23:32:40 +0000 (23:32 -0000)]
Use Package.metadata instead of calling dbapi.aux_get(). (trunk r10491)

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

16 years agoUse a frozenset instead of a list for containment tests. (trunk r10489)
Zac Medico [Thu, 29 May 2008 23:11:25 +0000 (23:11 -0000)]
Use a frozenset instead of a list for containment tests. (trunk r10489)

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

16 years agoFix typo. (trunk r10487)
Zac Medico [Thu, 29 May 2008 22:54:59 +0000 (22:54 -0000)]
Fix typo. (trunk r10487)

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

16 years agoUse izip() to eliminate temporary dict instances. (trunk r10485)
Zac Medico [Thu, 29 May 2008 22:38:32 +0000 (22:38 -0000)]
Use izip() to eliminate temporary dict instances. (trunk r10485)

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

16 years agoUse portage_exception.InvalidAtom directly instead of from portage_dep.
Zac Medico [Thu, 29 May 2008 21:34:51 +0000 (21:34 -0000)]
Use portage_exception.InvalidAtom directly instead of from portage_dep.

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

16 years agoMake --skipfirst handle missing dependencies by dropping the merge tasks
Zac Medico [Thu, 29 May 2008 21:19:48 +0000 (21:19 -0000)]
Make --skipfirst handle missing dependencies by dropping the merge tasks
that have missing dependencies. This involves creating an entirely new
depgraph each time that a missing dependency is discovered. This isn't
the most efficient approach but it's simple and it works well.

This new behavior can server as a fix for bug #12768 by calling emerge
--resume --skipfirst each time that emerge exits unsuccessfully. This
was possible before, but now packages with unsatisfied dependencies
will be properly identified and dropped from the list.
(trunk r10477:10482)

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

16 years agoSave the content of CONFIG_MEMORY_FILE in dblink.treewalk() _before_
Zac Medico [Thu, 29 May 2008 05:27:40 +0000 (05:27 -0000)]
Save the content of CONFIG_MEMORY_FILE in dblink.treewalk() _before_
unmerging other instances, in order to avoid overwritting/undoing
the pruning that's done during unmerge. (trunk r10476)

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

16 years agoMake the unmerge time CONFIG_MEMORY_FILE pruning slightly more aggressive,
Zac Medico [Thu, 29 May 2008 04:56:18 +0000 (04:56 -0000)]
Make the unmerge time CONFIG_MEMORY_FILE pruning slightly more aggressive,
so that anything not claimed by another package in the same slot is
pruned. (trunk r10474)

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

16 years agoFilter out installed keyword masked packages when populating
Zac Medico [Thu, 29 May 2008 00:39:46 +0000 (00:39 -0000)]
Filter out installed keyword masked packages when populating
RootConfig.visible_pkgs since otherwise such packages can trigger
undesireable results inside depgraph._iter_atoms_for_pkg().
(trunk r10471)

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

16 years agoFix the code from bug #220341 so that it matches the atom against the
Zac Medico [Thu, 29 May 2008 00:37:59 +0000 (00:37 -0000)]
Fix the code from bug #220341 so that it matches the atom against the
installed package, like it's supposed to. (trunk r10470)

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

16 years ago* Update the fix from bug #220341 to protect USE deps from being neglected.
Zac Medico [Wed, 28 May 2008 22:16:22 +0000 (22:16 -0000)]
* Update the fix from bug #220341 to protect USE deps from being neglected.
* Skip redundant Atom construction in select_package().
(trunk r10466:10468)

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

16 years agoBug #223447 - Adjust the "installed packages are masked" display to recognize
Zac Medico [Wed, 28 May 2008 08:52:07 +0000 (08:52 -0000)]
Bug #223447 - Adjust the "installed packages are masked" display to recognize
packages that are masked by keywords and are eligible for uninstallation by
depclean. This is a workaround for the fact that depclean may fail to
recognize that the package is eligible for uninstall due to differences in
visibility filtering which can lead to differences in || dep evaluation.
TODO: Share visibility code to fix this inconsistency. (trunk r10465)

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

16 years agoMake set_term_size() handle the CommandNotFound exception if stty
Zac Medico [Wed, 28 May 2008 01:35:55 +0000 (01:35 -0000)]
Make set_term_size() handle the CommandNotFound exception if stty
is missing for some reason. (trunk r10461)

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

16 years agoConvert doman to use bash's =~ operator instead of calling egrep.
Zac Medico [Wed, 28 May 2008 01:30:51 +0000 (01:30 -0000)]
Convert doman to use bash's =~ operator instead of calling egrep.
(trunk r10460)

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

16 years agoFix breakage due to frozenset being immutable. (trunk r10455)
Zac Medico [Tue, 27 May 2008 10:20:38 +0000 (10:20 -0000)]
Fix breakage due to frozenset being immutable. (trunk r10455)

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

16 years agoMake config._init_dirs() preserver /tmp and /var/tmp permissions if
Zac Medico [Tue, 27 May 2008 07:56:26 +0000 (07:56 -0000)]
Make config._init_dirs() preserver /tmp and /var/tmp permissions if
those directories already exist. This gives freedom to the user to
adjust permissions to suit their taste. (trunk r10451:10453)

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

16 years agoFix a typo from the previous commit. (trunk r10450)
Zac Medico [Tue, 27 May 2008 06:23:55 +0000 (06:23 -0000)]
Fix a typo from the previous commit. (trunk r10450)

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

16 years agoUse new Package.use and iuse attributes to avoid extra split() calls.
Zac Medico [Tue, 27 May 2008 06:12:43 +0000 (06:12 -0000)]
Use new Package.use and iuse attributes to avoid extra split() calls.
(trunk r10448)

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

16 years agoFix breakage in the BlockerDB constructor. (trunk r10443)
Zac Medico [Tue, 27 May 2008 04:38:12 +0000 (04:38 -0000)]
Fix breakage in the BlockerDB constructor. (trunk r10443)

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

16 years agoMerge code for the Package.root_config attribute from trunk r10440,
Zac Medico [Tue, 27 May 2008 04:32:58 +0000 (04:32 -0000)]
Merge code for the Package.root_config attribute from trunk r10440,
excluding USE deps code.

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

16 years agoBug #223685 - Use the finally clause to collect elog messages just
Zac Medico [Tue, 27 May 2008 00:50:40 +0000 (00:50 -0000)]
Bug #223685 - Use the finally clause to collect elog messages just
before releasing the build dir lock, so they never get missed.
(trunk r10438)

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

16 years agoAdd some debug output for arguments and their associated atoms, to help in
Zac Medico [Tue, 27 May 2008 00:11:47 +0000 (00:11 -0000)]
Add some debug output for arguments and their associated atoms, to help in
debugging problems similar to bug #223735. (trunk r10436)

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

16 years agoDon't silently swallow instances of UnpicklingError since they are easily
Zac Medico [Mon, 26 May 2008 23:29:25 +0000 (23:29 -0000)]
Don't silently swallow instances of UnpicklingError since they are easily
triggered by storing instances of custom classes in a pickle.
(trunk r10432:10434)

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

16 years agoAvoid triggering "cPickle.UnpicklingError: Global and instance pickles
Zac Medico [Mon, 26 May 2008 23:05:46 +0000 (23:05 -0000)]
Avoid triggering "cPickle.UnpicklingError: Global and instance pickles
are not supported." errors that are triggered when the pickle contains
custom classes. (trunk r10431)

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

16 years agoSkip source_all_bashrcs() when $EBUILD_PHASE is not set. (trunk r10429)
Zac Medico [Mon, 26 May 2008 20:24:02 +0000 (20:24 -0000)]
Skip source_all_bashrcs() when $EBUILD_PHASE is not set. (trunk r10429)

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

16 years ago* Enable config.setcpv() to use a Package instance in place of a cpv.
Zac Medico [Mon, 26 May 2008 09:21:29 +0000 (09:21 -0000)]
* Enable config.setcpv() to use a Package instance in place of a cpv.
* Make depgraph._select_package() pass Package instances into setcpv() calls.
* Enable the Package constructor to use an iterable for metadata items.
(trunk r10427)

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

16 years agoFix a broken reference to the Package.cpv_slot attribute. (trunk r10425)
Zac Medico [Mon, 26 May 2008 00:35:07 +0000 (00:35 -0000)]
Fix a broken reference to the Package.cpv_slot attribute. (trunk r10425)

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

16 years ago* Add support for Package instances in match_from_list().
Zac Medico [Sun, 25 May 2008 22:56:02 +0000 (22:56 -0000)]
* Add support for Package instances in match_from_list().
* Remove the Package.cpv_slot attribute.
(trunk r10418:10423)

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

16 years ago* Fix PackageSet.findAtomForPackage() to take a Package instance as
Zac Medico [Sun, 25 May 2008 09:01:18 +0000 (09:01 -0000)]
* Fix PackageSet.findAtomForPackage() to take a Package instance as
  an argument.
* Simplify PackageSet.findAtomForPackage() by implementing it on top
  of iterAtomsForPackage().
(trunk r10415)

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

16 years agoFacilitate creation of Atom instances in a few obvious places:
Zac Medico [Sun, 25 May 2008 08:19:22 +0000 (08:19 -0000)]
Facilitate creation of Atom instances in a few obvious places:

 * PackageSet._setAtoms()
 * AtomArg and PackageArg constructors.
(trunk r10413)

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

16 years agoCreate Atom instances when validating atoms inside _expand_new_virtuals().
Zac Medico [Sun, 25 May 2008 05:12:46 +0000 (05:12 -0000)]
Create Atom instances when validating atoms inside  _expand_new_virtuals().
(trunk r10396)

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

16 years agoRemove redundant SLOT dep code in portdbapi.xmatch() since it's now
Zac Medico [Sun, 25 May 2008 04:40:43 +0000 (04:40 -0000)]
Remove redundant SLOT dep code in portdbapi.xmatch() since it's now
handled by dbapi._iter_match(). (trunk r10410)

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

16 years agoFix paren_reduce() so that it appropriately raises an InvalidDependString()
Zac Medico [Sun, 25 May 2008 04:23:16 +0000 (04:23 -0000)]
Fix paren_reduce() so that it appropriately raises an InvalidDependString()
in some cases, instead of a nonsense ValueError. (trunk r10393)

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

16 years agoFix paren_reduce() so that it appropriately raises an InvalidDependString()
Zac Medico [Sun, 25 May 2008 04:21:33 +0000 (04:21 -0000)]
Fix paren_reduce() so that it appropriately raises an InvalidDependString()
in some cases, instead of a nonsense AttributeError. (trunk r10392)

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

16 years agoFix use_reduce() so that it appropriately raises an InvalidDependString
Zac Medico [Sun, 25 May 2008 04:19:38 +0000 (04:19 -0000)]
Fix use_reduce() so that it appropriately raises an InvalidDependString
instead of an IndexError in some cases (avoid IndexError by using slice
notation). (trunk r10391)

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

16 years agoBug #223417 - Make the vardbapi.cpv_all() use_cache parameter useful
Zac Medico [Sun, 25 May 2008 04:15:50 +0000 (04:15 -0000)]
Bug #223417 - Make the vardbapi.cpv_all() use_cache parameter useful
for forcing direct os.listdir() calls. This is more of an issue now
that these listdir() calls are frequently triggered when merging
packages (due to things like blocker and preserve-libs handling).
(trunk r10390)

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

16 years agoBug #223417 - use floating point mtime for finer grained validation in
Zac Medico [Sun, 25 May 2008 04:06:00 +0000 (04:06 -0000)]
Bug #223417 - use floating point mtime for finer grained validation in
cachedir(). (trunk r10389)

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

16 years agoFix portage_exception namespace.
Zac Medico [Sun, 25 May 2008 04:04:05 +0000 (04:04 -0000)]
Fix portage_exception namespace.

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

16 years agoMerge the Atom class and dbapi._iter_match() from trunk r10387 and r10394.
Zac Medico [Sun, 25 May 2008 03:59:35 +0000 (03:59 -0000)]
Merge the Atom class and dbapi._iter_match() from trunk r10387 and r10394.
Everything related to USE deps has been omitted for now.

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

16 years agoWhen using vecho or eqawarn it comes in handy when isolated-functions
Zac Medico [Sun, 25 May 2008 03:17:54 +0000 (03:17 -0000)]
When using vecho or eqawarn it comes in handy when isolated-functions
have been sourced. (trunk r10381)

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

16 years agoFix isvalidatom() so tests pass, and add a USE deps case to the tests.
Zac Medico [Sun, 25 May 2008 03:13:06 +0000 (03:13 -0000)]
Fix isvalidatom() so tests pass, and add a USE deps case to the tests.
(trunk r10399)

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

16 years agoAdd square brackets, [ and ] to the _invalid_atom_chars_regexp that's
Zac Medico [Sun, 25 May 2008 01:54:42 +0000 (01:54 -0000)]
Add square brackets, [ and ] to the _invalid_atom_chars_regexp that's
used by isvalidatom() since we don't wan't atoms with USE deps slipping
through here.

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

16 years ago* remove NEEDED from list of metadata variables (trunk r10180) v2.1.5.2
Zac Medico [Tue, 20 May 2008 03:08:36 +0000 (03:08 -0000)]
* remove NEEDED from list of metadata variables (trunk r10180)
* Simplify cache code in vardbapi.aux_get(). (trunk r10377)

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

16 years agoIn vardbapi.aux_get(), don't mark cacheed metadata invalid just because
Zac Medico [Tue, 20 May 2008 01:51:51 +0000 (01:51 -0000)]
In vardbapi.aux_get(), don't mark cacheed metadata invalid just because
some of the values are missing. (trunk r10375)

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

16 years agoInside vardbapi.aux_get(), do more validation on the cache data to
Zac Medico [Tue, 20 May 2008 01:14:43 +0000 (01:14 -0000)]
Inside vardbapi.aux_get(), do more validation on the cache data to
ensure it contains the expected data types. (trunk r10373)

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

16 years agoAdjust code order to organize it a bit.
Zac Medico [Mon, 19 May 2008 23:38:48 +0000 (23:38 -0000)]
Adjust code order to organize it a bit.

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

16 years agoValidate and normalize target_root earlier in the config constructor.
Zac Medico [Mon, 19 May 2008 23:19:19 +0000 (23:19 -0000)]
Validate and normalize target_root earlier in the config constructor.
(trunk r10369)

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

16 years agoFix vardbapi.aux_get() logic so that it will correctly pull the metadata
Zac Medico [Mon, 19 May 2008 23:09:25 +0000 (23:09 -0000)]
Fix vardbapi.aux_get() logic so that it will correctly pull the metadata
value corresponding to an unrecognized metadata key. (trunk r10367)

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

16 years agoExclude "env" from use in variable substitution since we want to avoid v2.1.5.1
Zac Medico [Mon, 19 May 2008 20:31:24 +0000 (20:31 -0000)]
Exclude "env" from use in variable substitution since we want to avoid
any interaction with the calling environment that might lead to
unexpected results. (trunk r10364)

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

16 years agoIn unmerge(), flush the vardbapi aux_get() cache to disk before releasing
Zac Medico [Sun, 18 May 2008 23:01:28 +0000 (23:01 -0000)]
In unmerge(), flush the vardbapi aux_get() cache to disk before releasing
the vardb lock. (trunk r10361)

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

16 years ago* Make vardbapi.aux_get() preserve newlines in multi-line metadata
Zac Medico [Sun, 18 May 2008 23:00:00 +0000 (23:00 -0000)]
* Make vardbapi.aux_get() preserve newlines in multi-line metadata
  such as NEEDED.* and CONTENTS.

* Tweak vardbapi.aux_get() cache logic a bit.
(trunk r10358:10360)

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

16 years agoBug #222623 - Use "regardless" instead of "irregardless" since the latter
Zac Medico [Sun, 18 May 2008 19:02:11 +0000 (19:02 -0000)]
Bug #222623 - Use "regardless" instead of "irregardless" since the latter
is considered to be incorrect. (trunk r10357)

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

16 years agoAdd the environment and some more files to the existing make.defaults
Zac Medico [Sat, 17 May 2008 23:35:15 +0000 (23:35 -0000)]
Add the environment and some more files to the existing make.defaults
variable substitution support. Variable substitution occurs in
the following order:

  * env.d
  * env
  * make.globals
  * make.defaults
  * make.conf

(trunk r10351)

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

16 years agoFix th logic from the previous commit. (trunk r10350)
Zac Medico [Sat, 17 May 2008 23:27:42 +0000 (23:27 -0000)]
Fix th logic from the previous commit. (trunk r10350)

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

16 years agoAdd back the "install new portage asap" behavior that got lost when that
Zac Medico [Sat, 17 May 2008 23:27:08 +0000 (23:27 -0000)]
Add back the "install new portage asap" behavior that got lost when that
area of code was rewritten. (trunk r10349)

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

16 years agoDetect and filter ebuilds that have invalid versions in portdbapi.cp_list().
Zac Medico [Sat, 17 May 2008 23:25:57 +0000 (23:25 -0000)]
Detect and filter ebuilds that have invalid versions in portdbapi.cp_list().
(trunk r10346)

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

16 years agoAdd dev-util/ftjam to the RDEPEND.suspect list as per bug #221537, comment #3.
Zac Medico [Sat, 17 May 2008 23:22:03 +0000 (23:22 -0000)]
Add dev-util/ftjam to the RDEPEND.suspect list as per bug #221537, comment #3.
Leaving dev-util/jam in place, in case it revives somehow. (trunk r10344)

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

16 years agoAdd a note about interaction between FEATURES="metadata-transfer" v2.1.5
Zac Medico [Wed, 14 May 2008 18:57:17 +0000 (18:57 -0000)]
Add a note about interaction between FEATURES="metadata-transfer"
and eclasses from PORTDIR_OVERLAY that override eclasses from PORTDIR.
(trunk r10337)

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

16 years agoSkip blocker atoms for the RDEPEND.suspect check. (trunk r10335)
Zac Medico [Wed, 14 May 2008 18:05:19 +0000 (18:05 -0000)]
Skip blocker atoms for the RDEPEND.suspect check. (trunk r10335)

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

16 years agoBug #221537 - Add a new "RDEPEND.suspect" check for packages in RDEPEND that
Zac Medico [Wed, 14 May 2008 17:58:33 +0000 (17:58 -0000)]
Bug #221537 - Add a new "RDEPEND.suspect" check for packages in RDEPEND that
usually only belong in DEPEND. (trunk r10333)

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

16 years agoadd xterm-color and interix to list of valid terminals (trunk r10329)
Zac Medico [Tue, 13 May 2008 23:11:50 +0000 (23:11 -0000)]
add xterm-color and interix to list of valid terminals (trunk r10329)

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

16 years agoRemove 'eselect compiler' references (trunk r10328)
Zac Medico [Tue, 13 May 2008 23:10:21 +0000 (23:10 -0000)]
Remove 'eselect compiler' references (trunk r10328)

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

16 years agoPrefer deb2tgz over ar for unpacking .deb files when installed (patch by
Zac Medico [Tue, 13 May 2008 23:09:03 +0000 (23:09 -0000)]
Prefer deb2tgz over ar for unpacking .deb files when installed (patch by
Fabian Groffen, http://archives.gentoo.org/gentoo-portage-dev/msg_2f9c8543016f1a96f9122aca0ec35ded.xml)
(trunk r10327)

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

16 years agoCheck vercmp() return value to avoid arbitrary results in case it returns None
Zac Medico [Tue, 13 May 2008 20:05:14 +0000 (20:05 -0000)]
Check vercmp() return value to avoid arbitrary results in case it returns None
(trunk r10322)

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

16 years agofix man markup for PORTAGE_FETCH_RESUME_MIN_SIZE (trunk r10320)
Zac Medico [Tue, 13 May 2008 16:49:56 +0000 (16:49 -0000)]
fix man markup for PORTAGE_FETCH_RESUME_MIN_SIZE (trunk r10320)

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

16 years agocapitalize Portage (trunk r10318)
Zac Medico [Tue, 13 May 2008 06:17:31 +0000 (06:17 -0000)]
capitalize Portage (trunk r10318)

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

16 years agoDescribe how we limit the probability that temporary simultaneous
Zac Medico [Tue, 13 May 2008 06:12:55 +0000 (06:12 -0000)]
Describe how we limit the probability that temporary simultaneous
installation of blocking packages will cause some sort of problem.
(trunk r10316)

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

16 years agoBug #220533 - Document FEATURES="skiprocheck". (trunk r10314)
Zac Medico [Tue, 13 May 2008 04:41:26 +0000 (04:41 -0000)]
Bug #220533 - Document FEATURES="skiprocheck". (trunk r10314)

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

16 years agoIn the warning about eclasses in overlay overriding eclasses from PORTDIR,
Zac Medico [Mon, 12 May 2008 22:22:47 +0000 (22:22 -0000)]
In the warning about eclasses in overlay overriding eclasses from PORTDIR,
also advise the user to add FEATURES="metadata-transfer" to make.conf.
(trunk r10310)

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

16 years agoFix the variable subsitution code from bug #221755 so that variable
Zac Medico [Mon, 12 May 2008 00:01:26 +0000 (00:01 -0000)]
Fix the variable subsitution code from bug #221755 so that variable
assignments from earlier files don't leak into variable assignments
from later files (except through substitution). (trunk r10294:10297)

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

16 years agoBug #221755 - Enable variable substitution in make.defaults to work accross
Zac Medico [Sun, 11 May 2008 23:24:08 +0000 (23:24 -0000)]
Bug #221755 - Enable variable substitution in make.defaults to work accross
multiple files instead of being confined to a single file. This allows
profiles to create incremental-like behavior with non-incremental variables
when desired. (trunk r10293)

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

16 years agoMerge from trunk:
Zac Medico [Sun, 11 May 2008 19:47:10 +0000 (19:47 -0000)]
Merge from trunk:
------------------------------------------------------------------------
r10291 | zmedico | 2008-05-11 12:37:31 -0700 (Sun, 11 May 2008) | 2 lines

Add back the warning for DISTDIR about storing stuff inside PORTDIR.

------------------------------------------------------------------------
r10290 | zmedico | 2008-05-11 12:35:26 -0700 (Sun, 11 May 2008) | 2 lines

Sync make.conf.example with make.conf.5 for bug #220111.

------------------------------------------------------------------------
r10289 | zmedico | 2008-05-11 12:21:28 -0700 (Sun, 11 May 2008) | 3 lines

Bug #220111 - Update the DISTDIR docs to clarify that it's safe to remove
any and all files from this location after packages are built.

------------------------------------------------------------------------
r10288 | zmedico | 2008-05-11 11:25:35 -0700 (Sun, 11 May 2008) | 2 lines

Make the summary more accurate.

------------------------------------------------------------------------

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

16 years agoIf the uninstall task did not need to be executed because
Zac Medico [Sat, 10 May 2008 18:17:11 +0000 (18:17 -0000)]
If the uninstall task did not need to be executed because
of an upgrade, display Blocker -> Upgrade edges since the
corresponding Blocker -> Uninstall edges will not be shown.
(trunk r10286)

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

16 years agoeachother -> each other (trunk r10284)
Zac Medico [Sat, 10 May 2008 17:10:02 +0000 (17:10 -0000)]
eachother -> each other (trunk r10284)

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

16 years agoAlways include satisfied blockers as an indicator that blocking
Zac Medico [Sat, 10 May 2008 08:48:15 +0000 (08:48 -0000)]
Always include satisfied blockers as an indicator that blocking
packages will be temporarily installed simultaneously. (trunk r10281)

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

16 years agoWhen selecting leaf nodes, if there is a mix of merge and uninstall
Zac Medico [Sat, 10 May 2008 08:35:41 +0000 (08:35 -0000)]
When selecting leaf nodes, if there is a mix of merge and uninstall
nodes, save the uninstall nodes from later since sometimes a merge
node will render an install node unnecessary, and we want to avoid
doing a separate uninstall task in that case. (trunk r10279)

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

16 years agoFix another KeyError, reported in Bug #221107, comment #4. There's no need
Zac Medico [Sat, 10 May 2008 08:07:58 +0000 (08:07 -0000)]
Fix another KeyError, reported in Bug #221107, comment #4. There's no need
to remove uninstall tasks from scheduled_uninstalls, so just keep them
in there. (trunk r10277)

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

16 years agoBug #221053 - Save the resume list before verifying the ebuild Manifests
Zac Medico [Fri, 9 May 2008 19:13:08 +0000 (19:13 -0000)]
Bug #221053 - Save the resume list before verifying the ebuild Manifests
since it might be possible for the user to use --resume --skipfirst get
past a non-essential package with a broken digest. (trunk r10275)

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

16 years agoBug #221071 - Prevent display_problems() from redundantly displaying
Zac Medico [Fri, 9 May 2008 19:04:38 +0000 (19:04 -0000)]
Bug #221071 - Prevent display_problems() from redundantly displaying
the exact same merge list a second time. (trunk r10273)

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

16 years agoBug #221107 - Fix depgraph._serialize_tasks() so that it doesn't
Zac Medico [Fri, 9 May 2008 18:37:04 +0000 (18:37 -0000)]
Bug #221107 - Fix depgraph._serialize_tasks() so that it doesn't
try to schedule an uninstall task that's already been scheduled
but hasn't been executed yet due to dependence on installation of
blocking packages. (trunk r10271)

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

16 years agoDescribe how file collisions between blocking packages are resolved when
Zac Medico [Fri, 9 May 2008 15:51:30 +0000 (15:51 -0000)]
Describe how file collisions between blocking packages are resolved when
they are temporarily installed simultaneously. (trunk r10269)

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

16 years agoSimplify code for derived Package attributes. (trunk r10266)
Zac Medico [Fri, 9 May 2008 08:46:04 +0000 (08:46 -0000)]
Simplify code for derived Package attributes. (trunk r10266)

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

16 years agoFor the "blockers" parameter that's passed into the dblink constructor
Zac Medico [Fri, 9 May 2008 04:19:22 +0000 (04:19 -0000)]
For the "blockers" parameter that's passed into the dblink constructor
now, make it a callable since it really shouldn't be called until the
vdb lock has been acquired. (trunk r10264)

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

16 years agoIf an uninstall task fails inside MergeTask.merge(), use an UninstallFailure
Zac Medico [Fri, 9 May 2008 03:42:02 +0000 (03:42 -0000)]
If an uninstall task fails inside MergeTask.merge(), use an UninstallFailure
exception to handle it instead of allowing unmerge() to call exit().
(trunk r10262)

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

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

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

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

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

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

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

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

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

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

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

16 years agoMake some confmem behavior modifications in order to try and make it
Zac Medico [Thu, 8 May 2008 21:19:35 +0000 (21:19 -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.

(trunk r10250)

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

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

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

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

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

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

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

16 years agoBug #220341 - USE=multislot can make an installed package appear as if
Zac Medico [Thu, 8 May 2008 17:40:20 +0000 (17:40 -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. (trunk r10237)

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

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

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

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

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

16 years agoDon't use try/finally to close atomic_ofstream since we don't want to
Zac Medico [Thu, 8 May 2008 10:34:52 +0000 (10:34 -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. (trunk r10231)

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

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

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