portage.git
16 years agoValidate atoms from command line args before calling action_depclean().
Zac Medico [Fri, 15 Aug 2008 17:34:33 +0000 (17:34 -0000)]
Validate atoms from command line args before calling action_depclean().

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

16 years agoIn order to avoid an unhandled InvalidAtom exception, validate atoms from
Zac Medico [Fri, 15 Aug 2008 17:19:50 +0000 (17:19 -0000)]
In order to avoid an unhandled InvalidAtom exception, validate atoms from
command line arguments before passing them to unmerge(). Thanks to Cardoe
for reporting.

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

16 years ago* Replace vartree.dep_match() call with normal dbapi.match() call.
Zac Medico [Fri, 15 Aug 2008 17:08:30 +0000 (17:08 -0000)]
* Replace vartree.dep_match() call with normal dbapi.match() call.
* Don't silently swallow unexpected KeyError exceptions from dbapi.match()
  inside unmerge().

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

16 years agoWhen a build fails, generate a status message showing which package
Zac Medico [Thu, 14 Aug 2008 20:28:33 +0000 (20:28 -0000)]
When a build fails, generate a status message showing which package
failed and the path of the relevant log file if available. Thanks
to _neuron_ for the suggestion. Here is some sample output:

 >>> Emerging (1 of 1) foo-bar/baz-1.0
 >>> Failed to emerge foo-bar/baz-1.0, Log file:
 >>>  '/var/log/portage/foo-bar:baz-1.0:20080814-202327.log'

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

16 years agoConvert exceptions from parse_metadata_use() into "metadata.bad" errors
Zac Medico [Thu, 14 Aug 2008 19:30:19 +0000 (19:30 -0000)]
Convert exceptions from parse_metadata_use() into "metadata.bad" errors
instead of exiting.

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

16 years ago* Fix parse_metadata_use() to raise ParseError instead of the ExpatError
Zac Medico [Thu, 14 Aug 2008 19:07:22 +0000 (19:07 -0000)]
* Fix parse_metadata_use() to raise ParseError instead of the ExpatError
  that was reported by grobian.

* Define __all__.

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

16 years agoThe fpformat module is deprecated and will be removed in py3k.
Zac Medico [Thu, 14 Aug 2008 09:37:44 +0000 (09:37 -0000)]
The fpformat module is deprecated and will be removed in py3k.
The % string interpolation operator should be used instead.
Thanks to Ali Polatel <hawking@g.o> for this patch.

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

16 years agoMake Scheduler._choose_pkg() parallelize more aggressively in cases when
Zac Medico [Thu, 14 Aug 2008 05:29:38 +0000 (05:29 -0000)]
Make Scheduler._choose_pkg() parallelize more aggressively in cases when
it will not result in a less optimal build order. This works by modifying
the behavior of Scheduler._dependent_on_scheduled_merges() so that two
cases of dependence are ignored:

 * A given dependency will be merged later anyway (due to dep cycles) and
   therefore delaying the merge of the parent package will not result in a
   more optimal build order.

 * A given dependency is an "uninstall" operation and it also is not a direct
   dependency, therefore it should be irrelevant to build order optimization.

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

16 years agoFix quoting for iteration over PROFILE_PATHS.
Zac Medico [Tue, 12 Aug 2008 22:40:13 +0000 (22:40 -0000)]
Fix quoting for iteration over PROFILE_PATHS.

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

16 years agoCreate a single EAPI section to contain all of the EAPI subsections and v2.2_rc8
Zac Medico [Tue, 12 Aug 2008 19:54:51 +0000 (19:54 -0000)]
Create a single EAPI section to contain all of the EAPI subsections and
replace sect[1-3] elements with "section" elements which have unbounded
depth.

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

16 years agoBug #234478 - Fix config._getMissingLicenses() to only access USE when
Zac Medico [Tue, 12 Aug 2008 07:12:32 +0000 (07:12 -0000)]
Bug #234478 - Fix config._getMissingLicenses() to only access USE when
LICENSE is conditional since otherwise USE hasn't necessarily been
calculated.

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

16 years agoDisable "waiting for lock" messages when in background mode. Thanks to Thargor
Zac Medico [Tue, 12 Aug 2008 02:33:40 +0000 (02:33 -0000)]
Disable "waiting for lock" messages when in background mode. Thanks to Thargor
for reporting.

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

16 years agoFix ebuild(1) so that src_configure is only called for EAPIs for which it
Zac Medico [Mon, 11 Aug 2008 20:20:25 +0000 (20:20 -0000)]
Fix ebuild(1) so that src_configure is only called for EAPIs for which it
is supported.

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

16 years agoEntirely disable the src_configure phase from the python side for EAPI values
Zac Medico [Mon, 11 Aug 2008 19:50:57 +0000 (19:50 -0000)]
Entirely disable the src_configure phase from the python side for EAPI values
for which it's not supported. This avoids pointless spawning of ebuild.sh and
also avoids having bashrc called during an invalid phase as reported by
Arfrever.

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

16 years agoIn source_all_bashrcs(), only change $IFS while splitting $PROFILE_PATHS into
Zac Medico [Mon, 11 Aug 2008 06:52:45 +0000 (06:52 -0000)]
In source_all_bashrcs(), only change $IFS while splitting $PROFILE_PATHS into
an array, and then restore it before doing anything else. This avoids
interference that can otherwise occur if code from profile.bashrc (or
/etc/portage/env, be extension) needs to call any of the elog functions
which use the save_IFS and restore_IFS aliases internally.

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

16 years agoIncrease Scheduler._job_delay_max to 10 seconds. v2.2_rc7
Zac Medico [Sun, 10 Aug 2008 11:56:39 +0000 (11:56 -0000)]
Increase Scheduler._job_delay_max to 10 seconds.

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

16 years agoFor pkg_config and pkg_info, add respective "config" and "info" values to
Zac Medico [Sun, 10 Aug 2008 11:21:09 +0000 (11:21 -0000)]
For pkg_config and pkg_info, add respective "config" and "info" values to
EBUILD_PHASES.

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

16 years agoWhen testing userpriv write access in $DISTDIR, redirect the 'permission
Zac Medico [Sun, 10 Aug 2008 11:07:05 +0000 (11:07 -0000)]
When testing userpriv write access in $DISTDIR, redirect the 'permission
denied' error message to /dev/null.

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

16 years agoRemove unnecessary dict.keys() call.
Zac Medico [Sun, 10 Aug 2008 10:30:20 +0000 (10:30 -0000)]
Remove unnecessary dict.keys() call.

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

16 years agoMove the default EAPI definition where it will work in any case it might
Zac Medico [Sun, 10 Aug 2008 09:04:58 +0000 (09:04 -0000)]
Move the default EAPI definition where it will work in any case it might
be necessary, such as after loading an exising environment.

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

16 years agoRemove most references to Package.metadata_keys and replace them with
Zac Medico [Sun, 10 Aug 2008 08:20:41 +0000 (08:20 -0000)]
Remove most references to Package.metadata_keys and replace them with
approriate keys for the given package type.

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

16 years agoAdd sample code for the new src_configure and src_compile phase functions.
Zac Medico [Sun, 10 Aug 2008 05:17:43 +0000 (05:17 -0000)]
Add sample code for the new src_configure and src_compile phase functions.

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

16 years agoDocument the differences between EAPIs 0 and 1.
Zac Medico [Sun, 10 Aug 2008 04:56:54 +0000 (04:56 -0000)]
Document the differences between EAPIs 0 and 1.

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

16 years agoAdd new sections for EAPI 0 and 1 (currently empty).
Zac Medico [Sun, 10 Aug 2008 04:09:58 +0000 (04:09 -0000)]
Add new sections for EAPI 0 and 1 (currently empty).

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

16 years agoFix typo.
Zac Medico [Sun, 10 Aug 2008 02:00:42 +0000 (02:00 -0000)]
Fix typo.

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

16 years agoRemove INHERITED from the vardbapi aux_get cache since it's not really that
Zac Medico [Sun, 10 Aug 2008 01:48:13 +0000 (01:48 -0000)]
Remove INHERITED from the vardbapi aux_get cache since it's not really that
useful (@live-rebuild currently pulls INHERITED from the highest visible
ebuild). Also adjust keys used to pull metadata for Package instances, so
that INHERITED won't get pulled from the vardbapi anymore.

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

16 years agoRemove pointless `cd` calls in dyn_configure() and dyn_compile().
Zac Medico [Sun, 10 Aug 2008 01:10:47 +0000 (01:10 -0000)]
Remove pointless `cd` calls in dyn_configure() and dyn_compile().

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

16 years agoEliminate duplicate code by making _eapi1_src_compile() call _eapi2_src_configure().
Zac Medico [Sun, 10 Aug 2008 01:02:54 +0000 (01:02 -0000)]
Eliminate duplicate code by making _eapi1_src_compile() call _eapi2_src_configure().

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

16 years agoMake the scheduler's job delay ramp up faster by increasing the factor
Zac Medico [Sun, 10 Aug 2008 00:17:35 +0000 (00:17 -0000)]
Make the scheduler's job delay ramp up faster by increasing the factor
to 1.0 and adding an exponent of 1.5.

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

16 years agoFix dyn_clean() to properly clean $PORTAGE_BUILDDIR/.configured.
Zac Medico [Sat, 9 Aug 2008 23:47:37 +0000 (23:47 -0000)]
Fix dyn_clean() to properly clean $PORTAGE_BUILDDIR/.configured.

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

16 years agoAdd write_contents() and tar_contents() functions to __all__.
Zac Medico [Sat, 9 Aug 2008 22:29:51 +0000 (22:29 -0000)]
Add write_contents() and tar_contents() functions to __all__.

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

16 years ago* Use shlex.split() for splitting COLLISION_IGNORE.
Zac Medico [Sat, 9 Aug 2008 22:27:09 +0000 (22:27 -0000)]
* Use shlex.split() for splitting COLLISION_IGNORE.
* Define __all__.

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

16 years agoBug #234100 - Update date and portage version in man page headers.
Zac Medico [Sat, 9 Aug 2008 20:39:47 +0000 (20:39 -0000)]
Bug #234100 - Update date and portage version in man page headers.

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

16 years agoBug #234157 - Remove BUILD_PREFIX from the docs since it's not a user config
Zac Medico [Sat, 9 Aug 2008 20:26:40 +0000 (20:26 -0000)]
Bug #234157 - Remove BUILD_PREFIX from the docs since it's not a user config
variable.

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

16 years agoDon't use "dir" for a variable name since it's also a builtin.
Zac Medico [Sat, 9 Aug 2008 19:03:03 +0000 (19:03 -0000)]
Don't use "dir" for a variable name since it's also a builtin.

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

16 years agoAdd a reference to the default sets.conf location. Thanks to dberkholz for
Zac Medico [Sat, 9 Aug 2008 10:33:38 +0000 (10:33 -0000)]
Add a reference to the default sets.conf location. Thanks to dberkholz for
the suggestion.

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

16 years agoMake eapi*_src_install die since they're not supported.
Zac Medico [Sat, 9 Aug 2008 10:07:36 +0000 (10:07 -0000)]
Make eapi*_src_install die since they're not supported.

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

16 years agoEscape use flags before compiling regular expressions from them. Thanks
Zac Medico [Sat, 9 Aug 2008 10:05:23 +0000 (10:05 -0000)]
Escape use flags before compiling regular expressions from them. Thanks
to pchrist for reporting.

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

16 years agoUpdate date in dyn_help copyright header. Thanks to grobian.
Zac Medico [Sat, 9 Aug 2008 09:21:55 +0000 (09:21 -0000)]
Update date in dyn_help copyright header. Thanks to grobian.

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

16 years agoWhen calling dbaip.aux_get() inside depgraph._select_package(), only pull the
Zac Medico [Sat, 9 Aug 2008 08:06:30 +0000 (08:06 -0000)]
When calling dbaip.aux_get() inside depgraph._select_package(), only pull the
keys that are cached. This avoids triggering useless cache pulls for
INHERITED from the bindbapi.

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

16 years agoIncrease Scheduler._job_delay_factor from 0.5 to 0.75 so that the delay
Zac Medico [Sat, 9 Aug 2008 06:12:16 +0000 (06:12 -0000)]
Increase Scheduler._job_delay_factor from 0.5 to 0.75 so that the delay
ramps up a little quicker, since the current value appears to be too
weak in some cases.

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

16 years agoRemove redundant default pkg_nofetch, src_unpack, and src_test definitions
Zac Medico [Fri, 8 Aug 2008 22:24:43 +0000 (22:24 -0000)]
Remove redundant default pkg_nofetch, src_unpack, and src_test definitions
which are now handled inside _ebuild_phase_funcs().

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

16 years agoAdd new LinkageMap.listBrokenBinaries() and listProviders() methods. Thanks
Zac Medico [Fri, 8 Aug 2008 21:51:50 +0000 (21:51 -0000)]
Add new LinkageMap.listBrokenBinaries() and listProviders() methods. Thanks
to Lucian Poston <lucianposton@gmail.com> for submitting this patch along
with the missing-rebuild package set posted on the gentoo-portage-dev mailing
list.

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

16 years agoFix broken reference to os.path.realpath() inside LinkageMap.getSoname().
Zac Medico [Fri, 8 Aug 2008 21:45:39 +0000 (21:45 -0000)]
Fix broken reference to os.path.realpath() inside LinkageMap.getSoname().

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

16 years agoIn LinkageMap.rebuild(), filter empty strings that may be returned from split
Zac Medico [Fri, 8 Aug 2008 21:37:50 +0000 (21:37 -0000)]
In LinkageMap.rebuild(), filter empty strings that may be returned from split
calls when processing the "needed" and "path" entries. Thanks to Lucian Poston
for reporting.

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

16 years agoFix broken quoting in eval statements. Thanks to Arfrever.
Zac Medico [Fri, 8 Aug 2008 20:38:43 +0000 (20:38 -0000)]
Fix broken quoting in eval statements. Thanks to Arfrever.

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

16 years agoAdd missing default_src_configure() function to table. Thanks to Arfrever.
Zac Medico [Fri, 8 Aug 2008 20:36:28 +0000 (20:36 -0000)]
Add missing default_src_configure() function to table. Thanks to Arfrever.

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

16 years agoFix default phase functions in EAPI 2_pre2, since they should be labeled as
Zac Medico [Fri, 8 Aug 2008 20:34:41 +0000 (20:34 -0000)]
Fix default phase functions in EAPI 2_pre2, since they should be labeled as
"2" instead of "2_pre2. Thanks to Arfrever for reporting.

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

16 years agoRename the eapi2_pre2_* functions to just eapi2_* and document all the
Zac Medico [Fri, 8 Aug 2008 12:02:51 +0000 (12:02 -0000)]
Rename the eapi2_pre2_* functions to just eapi2_* and document all the
new eapi* functions.

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

16 years agoImplement eapi$EAPI_* default phase functions that are equivalent to the
Zac Medico [Fri, 8 Aug 2008 11:24:31 +0000 (11:24 -0000)]
Implement eapi$EAPI_* default phase functions that are equivalent to the
default_* functions for the given EAPI. For example, a function named
eapi0_src_compile provides access to the default src_compile implementation
that EAPI 0 provides. This feature is supported only when EAPI=2_pre2 is set.
Thanks to Brian Harring for suggesting this idea.

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

16 years agoHandle missing ipv6 support (branches/prefix r11347).
Zac Medico [Fri, 8 Aug 2008 11:01:22 +0000 (11:01 -0000)]
Handle missing ipv6 support (branches/prefix r11347).

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

16 years ago* Fix the default() implementation so that it maps the ebuild argument to
Zac Medico [Fri, 8 Aug 2008 06:49:34 +0000 (06:49 -0000)]
* Fix the default() implementation so that it maps the ebuild argument to
  the correct phase function.
* Add --exclude-init-phases option to save_ebuild_env() for filtering
  out unnecessary functions and variables when creating environment.bz2.
* Add support for default() and default_* functions that die in all
  ebuild phases so that improper use of these functions is quickly
  discovered.

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

16 years agoShorten the scheduler status display in the xterm title by removing all
Zac Medico [Fri, 8 Aug 2008 00:43:06 +0000 (00:43 -0000)]
Shorten the scheduler status display in the xterm title by removing all
consecutive spaces.

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

16 years agoWhen testing containment of elem[:1] in "MR", filter potential empty string
Zac Medico [Thu, 7 Aug 2008 22:08:24 +0000 (22:08 -0000)]
When testing containment of elem[:1] in "MR", filter potential empty string
matches.

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

16 years agoIn order to properly preserve --jobs and --load-average settings for --resume
Zac Medico [Thu, 7 Aug 2008 14:00:24 +0000 (14:00 -0000)]
In order to properly preserve --jobs and --load-average settings for --resume
operations, store resume options in the mtimedb as a dict instead of a list.
The dict type is supported in >=portage-2.1.3_rc8 (2.1.4.4 is current stable)
so people switching between stable/unstable will be fine.

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

16 years agoAdd support in EAPI 2_pre2 for a function named "default" is redefined for
Zac Medico [Thu, 7 Aug 2008 12:50:08 +0000 (12:50 -0000)]
Add support in EAPI 2_pre2 for a function named "default" is redefined for
each phase so that it will call the default_* function corresponding to the
current phase. Thanks to Thomas Anderson <gentoofan23> for the initial
patch.

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

16 years agoFix a bug in vardbapi.removeFromContents() which sometimes prevents the
Zac Medico [Thu, 7 Aug 2008 11:22:40 +0000 (11:22 -0000)]
Fix a bug in vardbapi.removeFromContents() which sometimes prevents the
CONTENTS from being updated when it should.

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

16 years agoIn order to conserve some space, make _setitem() skip writing keys for which
Zac Medico [Thu, 7 Aug 2008 09:08:31 +0000 (09:08 -0000)]
In order to conserve some space, make _setitem() skip writing keys for which
the value is empty.

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

16 years agoReplace call to `svn list` with a call to `svn status --depth=files --verbose`
Zac Medico [Thu, 7 Aug 2008 00:32:19 +0000 (00:32 -0000)]
Replace call to `svn list` with a call to `svn status --depth=files --verbose`
since the former contacts the server while the latter does not. Thanks to
Arfrever for this patch.

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

16 years agoRemove the "ebuild.disjointed" check because it's obsolete since we've
Zac Medico [Wed, 6 Aug 2008 22:58:14 +0000 (22:58 -0000)]
Remove the "ebuild.disjointed" check because it's obsolete since we've
switched to manifest2 only. Thanks to Arfrever for this patch.

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

16 years agoFix `svn status` output parsing to account for "replaced" files indicated
Zac Medico [Wed, 6 Aug 2008 03:30:32 +0000 (03:30 -0000)]
Fix `svn status` output parsing to account for "replaced" files indicated
by "R". Thanks to Arfrever.

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

16 years agoRemove redundant 'local line' definition from previous commit.
Zac Medico [Wed, 6 Aug 2008 02:09:45 +0000 (02:09 -0000)]
Remove redundant 'local line' definition from previous commit.

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

16 years agoFix breakage in elog function newline handling with causes blank/empty
Zac Medico [Wed, 6 Aug 2008 02:07:34 +0000 (02:07 -0000)]
Fix breakage in elog function newline handling with causes blank/empty
lines to get lost.

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

16 years agoMake doebuild() display manifest verification failures for each corrupt
Zac Medico [Tue, 5 Aug 2008 08:28:13 +0000 (08:28 -0000)]
Make doebuild() display manifest verification failures for each corrupt
ebuild rather than just the first one.

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

16 years agoWhen there is no build log to display, it means that fetch failed, so
Zac Medico [Tue, 5 Aug 2008 06:58:04 +0000 (06:58 -0000)]
When there is no build log to display, it means that fetch failed, so
display the fetch log in that case.

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

16 years agoRemove unused parse_use_local_desc() function.
Zac Medico [Tue, 5 Aug 2008 02:20:56 +0000 (02:20 -0000)]
Remove unused parse_use_local_desc() function.

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

16 years agoRemove the use.local.desc IUSE validation which is now replaced by glep56
Zac Medico [Tue, 5 Aug 2008 02:15:16 +0000 (02:15 -0000)]
Remove the use.local.desc IUSE validation which is now replaced by glep56
metadata.xml validation. This was requested by Cardoe since he expects
to complete the gleep56 conversion process pretty soon.

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

16 years agoAdd some docs for EAPI 2_pre2.
Zac Medico [Mon, 4 Aug 2008 19:07:35 +0000 (19:07 -0000)]
Add some docs for EAPI 2_pre2.

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

16 years agoBug #233735 - Add support for src_configure and default_* functions with
Zac Medico [Mon, 4 Aug 2008 17:54:12 +0000 (17:54 -0000)]
Bug #233735 - Add support for src_configure and default_* functions with
new EAPI=2_pre2. Thanks to Arfrever Frehtes Taifersar Arahesis for the
initial patch which I've made a few adjustments to.

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

16 years agoRemove code from bug #223447 which is now obsolete due to depclean using
Zac Medico [Mon, 4 Aug 2008 15:46:24 +0000 (15:46 -0000)]
Remove code from bug #223447 which is now obsolete due to depclean using
the depgraph class.

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

16 years agoMake the status display say "Emerging" and "Emerging binary" instead of
Zac Medico [Mon, 4 Aug 2008 04:57:07 +0000 (04:57 -0000)]
Make the status display say "Emerging" and "Emerging binary" instead of
"Building" and "Extracting". Thanks to Joe Peterson <lavajoe> for the
suggestion (including extra newlines from previous commit).

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

16 years agoInsert extra newline before status messages, since that's how it used to be.
Zac Medico [Mon, 4 Aug 2008 04:52:27 +0000 (04:52 -0000)]
Insert extra newline before status messages, since that's how it used to be.

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

16 years agoMake dblink.unmerge() succeed even when ebuild phases are unsuccessful because
Zac Medico [Mon, 4 Aug 2008 01:11:07 +0000 (01:11 -0000)]
Make dblink.unmerge() succeed even when ebuild phases are unsuccessful because
the current behavior is even worse (results in orphan files). Thanks to
Arfrever for this patch (UnsupportedAPIException hunk by me).

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

16 years agoAdd a more generic VariableSet to replace the InheritSet and RestrictSet
Zac Medico [Sun, 3 Aug 2008 05:51:33 +0000 (05:51 -0000)]
Add a more generic VariableSet to replace the InheritSet and RestrictSet
classes. Thanks to Arfrever Frehtes Taifersar Arahesis for this patch from
bug #233589 (with some minor adjustments from me).

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

16 years agoHandle missing sets, to avoid KeyError raised from unmerge().
Zac Medico [Sat, 2 Aug 2008 07:23:57 +0000 (07:23 -0000)]
Handle missing sets, to avoid KeyError raised from unmerge().

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

16 years agoDocument the fact that use of @installed/EverythingSet makes it impossible
Zac Medico [Sat, 2 Aug 2008 01:35:40 +0000 (01:35 -0000)]
Document the fact that use of @installed/EverythingSet makes it impossible
for emerge to solve blockers by automatic uninstallation of blocked packages.

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

16 years agoAdd a new RestrictSet which contains all packages that match specified
Zac Medico [Sat, 2 Aug 2008 01:27:52 +0000 (01:27 -0000)]
Add a new RestrictSet which contains all packages that match specified
RESTRICT values. This could be useful for implementing something like
a @live-rebuild based on RESTRICT metadata, as suggested in bug #233589.

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

16 years agoIn the file collision elog message, only say 'NOT merged' when
Zac Medico [Sat, 2 Aug 2008 00:32:51 +0000 (00:32 -0000)]
In the file collision elog message, only say 'NOT merged' when
collision-protect is enabled. Thanks to dberkholz for reporting.

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

16 years ago* Add INHERITED to vardbapi._aux_cache_keys since Package.metadata_keys also
Zac Medico [Fri, 1 Aug 2008 22:22:29 +0000 (22:22 -0000)]
* Add INHERITED to vardbapi._aux_cache_keys since Package.metadata_keys also
  includes this one now.
* Fix pull_me calculation inside vardbapi.aux_get() so that it correctly
  subtracts _mtime_ from the list of keys to pull.

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

16 years agoAdd debug support to PackagesSystemSet since robbat2 is reporting an empty
Zac Medico [Fri, 1 Aug 2008 21:56:26 +0000 (21:56 -0000)]
Add debug support to PackagesSystemSet since robbat2 is reporting an empty
set for some unknown reason.

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

16 years agoMake EbuildFetcher pass a copy of os.environ to the ebuild(1) subprocess so v2.2_rc6
Zac Medico [Fri, 1 Aug 2008 10:37:18 +0000 (10:37 -0000)]
Make EbuildFetcher pass a copy of os.environ to the ebuild(1) subprocess so
that any incremental variables have been overridden are correctly considered
by the config instance in the subproccess.

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

16 years agoUpdate the Parallel Scheduling section to describe the current algorithm.
Zac Medico [Fri, 1 Aug 2008 10:14:39 +0000 (10:14 -0000)]
Update the Parallel Scheduling section to describe the current algorithm.

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

16 years agoAdd DowngradeSet and OwnerSet to __all__.
Zac Medico [Fri, 1 Aug 2008 07:33:15 +0000 (07:33 -0000)]
Add DowngradeSet and OwnerSet to __all__.

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

16 years agoBug #233252 - Handle InvalidAtom exceptions that can be raised from
Zac Medico [Fri, 1 Aug 2008 07:05:00 +0000 (07:05 -0000)]
Bug #233252 - Handle InvalidAtom exceptions that can be raised from
depgraph._add_dep() calls inside _add_pkg_deps().

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

16 years agoMake InheritSet more like DowngradeSet, and check INHERITED from the highest
Zac Medico [Fri, 1 Aug 2008 04:51:07 +0000 (04:51 -0000)]
Make InheritSet more like DowngradeSet, and check INHERITED from the highest
visible ebuild in the portage tree rather than from the installed package
itself.

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

16 years agoOptimize `emaint` --fix binhost so that it the Packages file isn't re-read
Zac Medico [Fri, 1 Aug 2008 04:13:23 +0000 (04:13 -0000)]
Optimize `emaint` --fix binhost so that it the Packages file isn't re-read
and re-written for each package that's updated. Instead, hold a lock for
the whole time the command is running and just update it once.

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

16 years agoFix new rejects in cnf/make.conf.*.diff.
Zac Medico [Fri, 1 Aug 2008 02:22:06 +0000 (02:22 -0000)]
Fix new rejects in cnf/make.conf.*.diff.

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

16 years agoRemove the list of FEATURES descriptions from make.conf.example and replace
Zac Medico [Fri, 1 Aug 2008 02:09:22 +0000 (02:09 -0000)]
Remove the list of FEATURES descriptions from make.conf.example and replace
it with a reference to the make.conf(5) man page.

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

16 years agoBug #229033 - Use `svn propget -R svn:keywords` to detect which will have
Zac Medico [Fri, 1 Aug 2008 01:44:10 +0000 (01:44 -0000)]
Bug #229033 - Use `svn propget -R svn:keywords` to detect which will have
changed headers that require an additional manifest commit. Thanks to
Fabian Groffen for this patch which I've made some modifications to:
* For clarity, use separate "no_expansion" variable for cvs bin blobs.
* Fix svn keyword parsing to properly handle multiple keywords delimited
  by newlines.

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

16 years agoBug #233487 - Fix --fetch-all-uri breakage:
Zac Medico [Fri, 1 Aug 2008 00:47:23 +0000 (00:47 -0000)]
Bug #233487 - Fix --fetch-all-uri breakage:

* Make --fetch-all-uri imply --fetchonly so that all the --fetchonly
  conditionals apply to --fetch-all-uri as well.

* Add an EbuildFetcher.fetchall attribute, and also add the required
  support to portage.doebuild() for a "fetchall" phase that EbuildFetcher
  can invoke in the background via the ebuild(1) command.

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

16 years agoFix DowngradeSet so it's safe for cases when no ebuild is available.
Zac Medico [Thu, 31 Jul 2008 12:58:57 +0000 (12:58 -0000)]
Fix DowngradeSet so it's safe for cases when no ebuild is available.

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

16 years agoBug #233253 - Implement a @downgrade set which selects packages for which
Zac Medico [Thu, 31 Jul 2008 12:47:17 +0000 (12:47 -0000)]
Bug #233253 - Implement a @downgrade set which selects packages for which
the highest visible ebuild version is lower than the currently installed
version. This is useful if you have installed packages from an overlay and
you want to downgrade to the highest visible after removing the overlay,
even though the packages that will be dowgraded are not necessarily masked
in any way.

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

16 years agoAlways invalidate results from _userpriv_test_write_file_cache when
Zac Medico [Thu, 31 Jul 2008 11:44:28 +0000 (11:44 -0000)]
Always invalidate results from _userpriv_test_write_file_cache when
adjusting permissions on a given directory.

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

16 years agoBug #233458 - Fix AsynchronousTask exit listener handling so that an exit
Zac Medico [Thu, 31 Jul 2008 10:37:43 +0000 (10:37 -0000)]
Bug #233458 - Fix AsynchronousTask exit listener handling so that an exit
listener will never get called after it's been passed into
removeExitListener(), since the caller of removeExitListener() needs to
be able to be able to trust that the given exit listener will not be
called under any circumstances.

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

16 years agoDescribe InheritSet and OwnerSet.
Zac Medico [Thu, 31 Jul 2008 07:25:35 +0000 (07:25 -0000)]
Describe InheritSet and OwnerSet.

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

16 years ago* Rename @live-ebuilds to @live-rebuild, for consistency with the other
Zac Medico [Thu, 31 Jul 2008 07:22:45 +0000 (07:22 -0000)]
* Rename @live-ebuilds to @live-rebuild, for consistency with the other
  *-rebuild sets.
* Document the new sets.

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

16 years agoRemove quotes since the seem to cause incorrect results.
Zac Medico [Thu, 31 Jul 2008 07:04:15 +0000 (07:04 -0000)]
Remove quotes since the seem to cause incorrect results.

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

16 years agoAdd a new @module-rebuild set which emulates the behavior of the
Zac Medico [Thu, 31 Jul 2008 06:11:18 +0000 (06:11 -0000)]
Add a new @module-rebuild set which emulates the behavior of the
module-rebuild tool. The /lib/modules path is set in sets.conf
via a "files" attribute of an OwnerSet instance. This can be easily
used to define similar sets based on paths on installed files.

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

16 years agoImplement a new @live-ebuilds which is generated from installed packages
Zac Medico [Thu, 31 Jul 2008 05:45:56 +0000 (05:45 -0000)]
Implement a new @live-ebuilds which is generated from installed packages
that inherit from know live eclasses such as cvs, darcs, git, mercurial,
and subversion. The list of eclasses is controlled by an "inherits"
attribute that is configure in sets.conf for and instance of InheritSet.
This set serves a purpose similar to the -scm ebuild suffix that has
been proposed in GLEP 54.

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

16 years agodisable default IONICE command as it breaks for non-root, and ionice might not always...
Marius Mauch [Thu, 31 Jul 2008 04:51:33 +0000 (04:51 -0000)]
disable default IONICE command as it breaks for non-root, and ionice might not always be available

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