portage.git
17 years agoRemove references to ${O} in dyn_spec() since antarus
Zac Medico [Tue, 6 Nov 2007 08:58:08 +0000 (08:58 -0000)]
Remove references to ${O} in dyn_spec() since antarus
made that variable mutable.

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

17 years agoGo ahead and exempt selected profile-specific USE_EXPAND
Zac Medico [Tue, 6 Nov 2007 08:31:22 +0000 (08:31 -0000)]
Go ahead and exempt selected profile-specific USE_EXPAND
flags from IUSE QA Notices since we are planning to make
these particular flags into implicit members of IUSE.
We can make this extensible later, but for now we just
want to eliminate some useless QA Notices (a subset of
bug #70648). We're not exempting any non profile-
specific USE_EXPAND flags here. For non profile-specific
flags, we intend to implement an IUSE syntax extension
(bug #133327).

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

17 years agoFix create_world_atom() logic some more for bug #198129.
Zac Medico [Tue, 6 Nov 2007 06:54:41 +0000 (06:54 -0000)]
Fix create_world_atom() logic some more for bug #198129.

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

17 years agoBug #198129 - Prevent SLOT atoms like sys-devel/binutils:0
Zac Medico [Tue, 6 Nov 2007 06:41:04 +0000 (06:41 -0000)]
Bug #198129 - Prevent SLOT atoms like  sys-devel/binutils:0
from being inappropriately recorded in the world file when
USE=multislot is enabled.

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

17 years agoremove O and PPID from being readonly. O is set python side (and we will hopefully...
Alec Warner [Tue, 6 Nov 2007 06:25:50 +0000 (06:25 -0000)]
remove O and PPID from being readonly.  O is set python side (and we will hopefully stop being exported soon.  PPID is ro by bash, so no need to declare it twice

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

17 years agoAllow multislot packages to be added to the world file
Zac Medico [Mon, 5 Nov 2007 22:42:16 +0000 (22:42 -0000)]
Allow multislot packages to be added to the world file
via --noreplace. Having these atoms in the world file
will trigger recommendations to run emaint in some
cases, like when running `emerge -e world`. The atoms
need to be in the world file to prevent multislot
packages from being removed by --depclean though.

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

17 years agoMake WorldHandler lock the world file when in --fix mode.
Zac Medico [Mon, 5 Nov 2007 08:41:00 +0000 (08:41 -0000)]
Make WorldHandler lock the world file when in --fix mode.

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

17 years agoAdd support for package sets in WorldHandler.
Zac Medico [Mon, 5 Nov 2007 08:01:54 +0000 (08:01 -0000)]
Add support for package sets in WorldHandler.

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

17 years agoFix 'TypeError: not all arguments converted during string formatting'
Zac Medico [Mon, 5 Nov 2007 06:49:14 +0000 (06:49 -0000)]
Fix 'TypeError: not all arguments converted during string formatting'
issues with the EbuildNestedDie check.

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

17 years agoReplace StringIO usage with a simple list of lines. The
Zac Medico [Mon, 5 Nov 2007 06:16:16 +0000 (06:16 -0000)]
Replace StringIO usage with a simple list of lines. The
iteration interface is practically identical but the
list of lines if more efficient because the lines only
have to be split one time for each ebuild instead of
for each check.

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

17 years agoMake exception strings more informative.
Zac Medico [Sun, 4 Nov 2007 20:57:12 +0000 (20:57 -0000)]
Make exception strings more informative.

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

17 years agoMake Manifest.create() do some basic validation of ebuild
Zac Medico [Sun, 4 Nov 2007 18:00:56 +0000 (18:00 -0000)]
Make Manifest.create() do some basic validation of ebuild
file names like portdbapi.cp_list() would do.

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

17 years agoIn portdbapi.cp_list(), validate the ebuild name to ensure
Zac Medico [Sun, 4 Nov 2007 09:29:56 +0000 (09:29 -0000)]
In portdbapi.cp_list(), validate the ebuild name to ensure
that it matches the name of the package.

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

17 years agoWhen evaluating *DEPEND conditionals for the Packages metadata
Zac Medico [Sun, 4 Nov 2007 08:10:29 +0000 (08:10 -0000)]
When evaluating *DEPEND conditionals for the Packages metadata
index, do not use IUSE to filter USE since there is currently
no guarantee that IUSE properly defines all of the necessary
flags.

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

17 years agoClean up ACCEPT_KEYWORDS incremental stacking logic and
Zac Medico [Sun, 4 Nov 2007 06:36:02 +0000 (06:36 -0000)]
Clean up ACCEPT_KEYWORDS incremental stacking logic and
fix some minor inconsistencies.

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

17 years agoIn fetch(), replace checksum_failure_counts dict with single
Zac Medico [Sun, 4 Nov 2007 05:32:48 +0000 (05:32 -0000)]
In fetch(), replace checksum_failure_counts dict with single
int counter.

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

17 years agoGenerate a usage.obsolete warning whenever
Zac Medico [Sun, 4 Nov 2007 03:32:29 +0000 (03:32 -0000)]
Generate a usage.obsolete warning whenever
-* is found in KEYWORDS.

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

17 years agoMake fetch() behave like the ebuild has RESTRICT="primaryuri"
Zac Medico [Sun, 4 Nov 2007 02:11:24 +0000 (02:11 -0000)]
Make fetch() behave like the ebuild has RESTRICT="primaryuri"
after 2 checksum failures for a fetched file. This should
increase the probability of fetching the correct file before
the maximum number of tries is reached.

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

17 years agoFor sanity, pass an actual list of keys into aux_get() instead
Zac Medico [Sun, 4 Nov 2007 00:21:02 +0000 (00:21 -0000)]
For sanity, pass an actual list of keys into aux_get() instead
of iterating over a set that happens to be mutable (though it
remains constant in practice).

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

17 years agoBug #197797 - Do not actively clear o+rx permission bits
Zac Medico [Sat, 3 Nov 2007 23:43:31 +0000 (23:43 -0000)]
Bug #197797 - Do not actively clear o+rx permission bits
on the /var/lib/portage directory. Only clear the o+w
bits. This allows users who aren't in the portage group
to have read access to the world file by default, but
administrators can explicitly chmod o-rx that directory
if necessary, and portage will leave those bits alone.

This makes the permission settings in dblink.treewalk()
consistent with those that are already defined in
config._init_dirs().

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

17 years agoCall die() so that the $TMP directory is always properly
Zac Medico [Sat, 3 Nov 2007 22:47:37 +0000 (22:47 -0000)]
Call die() so that the $TMP directory is always properly
cleaned up.

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

17 years agoBug #197965 - Make fetch() bail out after 5 checksum
Zac Medico [Sat, 3 Nov 2007 21:40:12 +0000 (21:40 -0000)]
Bug #197965 - Make fetch() bail out after 5 checksum
failures for a particular file since downloading the
same file repeatedly from every single available
mirror is a waste of bandwidth and time.

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

17 years agoif mode=1 and `dialog` is not usable, abort #197990 by DominikBuerkle
Mike Frysinger [Sat, 3 Nov 2007 21:13:45 +0000 (21:13 -0000)]
if mode=1 and `dialog` is not usable, abort #197990 by DominikBuerkle

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

17 years agoBug #197965 - When fetch() encounters a checksum failure,
Zac Medico [Sat, 3 Nov 2007 20:40:40 +0000 (20:40 -0000)]
Bug #197965 - When fetch() encounters a checksum failure,
look for an identical file from a previous checksum failure
in order to avoid consuming unnecessary disk space with
duplicate files.

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

17 years agoFix update_config_files() so that it uses update_dbentry()
Zac Medico [Sat, 3 Nov 2007 19:11:37 +0000 (19:11 -0000)]
Fix update_config_files() so that it uses update_dbentry()
to handle update commands since that already supports
slotmove commands for SLOT atoms.

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

17 years agoRemove redundant code from previous commit.
Zac Medico [Sat, 3 Nov 2007 16:37:25 +0000 (16:37 -0000)]
Remove redundant code from previous commit.

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

17 years agoBug #197932 - Make dbapi._cpv_sort_ascending()
Zac Medico [Sat, 3 Nov 2007 16:34:23 +0000 (16:34 -0000)]
Bug #197932 - Make dbapi._cpv_sort_ascending()
preserve explicit -r0 for consistency in findname
and aux_get calls.

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

17 years agoTODO: Make update_config_files() handle slotmove commands for SLOT atoms.
Zac Medico [Sat, 3 Nov 2007 09:45:51 +0000 (09:45 -0000)]
TODO: Make update_config_files() handle slotmove commands for SLOT atoms.

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

17 years agoIn portage.fetch(), condense digest check output to a single
Zac Medico [Sat, 3 Nov 2007 01:54:33 +0000 (01:54 -0000)]
In portage.fetch(), condense digest check output to a single
line for all digests.

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

17 years agoSort scanlist and ebuildlist to ensure that repoman always
Zac Medico [Fri, 2 Nov 2007 21:17:40 +0000 (21:17 -0000)]
Sort scanlist and ebuildlist to ensure that repoman always
processes packages in a predictable order.

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

17 years agoMake portdbapi.gvisible() use portdbapi._aux_cache_keys
Zac Medico [Fri, 2 Nov 2007 08:51:34 +0000 (08:51 -0000)]
Make portdbapi.gvisible() use portdbapi._aux_cache_keys
for metadata pulls.

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

17 years agoReturn early from config.getMaskAtom() as soon as a matching
Zac Medico [Fri, 2 Nov 2007 08:33:47 +0000 (08:33 -0000)]
Return early from config.getMaskAtom() as soon as a matching
unmask atom is found.

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

17 years agoBug #197594 - Document FEATURES="lmirror".
Zac Medico [Fri, 2 Nov 2007 07:14:32 +0000 (07:14 -0000)]
Bug #197594 - Document FEATURES="lmirror".

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

17 years agoMake sure vardbapi.cp_list() always sorts the results.
Zac Medico [Fri, 2 Nov 2007 06:14:53 +0000 (06:14 -0000)]
Make sure vardbapi.cp_list() always sorts the results.

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

17 years agoFix ignore_priority logic in depgraph.altlist() in order
Zac Medico [Fri, 2 Nov 2007 04:31:28 +0000 (04:31 -0000)]
Fix ignore_priority logic in depgraph.altlist() in order
to handle some cases where it was possible for nodes to
be selected without their PDEPENDs being propperly added
to the asap_nodes list.

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

17 years agoCollapse 2 identical code hunks into 1.
Zac Medico [Fri, 2 Nov 2007 02:14:48 +0000 (02:14 -0000)]
Collapse 2 identical code hunks into 1.

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

17 years agoOptimize merge order to try and select nodes that only have
Zac Medico [Fri, 2 Nov 2007 01:14:18 +0000 (01:14 -0000)]
Optimize merge order to try and select nodes that only have
unsatisfied PDEPEND slightly earlier. This solves a problem
with xorg-server being merged too early during an all binary
install (since DEPEND is ignored for binaries), triggering
built_with_use() calls to fail as reported in bug #189966.
Since DEPEND is discarded in cases like this, it is
important to exploit the difference between PDEPEND and
RDEPEND in order to optimize merge order. Without this
optimization, the merge order is technically correct, but
not as optimal as it should be and has lots of potential to
trigger issues with built_with_use() or similar things that
require better optimization of merge order.

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

17 years agoIn the 'there are no ebuilds to satisfy "foo"' message, discard
Zac Medico [Thu, 1 Nov 2007 21:14:06 +0000 (21:14 -0000)]
In the 'there are no ebuilds to satisfy "foo"' message, discard
null/ from failed cpv_expand category expansion.

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

17 years agoProperly escape { and } characters in regular expressions even
Zac Medico [Thu, 1 Nov 2007 18:26:41 +0000 (18:26 -0000)]
Properly escape { and } characters in regular expressions even
though it seems to work either way.

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

17 years agoRemove an extra \$ from the EbuildQuote.var_reference regex
Zac Medico [Thu, 1 Nov 2007 18:19:53 +0000 (18:19 -0000)]
Remove an extra \$ from the EbuildQuote.var_reference regex
so that it will properly match things like variable references
without braces, like $S.

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

17 years agoMake the EbuildUselessCdS check for both quoted and unquoted ${S}
Zac Medico [Thu, 1 Nov 2007 17:49:49 +0000 (17:49 -0000)]
Make the EbuildUselessCdS check for both quoted and unquoted ${S}
so the user doesn't have to fix quoting before this check will
recognize the violation.

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

17 years agoAvoid making unnecessary copies of PackageSet._atoms by
Zac Medico [Thu, 1 Nov 2007 06:37:55 +0000 (06:37 -0000)]
Avoid making unnecessary copies of PackageSet._atoms by
replacing calls to self.getAtoms() with self._load().

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

17 years agoAdd a check for redundant cd "${S}" statements on the first
Zac Medico [Thu, 1 Nov 2007 02:25:18 +0000 (02:25 -0000)]
Add a check for redundant cd "${S}" statements on the first
line of src_(compile|install|test) ebuild methods. Thanks to
Petteri Räty <betelgeuse@gentoo.org> for this patch.

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

17 years agoMake depgraph.select_files() recursively expand sets given as
Zac Medico [Wed, 31 Oct 2007 22:12:41 +0000 (22:12 -0000)]
Make depgraph.select_files() recursively expand sets given as
arguments so that containment tests in _get_parent_sets()
properly match atoms in nested sets (like if world contains
system). Otherwise, atoms from nested sets would get recorded
in the world file.

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

17 years agoFix diefunc() so that it doesn't report that the ebuild is from
Zac Medico [Wed, 31 Oct 2007 17:33:00 +0000 (17:33 -0000)]
Fix diefunc() so that it doesn't report that the ebuild is from
an overlay when EMERGE_FROM == binary.

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

17 years agoUpdate the FEATURES=mirror docs to more accurately reflect behavior.
Zac Medico [Wed, 31 Oct 2007 17:12:42 +0000 (17:12 -0000)]
Update the FEATURES=mirror docs to more accurately reflect behavior.

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

17 years agoDefer selection of package dependency atoms until they are
Zac Medico [Wed, 31 Oct 2007 05:27:48 +0000 (05:27 -0000)]
Defer selection of package dependency atoms until they are
actually needed since the appropriate atom selection behavior
can change between the time that the package is initially
added to the graph and when it's dependencies are traversed
(like when --consistent is enabled).

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

17 years agoGather some ignored dependencies so that they can be properly
Zac Medico [Wed, 31 Oct 2007 02:38:29 +0000 (02:38 -0000)]
Gather some ignored dependencies so that they can be properly
processed by the depgraph when "conistent" mode is enabled.

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

17 years agoRemove a few unused depgraph attributes.
Zac Medico [Wed, 31 Oct 2007 01:35:17 +0000 (01:35 -0000)]
Remove a few unused depgraph attributes.

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

17 years agoFix "args" set handling wrt $ROOT in depgraph._complete_graph().
Zac Medico [Tue, 30 Oct 2007 23:33:11 +0000 (23:33 -0000)]
Fix "args" set handling wrt $ROOT in depgraph._complete_graph().

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

17 years agoImplement license filtering for xmatch minimum-visible and
Zac Medico [Tue, 30 Oct 2007 22:00:49 +0000 (22:00 -0000)]
Implement license filtering for xmatch minimum-visible and
bestmatch-visible. Also, make the gvisible license filtering
conditional on config.local_config since repoman doesn't do
license filtering.

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

17 years agoOptimize xmatch "bestmatch-visible" to do fewer metadata
Zac Medico [Tue, 30 Oct 2007 21:48:11 +0000 (21:48 -0000)]
Optimize xmatch "bestmatch-visible" to do fewer metadata
accesses by using the same code as "minimum-visible" but
with a reverse iterator.

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

17 years agoImplement a "consistent" depgraph parameter (enabled by --consistent)
Zac Medico [Tue, 30 Oct 2007 21:25:29 +0000 (21:25 -0000)]
Implement a "consistent" depgraph parameter (enabled by --consistent)
that can be used ensure that installation of new packages does not
break any deep dependencies of required sets (args, system, or world).
Unfortunately, the performance penalty for small dep calculations is
too great to enable this parameter by default. At least it will be
useful for testing backtracking behavior when that is implemented.

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

17 years agoUse rstrip("\n") to remove trailing newlines from
Zac Medico [Mon, 29 Oct 2007 05:26:59 +0000 (05:26 -0000)]
Use rstrip("\n") to remove trailing newlines from
CONTENTS lines.

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

17 years agoRewrite the dblink.getcontents() code to use str.split(" ")
Zac Medico [Mon, 29 Oct 2007 05:22:39 +0000 (05:22 -0000)]
Rewrite the dblink.getcontents() code to use str.split(" ")
for splitting CONTENTS lines so that even file paths that
end with spaces can be handled. This patch makes the fix for
bug #196836#c6 more complete. Some code for parsing old
malformed symlink entries has been removed sinces it's
probably not useful or worth maintaining anymore.

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

17 years agoMake portdbapi.cp_list() use os.listdir() instead of
Zac Medico [Mon, 29 Oct 2007 00:08:28 +0000 (00:08 -0000)]
Make portdbapi.cp_list() use os.listdir() instead of
portage.listdir() since portage.listdir() has unnecessary
overhead and it's cache isn't needed since cp_list() has
it's own cache.

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

17 years agoFix PackageSet.getAtoms() and getNonAtoms() so that they
Zac Medico [Sun, 28 Oct 2007 21:34:36 +0000 (21:34 -0000)]
Fix PackageSet.getAtoms() and getNonAtoms() so that they
don't return references to private data structures.

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

17 years agoFix --depclean to use SetConfig.getSetAtoms() and also fix a
Zac Medico [Sun, 28 Oct 2007 20:47:02 +0000 (20:47 -0000)]
Fix --depclean to use SetConfig.getSetAtoms() and also fix a
broken reference to packagesets which is now settings.sets.

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

17 years agoFix SetConfig.getSetAtoms() to stop initializing ignorelist
Zac Medico [Sun, 28 Oct 2007 20:30:46 +0000 (20:30 -0000)]
Fix SetConfig.getSetAtoms() to stop initializing ignorelist
in the parameter list since otherwise the ignorelist persists
between calls and causes unpredictable results for callers.

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

17 years agoOptimize stdout_spinner.update() methods so that they don't
Zac Medico [Sun, 28 Oct 2007 18:56:59 +0000 (18:56 -0000)]
Optimize stdout_spinner.update() methods so that they don't
waste cpu time by flushing ouput to the tty too frequently.

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

17 years agoFix cp_list() to prevent it from returning a reference
Zac Medico [Sun, 28 Oct 2007 09:05:18 +0000 (09:05 -0000)]
Fix cp_list() to prevent it from returning a reference
to one of it's internal lists.

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

17 years agoSort all dbapi.cp_list() results in ascending order and
Zac Medico [Sun, 28 Oct 2007 07:26:24 +0000 (07:26 -0000)]
Sort all dbapi.cp_list() results in ascending order and
cache the results when possible. The order is preserved
in dbapi.match() so those results are also sorted.

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

17 years agoReplace depgraph._slot_node_map with _slot_pkg_map so
Zac Medico [Sat, 27 Oct 2007 20:43:49 +0000 (20:43 -0000)]
Replace depgraph._slot_node_map with _slot_pkg_map so
that it's easier to get existing Package instances.

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

17 years agoMake depgraph._select_atoms() more flexible by allowing
Zac Medico [Sat, 27 Oct 2007 04:41:56 +0000 (04:41 -0000)]
Make depgraph._select_atoms() more flexible by allowing
the repositories to be passed in as a parameter.

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

17 years agoReuse an existing EmergeConfig instance instead of
Zac Medico [Sat, 27 Oct 2007 01:59:32 +0000 (01:59 -0000)]
Reuse an existing EmergeConfig instance instead of
constructing a new one.

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

17 years agoFix broken $ROOT handling for setconfig in the MergeTask
Zac Medico [Sat, 27 Oct 2007 01:46:37 +0000 (01:46 -0000)]
Fix broken $ROOT handling for setconfig in the MergeTask
constructor.

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

17 years agoIn portage.fetch(), condense digest check ouput to a single
Zac Medico [Fri, 26 Oct 2007 19:35:01 +0000 (19:35 -0000)]
In portage.fetch(), condense digest check ouput to a single
line for all digests.

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

17 years agoOptimize repoman to share portdbapi.cp_list() results
Zac Medico [Fri, 26 Oct 2007 18:06:07 +0000 (18:06 -0000)]
Optimize repoman to share portdbapi.cp_list() results
between all profiles since those results never change.
The cached results also propagate to the xmatch
match-all when appropriate (old-style virtuals are
excluded since they are profile dependent).

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

17 years agoAdd missing break statement for xmatch minimum-visible.
Zac Medico [Fri, 26 Oct 2007 16:34:51 +0000 (16:34 -0000)]
Add missing break statement for xmatch minimum-visible.

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

17 years agoOptimize repoman visibility checks to access as little
Zac Medico [Fri, 26 Oct 2007 08:38:16 +0000 (08:38 -0000)]
Optimize repoman visibility checks to access as little
metadata as possible. (improves performance especially
in cases where metadata needs to be generated). This
works by starting at the lowest version since that's
most likely to have keywords and it returns as soon as
the first visible package is found.

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

17 years agoMake emerge add sets to the world file as one would expect.
Zac Medico [Fri, 26 Oct 2007 06:10:58 +0000 (06:10 -0000)]
Make emerge add sets to the world file as one would expect.

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

17 years agoAllow sets to get through world file validation and
Zac Medico [Fri, 26 Oct 2007 05:18:38 +0000 (05:18 -0000)]
Allow sets to get through world file validation and
expand properly. It's now possible to put @system
in the world file and get the old behavior where
world includes system.

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

17 years agoPrevent premature expansion of old-style virtuals
Zac Medico [Fri, 26 Oct 2007 04:38:59 +0000 (04:38 -0000)]
Prevent premature expansion of old-style virtuals
inside depgraph.select_files().

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

17 years agoOptimize the algorithm used for expansion of set
Zac Medico [Fri, 26 Oct 2007 03:55:22 +0000 (03:55 -0000)]
Optimize the algorithm used for expansion of set
arguments into atoms.

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

17 years agoupdate notes about package sets
Marius Mauch [Fri, 26 Oct 2007 01:13:26 +0000 (01:13 -0000)]
update notes about package sets

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

17 years agobreak potential cycles in set expansion
Marius Mauch [Fri, 26 Oct 2007 01:07:06 +0000 (01:07 -0000)]
break potential cycles in set expansion

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

17 years agouse SetConfig.getSetAtoms instead of PackageSet.getAtoms for expanding sets to allow...
Marius Mauch [Fri, 26 Oct 2007 01:03:24 +0000 (01:03 -0000)]
use SetConfig.getSetAtoms instead of PackageSet.getAtoms for expanding sets to allow recursion, and drop the default 'sets/' prefix for setnames

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

17 years agouse a @ prefix for sets, and replace world/system with their real prefixed names...
Marius Mauch [Fri, 26 Oct 2007 00:55:26 +0000 (00:55 -0000)]
use a @ prefix for sets, and replace world/system with their real prefixed names if found on the commandline

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

17 years agoAllow sets to contain non-atoms
Marius Mauch [Thu, 25 Oct 2007 23:59:44 +0000 (23:59 -0000)]
Allow sets to contain non-atoms

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

17 years agoFIX: indentation problem, also end the Portage identification
Zac Medico [Thu, 25 Oct 2007 19:56:45 +0000 (19:56 -0000)]
FIX: indentation problem, also end the Portage identification
line with a ) if repoman wasn't forced to do its job.
(branches/prefix r8281)

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

17 years agoFix: Make repoman actually USE -m commit message again (and -M
Zac Medico [Thu, 25 Oct 2007 19:54:36 +0000 (19:54 -0000)]
Fix: Make repoman actually USE -m commit message again (and -M
commit message file). (branches/prefix r8280)

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

17 years agoCorrect expected split counts for CONTENTS lines.
Zac Medico [Thu, 25 Oct 2007 17:01:32 +0000 (17:01 -0000)]
Correct expected split counts for CONTENTS lines.

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

17 years agoHandle a potential IndexError.
Zac Medico [Thu, 25 Oct 2007 16:49:59 +0000 (16:49 -0000)]
Handle a potential IndexError.

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

17 years agoRemove obsolete whitespace handling code for "obj" filenames
Zac Medico [Thu, 25 Oct 2007 16:43:06 +0000 (16:43 -0000)]
Remove obsolete whitespace handling code for "obj" filenames
in CONTENTS.

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

17 years agoHandle multiple consecutive spaces in filenames as per
Zac Medico [Thu, 25 Oct 2007 16:36:48 +0000 (16:36 -0000)]
Handle multiple consecutive spaces in filenames as per
bug #196836#c6.

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

17 years agoFor the emergelog message, send in the original list of
Zac Medico [Thu, 25 Oct 2007 06:02:17 +0000 (06:02 -0000)]
For the emergelog message, send in the original list of
arguments that exists before expansion of sets.

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

17 years agoIf the title string is too big then xtermTitle() can
Zac Medico [Thu, 25 Oct 2007 05:57:32 +0000 (05:57 -0000)]
If the title string is too big then xtermTitle() can
misbehave by causing the terminal to echo some of the
characters and generate a "beep" sound. This is easily
triggered by doing things like `emerge world` now since
all the the atoms are expanded.

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

17 years agoFilter atoms that come from sets when generating
Zac Medico [Thu, 25 Oct 2007 05:29:01 +0000 (05:29 -0000)]
Filter atoms that come from sets when generating
the list of atoms to record in the world file.

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

17 years agoFor the global AUTOCLEAN, pass an empty list into unmerge()
Zac Medico [Thu, 25 Oct 2007 04:50:01 +0000 (04:50 -0000)]
For the global AUTOCLEAN, pass an empty list into unmerge()
so it behaves like it used to.

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

17 years agoSpit out a depgraph._get_existing_pkg() method for getting an
Zac Medico [Thu, 25 Oct 2007 02:52:54 +0000 (02:52 -0000)]
Spit out a depgraph._get_existing_pkg() method for getting an
existing Package instance added to the graph for a given SLOT.

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

17 years agoMake the Package class generate the digraph nodes.
Zac Medico [Thu, 25 Oct 2007 02:01:02 +0000 (02:01 -0000)]
Make the Package class generate the digraph nodes.

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

17 years agoFix inverted logic error.
Zac Medico [Thu, 25 Oct 2007 00:05:39 +0000 (00:05 -0000)]
Fix inverted logic error.

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

17 years agoConvert depgraph creation from using recursive calls to
Zac Medico [Wed, 24 Oct 2007 21:31:07 +0000 (21:31 -0000)]
Convert depgraph creation from using recursive calls to
using a stack of dependencies which will be more suitable
for implementation of backtracking.

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

17 years agoAdd back support for greedy SLOTs when --update is enabled as
Zac Medico [Wed, 24 Oct 2007 15:45:24 +0000 (15:45 -0000)]
Add back support for greedy SLOTs when --update is enabled as
per bug #150361. This is currently disabled for sets since
greedy SLOT atoms could be a property of the set itself.

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

17 years agoFix broken import.
Zac Medico [Wed, 24 Oct 2007 06:47:59 +0000 (06:47 -0000)]
Fix broken import.

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

17 years agoAdd back support for helpful `emaint --check world` suggestions
Zac Medico [Wed, 24 Oct 2007 06:42:39 +0000 (06:42 -0000)]
Add back support for helpful `emaint --check world` suggestions
and also show package masking reasons when appropriate.

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

17 years agoAdd back support for detecting if the world file contains
Zac Medico [Wed, 24 Oct 2007 06:13:13 +0000 (06:13 -0000)]
Add back support for detecting if the world file contains
atoms that match packages in package.provided.

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

17 years agoAdd back support for handling missing system/world atoms
Zac Medico [Wed, 24 Oct 2007 05:50:53 +0000 (05:50 -0000)]
Add back support for handling missing system/world atoms
that was removed with depgraph.xcreate(). This doesn't
have support for mapping atoms back to the original sets
yet, but at least a masked or unavailable system/world
atom won't compeletely break the depgraph now.

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

17 years agoReplace sys.exit() calls with return statements in emerge_main().
Zac Medico [Wed, 24 Oct 2007 01:59:42 +0000 (01:59 -0000)]
Replace sys.exit() calls with return statements in emerge_main().

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

17 years agoRemove --update greedy SLOTs code from depgraph.select_files()
Zac Medico [Wed, 24 Oct 2007 01:44:21 +0000 (01:44 -0000)]
Remove --update greedy SLOTs code from depgraph.select_files()
so that any desired SLOTs have to be pulled in explicitly. Any
SLOTs that are not explicitly pulled in will be removed by
--depclean.

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