portage.git
16 years agoMention masked packages in another --resume message.
Zac Medico [Sun, 1 Jun 2008 04:58:37 +0000 (04:58 -0000)]
Mention masked packages in another --resume message.

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

16 years agoReference depgraph.UnsatisfiedResumeDep instead of mydepgraph since the
Zac Medico [Sun, 1 Jun 2008 04:50:27 +0000 (04:50 -0000)]
Reference depgraph.UnsatisfiedResumeDep instead of mydepgraph since the
latter can trigger an UnboundLocalError in some cases (^C for example).

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

16 years agoUpdate the --skipfirst dropped packages warning to mention "masking"
Zac Medico [Sun, 1 Jun 2008 04:47:01 +0000 (04:47 -0000)]
Update the --skipfirst dropped packages warning to mention "masking"
in addition to unsatisfied dependencies.

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

16 years agoUpdate the UnsatisfiedResumeDep display to distinguish masked packages
Zac Medico [Sun, 1 Jun 2008 04:35:51 +0000 (04:35 -0000)]
Update the UnsatisfiedResumeDep display to distinguish masked packages
from those with unsatisfied dependencies.

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

16 years agoRevert changes wrt argument atoms in the previous commit since it's not
Zac Medico [Sun, 1 Jun 2008 04:27:55 +0000 (04:27 -0000)]
Revert changes wrt argument atoms in the previous commit since it's not
really useful.

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

16 years agoMake --skipfirst tolerate masked packages by dropping them (similar to
Zac Medico [Sun, 1 Jun 2008 01:37:34 +0000 (01:37 -0000)]
Make --skipfirst tolerate masked packages by dropping them (similar to
how it would drop a package that has an unsatisfied dependency).

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

16 years agoFix EditablePackageSet.update() to create Atom instances when necessary.
Zac Medico [Sun, 1 Jun 2008 01:27:21 +0000 (01:27 -0000)]
Fix EditablePackageSet.update() to create Atom instances when necessary.

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

16 years agoMake PackageSet._setAtoms() use existing Atom instances when available.
Zac Medico [Sat, 31 May 2008 23:10:14 +0000 (23:10 -0000)]
Make PackageSet._setAtoms() use existing Atom instances when available.

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

16 years agoFix create_world_atom() to take a Package instance in it's arguments.
Zac Medico [Sat, 31 May 2008 20:02:58 +0000 (20:02 -0000)]
Fix create_world_atom() to take a Package instance in it's arguments.

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

16 years agoAdd some isvalidatom() test cases with "null" and missing category.
Zac Medico [Sat, 31 May 2008 09:35:51 +0000 (09:35 -0000)]
Add some isvalidatom() test cases with "null" and missing category.

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

16 years agoFix TypeError: 'tuple' object does not support item assignment
Zac Medico [Sat, 31 May 2008 09:24:01 +0000 (09:24 -0000)]
Fix TypeError: 'tuple' object does not support item assignment

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

16 years ago* Tweak isvalidatom() to treat "null" category as valid, but missing category
Zac Medico [Sat, 31 May 2008 09:11:25 +0000 (09:11 -0000)]
* Tweak isvalidatom() to treat "null" category as valid, but missing category
  as invalid (previously both where treated as invalid).

* Fix a spot inside emerge's unmerge() function that sometimes generates
  invalid atoms by adding an unnecessary "=" to the front. Even when in
  cases that resulted in a valid atom here, adding the "=" was redundant
  because dep_expand() does that automatically now (for backward compat).

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

16 years agoClean up reference to parts of the first graph for --skipfirst.
Zac Medico [Sat, 31 May 2008 02:06:01 +0000 (02:06 -0000)]
Clean up reference to parts of the first graph for --skipfirst.

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

16 years agoOptimize the new --skipfirst code so that in only has to build
Zac Medico [Sat, 31 May 2008 01:54:11 +0000 (01:54 -0000)]
Optimize the new --skipfirst code so that in only has to build
a new depgraph one time when there are unsatisfied deps. This
works by recursively traversing the digraph to remove the parent
packages whose deps become unsatisfied when their dependencies are
pruned from the mergelist.

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

16 years agoFix PackageSet.findAtomForPackage() to find the most specific atom since
Zac Medico [Fri, 30 May 2008 23:46:08 +0000 (23:46 -0000)]
Fix PackageSet.findAtomForPackage() to find the most specific atom since
it can affect behavior when deciding whether or not to add a slot atom to
the world file.

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

16 years agoNow that dbapi._iter_match() is guaranteed to return a real iterator with
Zac Medico [Fri, 30 May 2008 21:14:32 +0000 (21:14 -0000)]
Now that dbapi._iter_match() is guaranteed to return a real iterator with
a next method(), we can just call next() and handle StopIteration.

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

16 years agoFor consistency, make sure that a normal iterator is always returned
Zac Medico [Fri, 30 May 2008 20:46:05 +0000 (20:46 -0000)]
For consistency, make sure that a normal iterator is always returned
from dbapi._iter_match() (and never a list). This way the caller can
be sure that the returned object has a next() method.

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

16 years agoMake the use_cache=0 listdir() implementation inside vardbapi.cpv_all()
Zac Medico [Fri, 30 May 2008 20:19:43 +0000 (20:19 -0000)]
Make the use_cache=0 listdir() implementation inside vardbapi.cpv_all()
rains a PermissionDenied error when appropriate.

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

16 years agoPass a mutable config instance into get_masking_status(). Currently
Zac Medico [Fri, 30 May 2008 09:56:20 +0000 (09:56 -0000)]
Pass a mutable config instance into get_masking_status(). Currently
it doesn't matter for installed packages but it's safer to be
consistent to avoid accidental breakage in the future.

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

16 years agoMake PackageSet.findAtomForPackage() just return the first atom found
Zac Medico [Fri, 30 May 2008 06:50:34 +0000 (06:50 -0000)]
Make PackageSet.findAtomForPackage() just return the first atom found
since best_match_to_list() won't work correctly for atoms matched
via PROVIDE.

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

16 years agoSimplify None Package.slot handling in match_from_list().
Zac Medico [Fri, 30 May 2008 01:08:35 +0000 (01:08 -0000)]
Simplify None Package.slot handling in match_from_list().

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

16 years agoFix Atom attribute handling in get_operator() and dep_getslot() to account
Zac Medico [Fri, 30 May 2008 00:37:34 +0000 (00:37 -0000)]
Fix Atom attribute handling in get_operator() and dep_getslot() to account
for None return values.

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

16 years agoCreate Atom instances earlier to avoid redundant validation.
Zac Medico [Fri, 30 May 2008 00:03:45 +0000 (00:03 -0000)]
Create Atom instances earlier to avoid redundant validation.

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

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

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

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

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

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

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

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

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

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

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

16 years agoClean up references to unsatisfied_parents.
Zac Medico [Thu, 29 May 2008 21:00:16 +0000 (21:00 -0000)]
Clean up references to unsatisfied_parents.

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

16 years agoClean up reference to dropped_tasks when finished.
Zac Medico [Thu, 29 May 2008 20:52:13 +0000 (20:52 -0000)]
Clean up reference to dropped_tasks when finished.

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

16 years agoWhen --skipfirst drops packages due to unsatisfied dependencies, display
Zac Medico [Thu, 29 May 2008 20:44:08 +0000 (20:44 -0000)]
When --skipfirst drops packages due to unsatisfied dependencies, display
a warning message with the list of dropped packages.

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

16 years agoClean up exception reference from previous commit.
Zac Medico [Thu, 29 May 2008 19:56:42 +0000 (19:56 -0000)]
Clean up exception reference from previous commit.

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

16 years agoMake --skipfirst handle missing dependencies by dropping the merge tasks
Zac Medico [Thu, 29 May 2008 19:50:50 +0000 (19:50 -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.

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

16 years agoSave the content of CONFIG_MEMORY_FILE in dblink.treewalk() _before_
Zac Medico [Thu, 29 May 2008 05:23:18 +0000 (05:23 -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.

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

16 years agoMake the unmerge time CONFIG_MEMORY_FILE pruning slightly more aggressive,
Zac Medico [Thu, 29 May 2008 04:53:15 +0000 (04:53 -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.

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

16 years agoFilter out installed keyword masked packages when populating
Zac Medico [Thu, 29 May 2008 00:35:09 +0000 (00:35 -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().

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

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

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

16 years agoSkip redundant Atom construction in select_package().
Zac Medico [Wed, 28 May 2008 22:12:18 +0000 (22:12 -0000)]
Skip redundant Atom construction in select_package().

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

16 years agoUpdate the fix from bug #220341 to protect USE deps from being neglected.
Zac Medico [Wed, 28 May 2008 22:06:45 +0000 (22:06 -0000)]
Update the fix from bug #220341 to protect USE deps from being neglected.

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

16 years agoBug #223447 - Adjust the "installed packages are masked" display to recognize
Zac Medico [Wed, 28 May 2008 08:31:06 +0000 (08:31 -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.

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

16 years agoMake the new behavior from bug #222439 conditional on EAPI being something
Zac Medico [Wed, 28 May 2008 01:27:56 +0000 (01:27 -0000)]
Make the new behavior from bug #222439 conditional on EAPI being something
other than 0 or 1.

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

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

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

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

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

16 years agoBug #222439 - Add doman support for foo.lang.N filenames. Behavior is
Zac Medico [Tue, 27 May 2008 23:08:22 +0000 (23:08 -0000)]
Bug #222439 - Add doman support for foo.lang.N filenames. Behavior is
as follows:

 foo.1    -> man/man1/foo.1
 foo.lang.1 -> man/lang/man1/foo.1

Thanks to Yuri Vasilevski for the initial patch. I've modified it to
use bash's =~ operator and corresponding $BASH_REMATCH array.

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

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

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

16 years agoFix typo.
Zac Medico [Tue, 27 May 2008 07:53:32 +0000 (07:53 -0000)]
Fix typo.

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

16 years agoMake config._init_dirs() preserver /tmp and /var/tmp permissions if
Zac Medico [Tue, 27 May 2008 07:48:19 +0000 (07:48 -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.

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

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

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

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

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

16 years agoSet Atom.use = None when there are no USE deps (instead of the empty
Zac Medico [Tue, 27 May 2008 05:45:48 +0000 (05:45 -0000)]
Set Atom.use = None when there are no USE deps (instead of the empty
tuple returned from dep_getusedeps()).

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

16 years agoRepoman only checks IUSE for USE deps, so don't evaluate conditional USE deps
Zac Medico [Tue, 27 May 2008 05:42:28 +0000 (05:42 -0000)]
Repoman only checks IUSE for USE deps, so don't evaluate conditional USE deps
in this case.

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

16 years agoFix dbapi._iter_match_use() to escape IUSE values when necessary.
Zac Medico [Tue, 27 May 2008 04:50:37 +0000 (04:50 -0000)]
Fix dbapi._iter_match_use() to escape IUSE values when necessary.

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

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

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

16 years agoDefine __slots__ for the _use_dep class.
Zac Medico [Tue, 27 May 2008 04:10:11 +0000 (04:10 -0000)]
Define __slots__ for the _use_dep class.

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

16 years agoFix USE dep matching support in match_from_list() so that it checks
Zac Medico [Tue, 27 May 2008 04:04:28 +0000 (04:04 -0000)]
Fix USE dep matching support in match_from_list() so that it checks
to make sure the package supports all specified IUSE. This involves
updating all Package, FakeVartree, and BlockerDB constructor
arguments to implement a Package.root_config attribute that's used
to access implicit IUSE.

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

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

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

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

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

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

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

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

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

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

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

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

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

16 years ago* Enable config.setcpv() to use a Package instance in place of a cpv.
Zac Medico [Mon, 26 May 2008 08:02:40 +0000 (08:02 -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.

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

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

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

16 years agoFix breakage in Package constructor attribute initialization.
Zac Medico [Sun, 25 May 2008 22:49:16 +0000 (22:49 -0000)]
Fix breakage in Package constructor attribute initialization.

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

16 years agoRemove unused code.
Zac Medico [Sun, 25 May 2008 22:33:09 +0000 (22:33 -0000)]
Remove unused code.

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

16 years agoUse the metadata wrapper to initialize Package slot and use attributes.
Zac Medico [Sun, 25 May 2008 21:57:14 +0000 (21:57 -0000)]
Use the metadata wrapper to initialize Package slot and use attributes.

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

16 years agoRemove the Package.cpv_slot attribute.
Zac Medico [Sun, 25 May 2008 21:45:41 +0000 (21:45 -0000)]
Remove the Package.cpv_slot attribute.

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

16 years ago* Add support for Package instances and USE deps in match_from_list().
Zac Medico [Sun, 25 May 2008 21:34:21 +0000 (21:34 -0000)]
* Add support for Package instances and USE deps in match_from_list().
* Add USE dep matching support to depgraph._iter_atoms_for_pkg().

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

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

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

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

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

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

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

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

16 years agoRemove category validation cruft from catpkgsplit().
Zac Medico [Sun, 25 May 2008 03:05:30 +0000 (03:05 -0000)]
Remove category validation cruft from catpkgsplit().

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

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

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

16 years ago* Fix dep_getusedeps() test to work with tuples.
Zac Medico [Sun, 25 May 2008 02:20:45 +0000 (02:20 -0000)]
* Fix dep_getusedeps() test to work with tuples.
* Add test cases for conditional USE deps.

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

16 years agoAdd support for conditionals inside USE dependencies. This is useful
Zac Medico [Sun, 25 May 2008 01:44:03 +0000 (01:44 -0000)]
Add support for conditionals inside USE dependencies. This is useful
for cases in which the package satisfying a dependency should have
identical or opposite flag state relative to the parent package.

Conditionals are evaluated as follows:

   parent state   conditional   result
     x              [x?]          [x]
    -x              [x?]         [-x]
     x             [-x?]         [-x]
    -x             [-x?]          [x]

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

16 years agoFix broken dep_getusedeps() cache behavior so that it returns the
Zac Medico [Sat, 24 May 2008 22:24:58 +0000 (22:24 -0000)]
Fix broken dep_getusedeps() cache behavior so that it returns the
correct type.

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

16 years agoFor dep_expand() backward compatibility, handle atoms with missing '='
Zac Medico [Sat, 24 May 2008 22:03:27 +0000 (22:03 -0000)]
For dep_expand() backward compatibility, handle atoms with missing '='
prefix which did not raise an error here before the portage.dep.Atom
class was introduced.

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

16 years agoFix paren_reduce() so that it appropriately raises an InvalidDependString()
Zac Medico [Sat, 24 May 2008 21:33:12 +0000 (21:33 -0000)]
Fix paren_reduce() so that it appropriately raises an InvalidDependString()
in some cases, instead of a nonsense ValueError.

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

16 years agoFix paren_reduce() so that it appropriately raises an InvalidDependString()
Zac Medico [Sat, 24 May 2008 21:23:39 +0000 (21:23 -0000)]
Fix paren_reduce() so that it appropriately raises an InvalidDependString()
in some cases, instead of a nonsense AttributeError.

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

16 years agoFix use_reduce() so that it appropriately raises an InvalidDependString
Zac Medico [Sat, 24 May 2008 21:00:07 +0000 (21:00 -0000)]
Fix use_reduce() so that it appropriately raises an InvalidDependString
instead of an IndexError in some cases (avoid IndexError by using slice
notation).

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

16 years agoBug #223417 - Make the vardbapi.cpv_all() use_cache parameter useful
Zac Medico [Sat, 24 May 2008 20:35:30 +0000 (20:35 -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).

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

16 years agoBug #223417 - use floating point mtime for finer grained validation in
Zac Medico [Sat, 24 May 2008 19:22:00 +0000 (19:22 -0000)]
Bug #223417 - use floating point mtime for finer grained validation in
cachedir().

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

16 years agoBug #220671 - Fix 'RuntimeError: Set changed size during iteration' error.
Zac Medico [Fri, 23 May 2008 18:51:58 +0000 (18:51 -0000)]
Bug #220671 - Fix 'RuntimeError: Set changed size during iteration' error.

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

16 years agoBug #2272 - Extend dependency atom sytax to specify enabled or disabled
Zac Medico [Fri, 23 May 2008 08:42:35 +0000 (08:42 -0000)]
Bug #2272 - Extend dependency atom sytax to specify enabled or disabled
states of USE flags. Matching with the new syntax is currently only
supported in the dbapi classes and dependency resolver (use matching
does not work yet in config files such as package.mask).

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

16 years agoRaise an error if the named repository doesn't exist v2.2_pre7
Marius Mauch [Wed, 21 May 2008 16:05:03 +0000 (16:05 -0000)]
Raise an error if the named repository doesn't exist

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

16 years agoWhen using vecho or eqawarn it comes in handy when isolated-functions
Zac Medico [Tue, 20 May 2008 19:42:39 +0000 (19:42 -0000)]
When using vecho or eqawarn it comes in handy when isolated-functions
have been sourced. (branches/prefix r10380)

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

16 years agoSimplify cache code in vardbapi.aux_get().
Zac Medico [Tue, 20 May 2008 03:06:32 +0000 (03:06 -0000)]
Simplify cache code in vardbapi.aux_get().

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

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

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

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

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

16 years agoAdjust code order to organize it a bit. (branches/2.1.2 r10371)
Zac Medico [Mon, 19 May 2008 23:39:15 +0000 (23:39 -0000)]
Adjust code order to organize it a bit. (branches/2.1.2 r10371)

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

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

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

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

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

16 years agoExclude "env" from use in variable substitution since we want to avoid
Zac Medico [Mon, 19 May 2008 20:29:48 +0000 (20:29 -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.

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

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

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

16 years agoTweak vardbapi.aux_get() cache logic a bit.
Zac Medico [Sun, 18 May 2008 22:27:15 +0000 (22:27 -0000)]
Tweak vardbapi.aux_get() cache logic a bit.

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

16 years ago* To avoid excessive IO on each call to LinkageMap.rebuild(), cache
Zac Medico [Sun, 18 May 2008 22:18:08 +0000 (22:18 -0000)]
* To avoid excessive IO on each call to LinkageMap.rebuild(), cache
  NEEDED.* files via vardbapi.aux_get().

* Make vardbapi.aux_get() preserve newlines in multi-line metadata
  such as NEEDED.* and CONTENTS.

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

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

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

16 years agoAdd the environment and some more files to the existing make.defaults
Zac Medico [Sat, 17 May 2008 22:44:22 +0000 (22:44 -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

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

16 years agoFix th logic from the previous commit.
Zac Medico [Sat, 17 May 2008 19:55:03 +0000 (19:55 -0000)]
Fix th logic from the previous commit.

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

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

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