Zac Medico [Mon, 26 Nov 2007 02:52:47 +0000 (02:52 -0000)]
unset ECLASS along with the other variables from inherit(). (trunk r8674)
svn path=/main/branches/2.1.2/; revision=8675
Zac Medico [Mon, 26 Nov 2007 02:44:37 +0000 (02:44 -0000)]
Add NOCONFMEM to config._environ_filter. (trunk r8672)
svn path=/main/branches/2.1.2/; revision=8673
Zac Medico [Mon, 26 Nov 2007 02:11:56 +0000 (02:11 -0000)]
* Move filtering of a bunch of portage config variables from
save_ebuild_env() to config.environ().
* Add EMERGE_FROM to the READONLY_PORTAGE_VARS list.
(trunk r8670)
svn path=/main/branches/2.1.2/; revision=8671
Zac Medico [Mon, 26 Nov 2007 01:16:16 +0000 (01:16 -0000)]
Bug #124041 - Make emerge show an informative warning message when one
or more eclasses override eclasses from PORTDIR. The warning can be
permanently disabled by setting PORTAGE_ECLASS_WARNING_ENABLE="0" in
/etc/make.conf. (trunk r8668)
svn path=/main/branches/2.1.2/; revision=8669
Zac Medico [Sun, 25 Nov 2007 23:05:30 +0000 (23:05 -0000)]
Filter _RC_GET_KV_CACHE from the saved environment. (trunk r8666)
svn path=/main/branches/2.1.2/; revision=8667
Zac Medico [Sun, 25 Nov 2007 22:56:57 +0000 (22:56 -0000)]
Make preprocess_ebuild_env() reload a known good version of
save_ebuild_env() in order to avoid making an assumption that
it hasn't been overridden. (trunk r8663)
svn path=/main/branches/2.1.2/; revision=8665
Zac Medico [Sun, 25 Nov 2007 22:50:38 +0000 (22:50 -0000)]
Remove some unsafe assumptions from preprocess_ebuild_env() and
note the remaining assumption that save_ebuild_env() is not
overridden by the environment being loaded. (trunk r8662)
svn path=/main/branches/2.1.2/; revision=8664
Zac Medico [Sun, 25 Nov 2007 09:30:57 +0000 (09:30 -0000)]
Allow the pkg_info and pkg_config pre/post hooks to run even
when the ebuild function is not defined. (trunk r8659)
svn path=/main/branches/2.1.2/; revision=8660
Zac Medico [Sun, 25 Nov 2007 09:12:46 +0000 (09:12 -0000)]
Remove the empty default pkg_setup, src_install, pkg_preinst,
pkg_postinst, pkg_prerm, pkg_postrm, and pkg_config functions
since they do nothing more than clutter the environment.
(trunk r8655)
svn path=/main/branches/2.1.2/; revision=8658
Zac Medico [Sun, 25 Nov 2007 09:10:14 +0000 (09:10 -0000)]
Test if ebuild functions are defined before calling them. This
will be useful if an environment.bz2 has been loaded and it has
missing functions for some reason. For example, there are a lot
of default functions that are empty and could simply be omitted
from the environment. (trunk r8654)
svn path=/main/branches/2.1.2/; revision=8657
Zac Medico [Sun, 25 Nov 2007 09:09:02 +0000 (09:09 -0000)]
The qa_call() function and anything before it are portage internals
that the user will not be interested in. Therefore, the stack trace
should only show calls that come after qa_call(). (trunk r8653)
svn path=/main/branches/2.1.2/; revision=8656
Zac Medico [Sun, 25 Nov 2007 06:58:24 +0000 (06:58 -0000)]
* Load environment.bz2 for the pkg_config() phase.
* Run the "clean" phase if pkg_config() succeeds.
(trunk r8651)
svn path=/main/branches/2.1.2/; revision=8652
Zac Medico [Sun, 25 Nov 2007 06:33:40 +0000 (06:33 -0000)]
Implement loading of environment.bz2 for the pkg_info() phase.
Since a temporary directory is required for processing of
${T}/environment, and we want a user who's not in the portage
group to be able to run the pkg_info() phase, PORTAGE_TMPDIR
is temporarily overridden with a directory created by mkdtemp.
To make this work, doebuild() creates the tempdir and cleans
it up in a finally block. (trunk r8649)
svn path=/main/branches/2.1.2/; revision=8650
Zac Medico [Sat, 24 Nov 2007 22:26:41 +0000 (22:26 -0000)]
Bug #200238 - Make ebuild.sh properly bail out when the pkg_info()
function doesn't exist. (trunk r8647)
svn path=/main/branches/2.1.2/; revision=8648
Zac Medico [Sat, 24 Nov 2007 22:12:26 +0000 (22:12 -0000)]
Bug #140180 - Never trigger a LICENSE.missing violation for old style
virtuals since they don't directly install anything. (trunk r8645)
svn path=/main/branches/2.1.2/; revision=8646
Zac Medico [Sat, 24 Nov 2007 18:32:26 +0000 (18:32 -0000)]
Use `md5` if `md5sum` is not available (useful for FreeBSD users).
(trunk r8643)
svn path=/main/branches/2.1.2/; revision=8644
Zac Medico [Sat, 24 Nov 2007 05:43:13 +0000 (05:43 -0000)]
Fix quoting to work properly with eval. (trunk r8640)
svn path=/main/branches/2.1.2/; revision=8641
Zac Medico [Sat, 24 Nov 2007 04:50:40 +0000 (04:50 -0000)]
When binarytree.populate() finds missing metadata, specify which keys
are missing so that the user has a clue about what is wrong. (trunk
r8638).
svn path=/main/branches/2.1.2/; revision=8639
Zac Medico [Sat, 24 Nov 2007 04:23:24 +0000 (04:23 -0000)]
Unconditionally filter some of the SANDBOX_* variables from the
environment in order to avoid potential interference problems.
For example, having an invalid value for SANDBOX_LOG prevents
the sandbox from killing the ebuild when a violation occurs.
(trunk r8636)
svn path=/main/branches/2.1.2/; revision=8637
Zac Medico [Sat, 24 Nov 2007 02:59:00 +0000 (02:59 -0000)]
Fix the var_grep variable in filter_readonly_variables() so that
it's properly local. (trunk r8634)
svn path=/main/branches/2.1.2/; revision=8635
Zac Medico [Sat, 24 Nov 2007 02:36:26 +0000 (02:36 -0000)]
In the grep expression that's generated in filter_readonly_variables(),
condense redundant identical expressions into a single one. (trunk r8630)
svn path=/main/branches/2.1.2/; revision=8633
Zac Medico [Sat, 24 Nov 2007 02:34:34 +0000 (02:34 -0000)]
Filter _E_DOCDESTTREE_ and _E_EXEDESTTREE_ from environment.bz2. (trunk r8629)
svn path=/main/branches/2.1.2/; revision=8632
Zac Medico [Sat, 24 Nov 2007 02:33:35 +0000 (02:33 -0000)]
Add support for persistence of colon separated
SANDBOX_{DENY,READ,PREDICT,WRITE} variables between
phases so things like the global scope addpredict()
call in qt3.eclass will continue to work.
(trunk r8628)
svn path=/main/branches/2.1.2/; revision=8631
Zac Medico [Fri, 23 Nov 2007 11:08:21 +0000 (11:08 -0000)]
Make save_ebuild_env() filter the new source_all_bashrcs() function
from the environment. (trunk r8623)
svn path=/main/branches/2.1.2/; revision=8624
Zac Medico [Fri, 23 Nov 2007 10:55:26 +0000 (10:55 -0000)]
Try again to make bashrc sourcing compatible with previous
behavior. The bashrcs get an opportunity to set aliases that
will be expanded during sourcing of ebuilds and eclasses.
(trunk r8621)
svn path=/main/branches/2.1.2/; revision=8622
Zac Medico [Fri, 23 Nov 2007 10:33:17 +0000 (10:33 -0000)]
unset x to avoid global env pollution. (trunk r8619)
svn path=/main/branches/2.1.2/; revision=8620
Zac Medico [Fri, 23 Nov 2007 10:23:58 +0000 (10:23 -0000)]
For compatibility with previous behavior, so the bashrc sourcing
after the ebuild environment is fully loaded. (trunk r8617)
svn path=/main/branches/2.1.2/; revision=8618
Zac Medico [Fri, 23 Nov 2007 02:37:50 +0000 (02:37 -0000)]
Sort hashes for predictable output from Manifest._createManifestEntries().
(trunk r8615)
svn path=/main/branches/2.1.2/; revision=8616
Zac Medico [Fri, 23 Nov 2007 01:57:41 +0000 (01:57 -0000)]
Use %% instead of % parameter expansion where appropriate
for md5sum output. (trunk r8613)
svn path=/main/branches/2.1.2/; revision=8614
Zac Medico [Fri, 23 Nov 2007 01:39:11 +0000 (01:39 -0000)]
Make the sed expression in filter_readonly_variables() handle
'^declare -r ' by simply removing it. (trunk r8611)
svn path=/main/branches/2.1.2/; revision=8612
Zac Medico [Fri, 23 Nov 2007 00:11:25 +0000 (00:11 -0000)]
When filtering the backupenv in create_trees(), be more
selective and ensure that special variables that come from
the config constructor are preserved. (trunk r8609)
svn path=/main/branches/2.1.2/; revision=8610
Zac Medico [Thu, 22 Nov 2007 22:23:48 +0000 (22:23 -0000)]
Allow any errors from save_ebuild_env() to go to stderr instead of
directing them to /dev/null. (trunk r8607)
svn path=/main/branches/2.1.2/; revision=8608
Zac Medico [Thu, 22 Nov 2007 22:00:36 +0000 (22:00 -0000)]
Generalize the sed expression in filter_readonly_variables() so that
it will work with things like 'declare -xr' as well as 'declare -rx'.
(trunk r8605)
svn path=/main/branches/2.1.2/; revision=8606
Zac Medico [Thu, 22 Nov 2007 20:20:04 +0000 (20:20 -0000)]
Don't call preprocess_ebuild_env() unless EBUILD_SH_ARGS is set
since otherwise it can interfere with the environment for things
like the "package" phase. (trunk r8603)
svn path=/main/branches/2.1.2/; revision=8604
Zac Medico [Thu, 22 Nov 2007 19:54:08 +0000 (19:54 -0000)]
When portage reinstalls itself, during inst/rm phases, the
environment may have been saved by a different version of ebuild.sh,
so it can't trusted that it's been properly filtered. Therefore,
always preprocess the environment when ${PN} == portage.
(trunk r8601)
svn path=/main/branches/2.1.2/; revision=8602
Zac Medico [Thu, 22 Nov 2007 19:07:37 +0000 (19:07 -0000)]
Document dohtml -p. Thanks to robbat2 for reporting. (trunk r8599)
svn path=/main/branches/2.1.2/; revision=8600
Zac Medico [Thu, 22 Nov 2007 08:24:42 +0000 (08:24 -0000)]
Make dyn_package() create a /var/db/pkg/*/*/BINPKGMD5 entries
so that packages installed via --buildpkg have a BINPKGMD5
entry matching the package built. (trunk r8597)
svn path=/main/branches/2.1.2/; revision=8598
Zac Medico [Thu, 22 Nov 2007 07:42:02 +0000 (07:42 -0000)]
Filter HOSTTYPE, MACHTYPE, and OSTYPE vars that are set by bash.
(trunk r8595).
svn path=/main/branches/2.1.2/; revision=8596
Zac Medico [Thu, 22 Nov 2007 06:22:59 +0000 (06:22 -0000)]
In depgraph.altlist(), measure the bias of circular
RDEPEND <-> PDEPEND relationships and use it to
optimize merge order. (trunk r8593)
svn path=/main/branches/2.1.2/; revision=8594
Zac Medico [Wed, 21 Nov 2007 18:57:37 +0000 (18:57 -0000)]
Replace usage of the "myarg" global variable with the equivalent
readonly EBUILD_SH_ARGS variable. (trunk r8585)
svn path=/main/branches/2.1.2/; revision=8586
Zac Medico [Wed, 21 Nov 2007 10:45:53 +0000 (10:45 -0000)]
In dyn_install(), don't cleanse S from the global environment,
in case the user wants to repeat the phase (like with
FEATURES=noauto and the ebuild command). Only cleanse it from
environment.bz2. (trunk r8583)
svn path=/main/branches/2.1.2/; revision=8584
Zac Medico [Wed, 21 Nov 2007 10:32:04 +0000 (10:32 -0000)]
* Make save_ebuild_env() filter some more variables.
* Make dyn_install() filter S when it's no longer needed.
(trunk r8581)
svn path=/main/branches/2.1.2/; revision=8582
Zac Medico [Wed, 21 Nov 2007 08:48:12 +0000 (08:48 -0000)]
Generate an eerror elog message when an ebuild prerm or
postrm phase fails. (trunk r8577)
svn path=/main/branches/2.1.2/; revision=8580
Zac Medico [Wed, 21 Nov 2007 08:32:35 +0000 (08:32 -0000)]
Fix the diefunc overlay message so that it doesn't trigger
falsely in prerm or postrm. (trunk r8578)
svn path=/main/branches/2.1.2/; revision=8579
Zac Medico [Wed, 21 Nov 2007 08:01:54 +0000 (08:01 -0000)]
Move environment saving from dyn_compile() to dyn_install()
so that state from src_install() is saved. (trunk r8575)
svn path=/main/branches/2.1.2/; revision=8576
Zac Medico [Wed, 21 Nov 2007 07:40:05 +0000 (07:40 -0000)]
Clean up some local variables that are needlessly saved
in the environment. (trunk r8573)
svn path=/main/branches/2.1.2/; revision=8574
Zac Medico [Wed, 21 Nov 2007 06:26:53 +0000 (06:26 -0000)]
Fix an AttributeError for config.backupenv.
svn path=/main/branches/2.1.2/; revision=8572
Zac Medico [Wed, 21 Nov 2007 04:50:38 +0000 (04:50 -0000)]
When ROOT != "/" we only want overrides from the calling
environment to apply to the config that's associated
with ROOT != "/", so we wipe out the "backupenv" for the
config that is associated with ROOT == "/" and regenerate
it's incrementals. Thanks to solar for the suggestion.
(trunk r8539)
svn path=/main/branches/2.1.2/; revision=8571
Zac Medico [Wed, 21 Nov 2007 04:44:20 +0000 (04:44 -0000)]
Sync with ebuild.sh and isolated-functions.sh as of trunk r8569. This
includes all the environment filtering enhancements that solve bugs
#46223 and #190128.
svn path=/main/branches/2.1.2/; revision=8570
Zac Medico [Wed, 21 Nov 2007 04:13:17 +0000 (04:13 -0000)]
Disable logging and ${T}/environment saving during the
pkg_info() phase. (trunk r8526)
svn path=/main/branches/2.1.2/; revision=8568
Zac Medico [Wed, 21 Nov 2007 04:06:26 +0000 (04:06 -0000)]
Fix PROFILE_ONLY_VARIABLES handling in the config constructor
so that variables are appropriately filtered from "backupenv",
since otherwise they can leak in from there. (trunk r8524)
svn path=/main/branches/2.1.2/; revision=8567
Zac Medico [Wed, 21 Nov 2007 03:55:53 +0000 (03:55 -0000)]
Bug #198398 - Enable Manifest generation when there are no hash
functions available for types such as RMD160. Now it's possible
to generate a Manifest when python-2.5 is built without ssl
support. MANIFEST1_REQUIRED_HASH and MANIFEST2_REQUIRED_HASH
are the only two functions that are strictly required now (MD5
and SHA1). (trunk r8521)
svn path=/main/branches/2.1.2/; revision=8566
Zac Medico [Wed, 21 Nov 2007 00:14:15 +0000 (00:14 -0000)]
Clean up vardbapi.counter_tick_core() and replace shell code
with pure python.
svn path=/main/branches/2.1.2/; revision=8565
Zac Medico [Wed, 21 Nov 2007 00:06:18 +0000 (00:06 -0000)]
Set IMAGE for minimal backward compatibility with
overlays or user's bashrc, but don't export it.
(trunk r8511:8513)
svn path=/main/branches/2.1.2/; revision=8564
Zac Medico [Wed, 21 Nov 2007 00:02:53 +0000 (00:02 -0000)]
Bug #199311 - Make dblink.getcontents() show the path of the
CONTENTS file when any kind of parse error occurs.
(trunk r8511)
svn path=/main/branches/2.1.2/; revision=8563
Zac Medico [Wed, 21 Nov 2007 00:00:59 +0000 (00:00 -0000)]
Fix quoting for `source ${EBUILD}`. (trunk r8503)
svn path=/main/branches/2.1.2/; revision=8562
Zac Medico [Tue, 20 Nov 2007 23:59:51 +0000 (23:59 -0000)]
Make dir_get_metadata() return early if the current user does
not have write access to /var/cache/edb. Thanks to Cardoe for
reporting. (trunk r8502)
svn path=/main/branches/2.1.2/; revision=8561
Zac Medico [Tue, 20 Nov 2007 23:54:19 +0000 (23:54 -0000)]
* Replace references to deprecated ${IMAGE} with equivalent ${D}.
* Remove redundant trailing slashes and fix quoting.
(trunk r8501)
svn path=/main/branches/2.1.2/; revision=8560
Zac Medico [Tue, 20 Nov 2007 23:36:18 +0000 (23:36 -0000)]
Make 'full' the default mode, since 'scan' can be annoying when it
omits relevant info. (trunk r8499)
svn path=/main/branches/2.1.2/; revision=8558
Zac Medico [Tue, 20 Nov 2007 23:22:20 +0000 (23:22 -0000)]
In the slot collision display, show a maximum of 3 parents
for each package in order to avoid flooding the display.
(trunk r8500)
svn path=/main/branches/2.1.2/; revision=8557
Zac Medico [Tue, 20 Nov 2007 23:19:13 +0000 (23:19 -0000)]
Make the slot collision display show all collisions instead
of just the first one. (trunk r8498)
svn path=/main/branches/2.1.2/; revision=8556
Zac Medico [Tue, 20 Nov 2007 22:18:23 +0000 (22:18 -0000)]
Fix blocker handling to properly handle SLOT atoms in
depgraph.validate_blockers(). (trunk r8495)
svn path=/main/branches/2.1.2/; revision=8555
Zac Medico [Tue, 20 Nov 2007 21:59:43 +0000 (21:59 -0000)]
Bug #197797 - Set umask to 022 so that created files (such as the
world file) have sane permissions.
svn path=/main/branches/2.1.2/; revision=8554
Zac Medico [Tue, 20 Nov 2007 21:58:03 +0000 (21:58 -0000)]
Make diefunc() clean up QA_INTERCEPTORS in case it is
called from inherit() since sed called below. (trunk
r8490)
svn path=/main/branches/2.1.2/; revision=8553
Zac Medico [Tue, 20 Nov 2007 21:44:10 +0000 (21:44 -0000)]
Convert all the checks in repoman.checks to use a new LineCheck
interface that takes a single line as an argument. This has at
least a few of benefits:
* Eliminates lots of redundant code
* Error messages are ordered by line number across all checks
The performance is slightly worse due to the increased number
of method calls, but it's not really noticeable in comparison
to the time consumed by dependency checks.
Thanks to Petteri Räty <betelgeuse@gentoo.org> for the initial
patch which I only made a few minor modifications to.
(trunk r8483)
Make the EbuildQuote.missing_quotes regex accept single
quotes where it accepts double quotes in order to
eliminate some false positives. Thanks to Krzysiek
Pawlik <nelchael@gentoo.org> for reporting.
(trunk r8485)
svn path=/main/branches/2.1.2/; revision=8552
Zac Medico [Tue, 20 Nov 2007 20:07:15 +0000 (20:07 -0000)]
Remove the workaround for \n -> \r\n transformations in
SpawnTestCase.testLogfile() since the problem is solved
by the patch from bug #198491. (trunk r8474)
svn path=/main/branches/2.1.2/; revision=8551
Zac Medico [Tue, 20 Nov 2007 20:05:12 +0000 (20:05 -0000)]
Bug #198491 - Disable termios.OPOST post-processing of output on
the slave pty file descriptor since otherwise weird things like
\n -> \r\n transformations may occur. Thanks to Ulrich Mueller
<ulm@gentoo.org> for this patch. (trunk r8473)
svn path=/main/branches/2.1.2/; revision=8550
Zac Medico [Tue, 20 Nov 2007 20:02:50 +0000 (20:02 -0000)]
make.globals should not be relative to config_root
because it only contains constants. (trunk r8471)
svn path=/main/branches/2.1.2/; revision=8549
Zac Medico [Tue, 20 Nov 2007 19:59:39 +0000 (19:59 -0000)]
Tweak EOutput.term_columns calculation for TERM="dumb" so
that it behaves like TERM="cons25" currently does. Thanks
to Ulrich Mueller <ulm@gentoo.org> for the patch.
(trunk r8468)
svn path=/main/branches/2.1.2/; revision=8548
Zac Medico [Tue, 20 Nov 2007 19:41:06 +0000 (19:41 -0000)]
Don't do:
Calculating dependencies |Fetching binary packages info...
but instead put "Fetching ..." on it's own line. (trunk r8466)
svn path=/main/branches/2.1.2/; revision=8547
Zac Medico [Tue, 20 Nov 2007 19:36:37 +0000 (19:36 -0000)]
Bug #198492 - Make quickpkg create $PKGDIR if it doesn't
already exist. (trunk r8464)
svn path=/main/branches/2.1.2/; revision=8546
Zac Medico [Tue, 20 Nov 2007 19:31:55 +0000 (19:31 -0000)]
It is not cool and/or helpfull to see an HTML dump of some
page in case it is not what is expected (like a 404).
(trunk r8462)
svn path=/main/branches/2.1.2/; revision=8545
Zac Medico [Tue, 20 Nov 2007 19:30:17 +0000 (19:30 -0000)]
For unsatisfied dependencies, shorten the per-package EAPI mask
output and show an informative message whenever an EAPI mask is
encountered. (trunk r8457)
svn path=/main/branches/2.1.2/; revision=8544
Zac Medico [Sun, 18 Nov 2007 04:23:36 +0000 (04:23 -0000)]
Synchronize vardbapi._aux_cache_keys with trunk. It's important
at least to include RESTRICT since the depgraph uses that one
and therefore it should be cached to improve performance. The
others aren't strictly necessary at this time, but it's good to
be in sync with trunk.
svn path=/main/branches/2.1.2/; revision=8522
Zac Medico [Tue, 6 Nov 2007 17:27:52 +0000 (17:27 -0000)]
Remove the usage.obsolete "KEYWORDS contain -*" warning since people
are using -* to indicate that a package should not be tried on archs
other than those for which it already has KEYWORDS.
svn path=/main/branches/2.1.2/; revision=8448
Zac Medico [Tue, 6 Nov 2007 10:05:07 +0000 (10:05 -0000)]
Simplify and fix bugs in is_valid_package_atom(). (trunk r8445)
svn path=/main/branches/2.1.2/; revision=8446
Zac Medico [Tue, 6 Nov 2007 08:35:56 +0000 (08:35 -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). (trunk r8442)
svn path=/main/branches/2.1.2/; revision=8443
Zac Medico [Tue, 6 Nov 2007 07:26:26 +0000 (07:26 -0000)]
Remove the installed package masking hack from bug #149816 since
installed packages should be able to satisfy dependencies whether
they are masked or not (matches current trunk behavior).
svn path=/main/branches/2.1.2/; revision=8441
Zac Medico [Tue, 6 Nov 2007 07:00:39 +0000 (07:00 -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.
(trunk r8436)
Bug #198129 - Prevent SLOT atoms like sys-devel/binutils:0
from being inappropriately recorded in the world file when
USE=multislot is enabled.
(trunk r8437:8439)
svn path=/main/branches/2.1.2/; revision=8440
Zac Medico [Mon, 5 Nov 2007 06:50:39 +0000 (06:50 -0000)]
Port the EbuildNestedDie check from trunk since the
python version is much faster than the old one that
uses grep.
svn path=/main/branches/2.1.2/; revision=8430
Zac Medico [Sun, 4 Nov 2007 20:59:59 +0000 (20:59 -0000)]
Make exception strings more informative. (trunk r8426)
svn path=/main/branches/2.1.2/; revision=8427
Zac Medico [Sun, 4 Nov 2007 19:54:22 +0000 (19:54 -0000)]
Fix indentation typo.
svn path=/main/branches/2.1.2/; revision=8425
Zac Medico [Sun, 4 Nov 2007 18:01:46 +0000 (18:01 -0000)]
Make Manifest.create() do some basic validation of ebuild
file names like portdbapi.cp_list() would do. (trunk r8423)
svn path=/main/branches/2.1.2/; revision=8424
Zac Medico [Sun, 4 Nov 2007 09:31:30 +0000 (09:31 -0000)]
In portdbapi.cp_list(), validate the ebuild name to ensure
that it matches the name of the package. (trunk r8421)
svn path=/main/branches/2.1.2/; revision=8422
Zac Medico [Sun, 4 Nov 2007 06:54:43 +0000 (06:54 -0000)]
Clean up ACCEPT_KEYWORDS incremental stacking logic and
fix some minor inconsistencies. (trunk r8418)
svn path=/main/branches/2.1.2/; revision=8419
Zac Medico [Sun, 4 Nov 2007 05:36:19 +0000 (05:36 -0000)]
In fetch(), replace checksum_failure_counts dict with single
int counter. (trunk r8416)
svn path=/main/branches/2.1.2/; revision=8417
Zac Medico [Sun, 4 Nov 2007 03:33:32 +0000 (03:33 -0000)]
Generate a usage.obsolete warning whenever
-* is found in KEYWORDS. (trunk r8414)
svn path=/main/branches/2.1.2/; revision=8415
Zac Medico [Sun, 4 Nov 2007 02:15:39 +0000 (02:15 -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. (trunk r8412)
svn path=/main/branches/2.1.2/; revision=8413
Zac Medico [Sun, 4 Nov 2007 00:25:10 +0000 (00:25 -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). (trunk r8410)
svn path=/main/branches/2.1.2/; revision=8411
Zac Medico [Sat, 3 Nov 2007 23:49:19 +0000 (23:49 -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().
(trunk r8408)
svn path=/main/branches/2.1.2/; revision=8409
Zac Medico [Sat, 3 Nov 2007 22:51:50 +0000 (22:51 -0000)]
Call die() so that the $TMP directory is always properly
cleaned up. (trunk r8405)
svn path=/main/branches/2.1.2/; revision=8407
Zac Medico [Sat, 3 Nov 2007 22:50:59 +0000 (22:50 -0000)]
if mode=1 and `dialog` is not usable, abort #197990 by DominikBuerkle
(trunk r8402)
svn path=/main/branches/2.1.2/; revision=8406
Zac Medico [Sat, 3 Nov 2007 22:18:42 +0000 (22:18 -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. (trunk r8401)
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. (trunk r8403)
svn path=/main/branches/2.1.2/; revision=8404
Zac Medico [Sat, 3 Nov 2007 19:19:56 +0000 (19:19 -0000)]
Fix update_config_files() so that it uses update_dbentry()
to handle update commands since that already supports
slotmove commands for SLOT atoms. (trunk r8397)
svn path=/main/branches/2.1.2/; revision=8398
Zac Medico [Sat, 3 Nov 2007 17:13:18 +0000 (17:13 -0000)]
Revert to backward compatible masking behavior with respect
to -* in KEYWORDS and package.keywords since -* behavior
changes are not essential at this time and a change in this
long standing behavior has potential to confuse lots of
users.
svn path=/main/branches/2.1.2/; revision=8395
Zac Medico [Sat, 3 Nov 2007 16:48:06 +0000 (16:48 -0000)]
In portage.fetch(), condense digest check output to a single
line for all digests. (trunk r8385)
svn path=/main/branches/2.1.2/; revision=8394
Zac Medico [Sat, 3 Nov 2007 16:38:03 +0000 (16:38 -0000)]
Remove redundant code from previous commit. (trunk r8392)
svn path=/main/branches/2.1.2/; revision=8393
Zac Medico [Sat, 3 Nov 2007 16:34:57 +0000 (16:34 -0000)]
Bug #197932 - Make dbapi._cpv_sort_ascending()
preserve explicit -r0 for consistency in findname
and aux_get calls. (trunk r8390)
svn path=/main/branches/2.1.2/; revision=8391
Zac Medico [Sat, 3 Nov 2007 08:21:10 +0000 (08:21 -0000)]
Synchronize getmaskingreason() and getmaskingstatus() with
trunk so that behavior is the same for things like SLOT deps
and -* in package.keywords.
svn path=/main/branches/2.1.2/; revision=8386
Zac Medico [Fri, 2 Nov 2007 22:39:58 +0000 (22:39 -0000)]
Sort scanlist and ebuildlist to ensure that repoman always
processes packages in a predictable order. (trunk r8383)
svn path=/main/branches/2.1.2/; revision=8384