portage.git
14 years agoUse get_term_size() to adjust to current terminal width. Thanks to Dror Levin
Zac Medico [Fri, 29 Jan 2010 18:43:21 +0000 (18:43 -0000)]
Use get_term_size() to adjust to current terminal width. Thanks to Dror Levin
<spatz@g.0> for the initial patch. (trunk r15156)

svn path=/main/branches/2.1.7/; revision=15224

14 years agoAdd some tests related to bug #287848. (trunk r15155)
Zac Medico [Fri, 29 Jan 2010 18:43:08 +0000 (18:43 -0000)]
Add some tests related to bug #287848. (trunk r15155)

svn path=/main/branches/2.1.7/; revision=15223

15 years agoMerge PATH initialization/filtering changes from trunk r15149. v2.1.7.16
Zac Medico [Thu, 24 Dec 2009 05:37:52 +0000 (05:37 -0000)]
Merge PATH initialization/filtering changes from trunk r15149.

svn path=/main/branches/2.1.7/; revision=15150

15 years agoRemove stray echo. (trunk r15147)
Zac Medico [Thu, 24 Dec 2009 05:21:55 +0000 (05:21 -0000)]
Remove stray echo. (trunk r15147)

svn path=/main/branches/2.1.7/; revision=15148

15 years agoIn save_ebuild_env(), preserve all ebuild phases in any case since excluding
Zac Medico [Thu, 24 Dec 2009 05:11:32 +0000 (05:11 -0000)]
In save_ebuild_env(), preserve all ebuild phases in any case since excluding
the already executed ones from environment.bz2 doesn't save much space, and
it's possible that someone would want to look at them later. (trunk r15145)

svn path=/main/branches/2.1.7/; revision=15146

15 years agoRemove obsolete backing up of ROOTPATH via PORTAGE_ROOTPATH. (trunk r15143)
Zac Medico [Thu, 24 Dec 2009 04:40:22 +0000 (04:40 -0000)]
Remove obsolete backing up of ROOTPATH via PORTAGE_ROOTPATH. (trunk r15143)

svn path=/main/branches/2.1.7/; revision=15144

15 years agoBug #297933: Filter BASHOPTS variable for compatibility with bash-4.1.
Zac Medico [Thu, 24 Dec 2009 04:02:21 +0000 (04:02 -0000)]
Bug #297933: Filter BASHOPTS variable for compatibility with bash-4.1.
(trunk r15130)

svn path=/main/branches/2.1.7/; revision=15142

15 years agoIf the TERM environment variable is unset then just use internal default
Zac Medico [Thu, 24 Dec 2009 04:02:13 +0000 (04:02 -0000)]
If the TERM environment variable is unset then just use internal default
term codes since the vt100 codes typically produce strange output. This
fixes strange output from catalyst stage1 builds. (trunk r15129)

svn path=/main/branches/2.1.7/; revision=15141

15 years agoBug #297541 - Make $(no-as-needed) trigger upstream.workaround warning. Thanks
Zac Medico [Thu, 24 Dec 2009 04:01:50 +0000 (04:01 -0000)]
Bug #297541 - Make $(no-as-needed) trigger upstream.workaround warning. Thanks
to Samuli Suominen <ssuominen@g.o> for this patch. (trunk r15128)

svn path=/main/branches/2.1.7/; revision=15140

15 years agoAdd missing stat import. (trunk r15127)
Zac Medico [Thu, 24 Dec 2009 04:01:35 +0000 (04:01 -0000)]
Add missing stat import. (trunk r15127)

svn path=/main/branches/2.1.7/; revision=15139

15 years agoWhen integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
Zac Medico [Thu, 24 Dec 2009 04:01:27 +0000 (04:01 -0000)]
When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
float st_mtime in order to avoid rounding *up* in some rare cases.
(trunk r15126)

svn path=/main/branches/2.1.7/; revision=15138

15 years agoWhen integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
Zac Medico [Thu, 24 Dec 2009 04:01:10 +0000 (04:01 -0000)]
When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
float st_mtime in order to avoid rounding *up* in some rare cases.
(trunk r15125)

svn path=/main/branches/2.1.7/; revision=15137

15 years agoRemove some old debug code that should not have been committed. (trunk r15124)
Zac Medico [Thu, 24 Dec 2009 04:00:56 +0000 (04:00 -0000)]
Remove some old debug code that should not have been committed. (trunk r15124)

svn path=/main/branches/2.1.7/; revision=15136

15 years agoFix the assert alias to avoid 'value to great for base' messages in some cases.
Zac Medico [Thu, 24 Dec 2009 04:00:46 +0000 (04:00 -0000)]
Fix the assert alias to avoid 'value to great for base' messages in some cases.
Thanks to Jonathan Callen <abcd@g.o> for reporting. (trunk r15121)

svn path=/main/branches/2.1.7/; revision=15135

15 years agoUse portage.writemsg for lazy portage.util import. (trunk r15108) v2.1.7.15
Zac Medico [Thu, 17 Dec 2009 03:36:16 +0000 (03:36 -0000)]
Use portage.writemsg for lazy portage.util import. (trunk r15108)

svn path=/main/branches/2.1.7/; revision=15109

15 years agoConvert bytes to unicode for exception messages. (trunk r15106)
Zac Medico [Thu, 17 Dec 2009 03:30:46 +0000 (03:30 -0000)]
Convert bytes to unicode for exception messages. (trunk r15106)

svn path=/main/branches/2.1.7/; revision=15107

15 years agoBug #286497 - Make setexec() warn/nonfatal in permissive mode. Thanks to
Zac Medico [Thu, 17 Dec 2009 03:22:11 +0000 (03:22 -0000)]
Bug #286497 - Make setexec() warn/nonfatal in permissive mode. Thanks to
Chris PeBenito <pebenito@gentoo.org> for this patch. (trunk r15100)

svn path=/main/branches/2.1.7/; revision=15105

15 years agoFix typo. (trunk r15099)
Zac Medico [Thu, 17 Dec 2009 03:22:02 +0000 (03:22 -0000)]
Fix typo. (trunk r15099)

svn path=/main/branches/2.1.7/; revision=15104

15 years agoBug #296710 - Add equery to QA_INTERCEPTORS since it can trigger a fork bomb.
Zac Medico [Thu, 17 Dec 2009 03:21:53 +0000 (03:21 -0000)]
Bug #296710 - Add equery to QA_INTERCEPTORS since it can trigger a fork bomb.
(trunk r15098)

svn path=/main/branches/2.1.7/; revision=15103

15 years agoWarn if /proc is not mounted. (trunk r15097)
Zac Medico [Thu, 17 Dec 2009 03:21:42 +0000 (03:21 -0000)]
Warn if /proc is not mounted. (trunk r15097)

svn path=/main/branches/2.1.7/; revision=15102

15 years agoBug #296870 - Allow locale related LANG and LC_* variables to persist between
Zac Medico [Thu, 17 Dec 2009 03:21:33 +0000 (03:21 -0000)]
Bug #296870 - Allow locale related LANG and LC_* variables to persist between
ebuild phases, and only filter them for binary and installed packages.
(trunk r15096)

svn path=/main/branches/2.1.7/; revision=15101

15 years agoCombine 2 shift calls into one. (trunk r15059) v2.1.7.14
Zac Medico [Sun, 13 Dec 2009 03:55:39 +0000 (03:55 -0000)]
Combine 2 shift calls into one. (trunk r15059)

svn path=/main/branches/2.1.7/; revision=15092

15 years agoBug #296554 - Add decompression support to ecompress (similar to ecompressdir
Zac Medico [Sun, 13 Dec 2009 03:55:30 +0000 (03:55 -0000)]
Bug #296554 - Add decompression support to ecompress (similar to ecompressdir
behavior) since dodoc can call ecompress with stuff that's already compressed
in some way. (trunk r15058)

svn path=/main/branches/2.1.7/; revision=15091

15 years agoMake prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and
Zac Medico [Sun, 13 Dec 2009 03:55:20 +0000 (03:55 -0000)]
Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and
2. (trunk r15057)

svn path=/main/branches/2.1.7/; revision=15090

15 years agoInside depgraph._validate_blockers(), do not consider blockers in DEPEND of
Zac Medico [Sun, 13 Dec 2009 03:55:07 +0000 (03:55 -0000)]
Inside depgraph._validate_blockers(), do not consider blockers in DEPEND of
installed packages, since DEPEND is supposed to be irrelevant for packages
after they are built. (trunk r15056)

svn path=/main/branches/2.1.7/; revision=15089

15 years agoBug #296641 - Avoid UnicodeEncodeError with python2 in eapi_is_supported()
Zac Medico [Sun, 13 Dec 2009 03:54:53 +0000 (03:54 -0000)]
Bug #296641 - Avoid UnicodeEncodeError with python2 in eapi_is_supported()
triggered by corrupt EAPI. (trunk r15055)

svn path=/main/branches/2.1.7/; revision=15088

15 years agoIn movefile mtime preservation code, simply round down to the nearest whole
Zac Medico [Sun, 13 Dec 2009 03:54:38 +0000 (03:54 -0000)]
In movefile mtime preservation code, simply round down to the nearest whole
second since python's float cannot preserve the st_mtim.tv_nsec field with
complete precision. Note that we have to use stat_obj[stat.ST_MTIME] here
because the float stat_obj.st_mtime rounds *up* sometimes. (trunk r15054)

svn path=/main/branches/2.1.7/; revision=15087

15 years agoRemove redundant EPREFIX, EROOT, and ROOT assingments inside
Zac Medico [Sun, 13 Dec 2009 03:54:24 +0000 (03:54 -0000)]
Remove redundant EPREFIX, EROOT, and ROOT assingments inside
doebuild_environment(). (trunk r15052)

svn path=/main/branches/2.1.7/; revision=15086

15 years agoRemove unused STARTDIR variable. (trunk r15051)
Zac Medico [Sun, 13 Dec 2009 03:54:16 +0000 (03:54 -0000)]
Remove unused STARTDIR variable. (trunk r15051)

svn path=/main/branches/2.1.7/; revision=15085

15 years agoUnset prefix vars for depend phase (even if EAPI is known). (trunk r15050)
Zac Medico [Sun, 13 Dec 2009 03:54:07 +0000 (03:54 -0000)]
Unset prefix vars for depend phase (even if EAPI is known). (trunk r15050)

svn path=/main/branches/2.1.7/; revision=15084

15 years agoUnset prefix vars for depend phase when EAPI is unknown. (trunk r15049)
Zac Medico [Sun, 13 Dec 2009 03:53:58 +0000 (03:53 -0000)]
Unset prefix vars for depend phase when EAPI is unknown. (trunk r15049)

svn path=/main/branches/2.1.7/; revision=15083

15 years ago* Fix type in econf --host argument.
Zac Medico [Sun, 13 Dec 2009 03:53:48 +0000 (03:53 -0000)]
* Fix type in econf --host argument.
* Add missing econf --build and --target arguments.
* Use tabs instead of spaces for indentation. (trunk r15048)

svn path=/main/branches/2.1.7/; revision=15082

15 years agoFix typo. (trunk r15047)
Zac Medico [Sun, 13 Dec 2009 03:53:31 +0000 (03:53 -0000)]
Fix typo. (trunk r15047)

svn path=/main/branches/2.1.7/; revision=15081

15 years agoIn movefile mtime rounding code, generate nanosecond resolution (9 decimal
Zac Medico [Sun, 13 Dec 2009 03:53:22 +0000 (03:53 -0000)]
In movefile mtime rounding code, generate nanosecond resolution (9 decimal
places) in order to ensure that the floating point representation is the
highest value possible without rounding up. (trunk r15046)

svn path=/main/branches/2.1.7/; revision=15080

15 years agoFix typo. (trunk r15045)
Zac Medico [Sun, 13 Dec 2009 03:53:11 +0000 (03:53 -0000)]
Fix typo. (trunk r15045)

svn path=/main/branches/2.1.7/; revision=15079

15 years agoRemove redundant EPREFIX setting since it's already initialized earlier in the
Zac Medico [Sun, 13 Dec 2009 03:52:59 +0000 (03:52 -0000)]
Remove redundant EPREFIX setting since it's already initialized earlier in the
config constructor. (trunk r15044)

svn path=/main/branches/2.1.7/; revision=15078

15 years agoUpdate for EAPI 3_pre2. (trunk r15043)
Zac Medico [Sun, 13 Dec 2009 03:52:44 +0000 (03:52 -0000)]
Update for EAPI 3_pre2. (trunk r15043)

svn path=/main/branches/2.1.7/; revision=15077

15 years agoAdd more EAPI 3 conditionals for prefix variables. (trunk r15042)
Zac Medico [Sun, 13 Dec 2009 03:52:30 +0000 (03:52 -0000)]
Add more EAPI 3 conditionals for prefix variables. (trunk r15042)

svn path=/main/branches/2.1.7/; revision=15076

15 years agoAdd EAPI 3 conditionals for prefix variables. (trunk r15041)
Zac Medico [Sun, 13 Dec 2009 03:52:18 +0000 (03:52 -0000)]
Add EAPI 3 conditionals for prefix variables. (trunk r15041)

svn path=/main/branches/2.1.7/; revision=15075

15 years agoJust use integer mtime if no fractional seconds are found in the search.
Zac Medico [Sun, 13 Dec 2009 03:52:06 +0000 (03:52 -0000)]
Just use integer mtime if no fractional seconds are found in the search.
(trunk r15040)

svn path=/main/branches/2.1.7/; revision=15074

15 years agoTweak movefile() timestamp preservation code to maximize precision for old
Zac Medico [Sun, 13 Dec 2009 03:51:52 +0000 (03:51 -0000)]
Tweak movefile() timestamp preservation code to maximize precision for old
timestamps that are closer to the epoch. (trunk r15039)

svn path=/main/branches/2.1.7/; revision=15073

15 years agoAdd missing line from previous commit. (trunk r15038)
Zac Medico [Sun, 13 Dec 2009 03:51:39 +0000 (03:51 -0000)]
Add missing line from previous commit. (trunk r15038)

svn path=/main/branches/2.1.7/; revision=15072

15 years agoIn movefile() timestamp preservation code, use another loop to search for
Zac Medico [Sun, 13 Dec 2009 03:51:26 +0000 (03:51 -0000)]
In movefile() timestamp preservation code, use another loop to search for
another digit of precision. (trunk r15037)

svn path=/main/branches/2.1.7/; revision=15071

15 years agoAdd EAPI to the whitelist to ensure it's always available as early as possible.
Zac Medico [Sun, 13 Dec 2009 03:51:11 +0000 (03:51 -0000)]
Add EAPI to the whitelist to ensure it's always available as early as possible.
(trunk r15036)

svn path=/main/branches/2.1.7/; revision=15070

15 years agoAdd EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled. (trunk r15035)
Zac Medico [Sun, 13 Dec 2009 03:50:56 +0000 (03:50 -0000)]
Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled. (trunk r15035)

svn path=/main/branches/2.1.7/; revision=15069

15 years agoEnable xz unpack for EAPI 3_pre2. (trunk r15034)
Zac Medico [Sun, 13 Dec 2009 03:50:39 +0000 (03:50 -0000)]
Enable xz unpack for EAPI 3_pre2. (trunk r15034)

svn path=/main/branches/2.1.7/; revision=15068

15 years agoAdd support for EAPI 3_pre2. (trunk r15033)
Zac Medico [Sun, 13 Dec 2009 03:50:24 +0000 (03:50 -0000)]
Add support for EAPI 3_pre2. (trunk r15033)

svn path=/main/branches/2.1.7/; revision=15067

15 years agoIn config.environ(), only export ED, EPREFIX, and EROOT to the ebuild
Zac Medico [Sun, 13 Dec 2009 03:50:12 +0000 (03:50 -0000)]
In config.environ(), only export ED, EPREFIX, and EROOT to the ebuild
environment starting with EAPI 3 (so people won't write ebuilds that
are incompatible with older package managers). (trunk r15032)

svn path=/main/branches/2.1.7/; revision=15066

15 years agoDon't filter/interfere with prefix variables unless they are supported by the
Zac Medico [Sun, 13 Dec 2009 03:49:51 +0000 (03:49 -0000)]
Don't filter/interfere with prefix variables unless they are supported by the
current EAPI. (trunk r15031)

svn path=/main/branches/2.1.7/; revision=15065

15 years agoFilter prefix variables ED, EPREFIX, and EROOT inside
Zac Medico [Sun, 13 Dec 2009 03:49:37 +0000 (03:49 -0000)]
Filter prefix variables ED, EPREFIX, and EROOT inside
filter_readonly_variables() but don't mark them readonly for now since some
ebuilds/eclasses try to assign EROOT (such as kde4-base_pkg_setup) which
causes the whole bash shell to exit like this:

>>> Extracting info
 * CPV:  kde-base/oxygen-icons-4.3.4
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux test userland_GNU x86
/var/tmp/portage/kde-base/oxygen-icons-4.3.4/temp/environment: line 2781: EROOT: readonly variable

Also, add ED to the environment blacklist. (trunk r15030)

svn path=/main/branches/2.1.7/; revision=15064

15 years agoDon't use lazy import for portage.cache.mappings because it's imported anyway.
Zac Medico [Sun, 13 Dec 2009 03:49:17 +0000 (03:49 -0000)]
Don't use lazy import for portage.cache.mappings because it's imported anyway.
(trunk r15029)

svn path=/main/branches/2.1.7/; revision=15063

15 years agoUse collections.OrderedDict when available (python-2.7) and fall back to
Zac Medico [Sun, 13 Dec 2009 03:49:09 +0000 (03:49 -0000)]
Use collections.OrderedDict when available (python-2.7) and fall back to
portage.cache.mappings.OrderedDict for older python. Also, use OrderedDict
inside fetch() so that files are fetched in the order that they appear in
SRC_URI. (trunk r15028)

svn path=/main/branches/2.1.7/; revision=15062

15 years agofix definition regarding slashes for EPREFIX, D, ED and EROOT (trunk r15026)
Zac Medico [Sun, 13 Dec 2009 03:48:53 +0000 (03:48 -0000)]
fix definition regarding slashes for EPREFIX, D, ED and EROOT (trunk r15026)

svn path=/main/branches/2.1.7/; revision=15061

15 years agoImplement forward compatible Prefix support. This makes EPREFIX, ED and
Zac Medico [Sun, 13 Dec 2009 03:48:30 +0000 (03:48 -0000)]
Implement forward compatible Prefix support.  This makes EPREFIX, ED and
EROOT available to the ebuild environment, and updates the manpage
accordingly.  EPREFIX is hardwired to the empty string, and not
configurable.  For that, the prefix branch should be used for now.

This should satisfy the requirements for EAPI=3. (trunk r15024)

svn path=/main/branches/2.1.7/; revision=15060

15 years agoFix introspection code in fetch() so that it works correctly when myuris is v2.1.7.13
Zac Medico [Thu, 10 Dec 2009 05:49:06 +0000 (05:49 -0000)]
Fix introspection code in fetch() so that it works correctly when myuris is
an OrderedDict instance. This fixes broken fetching for some packages.
(trunk r15019)

svn path=/main/branches/2.1.7/; revision=15020

15 years agoRemove extra comman in comment. (trunk r15015) v2.1.7.12
Zac Medico [Thu, 10 Dec 2009 01:51:51 +0000 (01:51 -0000)]
Remove extra comman in comment. (trunk r15015)

svn path=/main/branches/2.1.7/; revision=15016

15 years agoHandle permission problems when trying to cache the remote Packages file
Zac Medico [Thu, 10 Dec 2009 01:05:49 +0000 (01:05 -0000)]
Handle permission problems when trying to cache the remote Packages file
from a binhost. Thanks to Jeremy Olexa <darkside@g.o> for reporting.
(trunk r14997)

svn path=/main/branches/2.1.7/; revision=15013

15 years agoDetect cases when long(stat_obj.st_mtime) != stat_obj[stat.ST_MTIME] due to
Zac Medico [Thu, 10 Dec 2009 01:05:35 +0000 (01:05 -0000)]
Detect cases when long(stat_obj.st_mtime) != stat_obj[stat.ST_MTIME] due to
rounding up, and truncate digits as necessary to preserve the integral seconds
portion of the mtime. (trunk r14996)

svn path=/main/branches/2.1.7/; revision=15012

15 years agoIn movefile(), always use stat_obj[stat.ST_MTIME] for the integral timestamp
Zac Medico [Thu, 10 Dec 2009 01:05:13 +0000 (01:05 -0000)]
In movefile(), always use stat_obj[stat.ST_MTIME] for the integral timestamp
which is returned, since the stat_obj.st_mtime float attribute rounds *up* if
the nanosecond part of the timestamp is 999999881 ns or greater. (trunk r14995)

svn path=/main/branches/2.1.7/; revision=15011

15 years agoRemove obsolete env-update.sh script. (trunk r14992)
Zac Medico [Thu, 10 Dec 2009 01:05:05 +0000 (01:05 -0000)]
Remove obsolete env-update.sh script. (trunk r14992)

svn path=/main/branches/2.1.7/; revision=15010

15 years agoAdd localization variables (LANG and LC_*) to the environment whitelist and
Zac Medico [Thu, 10 Dec 2009 01:04:47 +0000 (01:04 -0000)]
Add localization variables (LANG and LC_*) to the environment whitelist and
filter them from the saved environment (so user settings override those of
binary packages). Thanks to Fabio Erculiani <lxnay@g.o> for reporting.
(trunk r14975)

svn path=/main/branches/2.1.7/; revision=15009

15 years agoWhen overridding sys.std* in python2, use binary streams. (trunk r14974)
Zac Medico [Thu, 10 Dec 2009 01:04:33 +0000 (01:04 -0000)]
When overridding sys.std* in python2, use binary streams. (trunk r14974)

svn path=/main/branches/2.1.7/; revision=15008

15 years agoFix handling for TEMP, TMP, and TMPDIR variables:
Zac Medico [Thu, 10 Dec 2009 01:04:26 +0000 (01:04 -0000)]
Fix handling for TEMP, TMP, and TMPDIR variables:
* Add to whitelist so current values are always used.
* Always filter them from the saved environment.
* Always add thier values to SANDBOX_WRITE. (trunk r14973)

svn path=/main/branches/2.1.7/; revision=15007

15 years agoUse ImportError handling to import _TextTestResult which moved from
Zac Medico [Thu, 10 Dec 2009 01:04:18 +0000 (01:04 -0000)]
Use ImportError handling to import _TextTestResult which moved from
unittest to unittest.runner in python-2.7. Thanks to Arfrever for the
suggestion. (trunk r14972)

svn path=/main/branches/2.1.7/; revision=15006

15 years agoWhen temporarily replacing the sys.std* streams, use the normal open() func
Zac Medico [Thu, 10 Dec 2009 01:04:07 +0000 (01:04 -0000)]
When temporarily replacing the sys.std* streams, use the normal open() func
in python3 so that we get the right class (otherwise our code that expects
the 'buffer' attribute will break). (trunk r14971)

svn path=/main/branches/2.1.7/; revision=15005

15 years agoDon't assign f to sys.stderr inside EOutput._write(). (trunk r14970)
Zac Medico [Thu, 10 Dec 2009 01:03:58 +0000 (01:03 -0000)]
Don't assign f to sys.stderr inside EOutput._write(). (trunk r14970)

svn path=/main/branches/2.1.7/; revision=15004

15 years agoWhen reading the remote Packages file for --getbinpkg, use codecs.iterdecode
Zac Medico [Thu, 10 Dec 2009 01:03:49 +0000 (01:03 -0000)]
When reading the remote Packages file for --getbinpkg, use codecs.iterdecode
to decode the stream. Also, don't use finally to close the atomic_ofstream
when writing the file since we want it to abort if an exception is raised.
(trunk r14969)

svn path=/main/branches/2.1.7/; revision=15003

15 years agoUse OrderedDict in portdbapi.getFetchMap() so that order in $A corresponds
Zac Medico [Thu, 10 Dec 2009 01:03:33 +0000 (01:03 -0000)]
Use OrderedDict in portdbapi.getFetchMap() so that order in $A corresponds
to order in SRC_URI. (trunk r14968)

svn path=/main/branches/2.1.7/; revision=15002

15 years agoAdd OrderedDict class. (trunk r14967)
Zac Medico [Thu, 10 Dec 2009 01:03:20 +0000 (01:03 -0000)]
Add OrderedDict class. (trunk r14967)

svn path=/main/branches/2.1.7/; revision=15001

15 years agoMove ebuild helpers to account for rename of EAPI 3 to 4. (trunk r14966)
Zac Medico [Thu, 10 Dec 2009 01:03:00 +0000 (01:03 -0000)]
Move ebuild helpers to account for rename of EAPI 3 to 4. (trunk r14966)

svn path=/main/branches/2.1.7/; revision=15000

15 years agoBump EAPI conditionals to account for rename of EAPI 3 to 4. Thanks to
Zac Medico [Thu, 10 Dec 2009 01:02:01 +0000 (01:02 -0000)]
Bump EAPI conditionals to account for rename of EAPI 3 to 4. Thanks to
Jonathan Callen <abcd@g.o> for this patch. (trunk r14965)

svn path=/main/branches/2.1.7/; revision=14999

15 years agoCopy the unittest._TextTestResult class from python-2.6 since it's been
Zac Medico [Thu, 10 Dec 2009 00:56:06 +0000 (00:56 -0000)]
Copy the unittest._TextTestResult class from python-2.6 since it's been
removed in python-2.7. (trunk r14963)

svn path=/main/branches/2.1.7/; revision=14998

15 years agoRemove unused filter_phases, filter_mergephases, and filter_unmergephases v2.1.7.11
Zac Medico [Mon, 7 Dec 2009 02:54:30 +0000 (02:54 -0000)]
Remove unused filter_phases, filter_mergephases, and filter_unmergephases
functions. (trunk r14958)

svn path=/main/branches/2.1.7/; revision=14960

15 years agoRemove unnecessary elog_process() phasefilter arguements. (trunk r14957)
Zac Medico [Mon, 7 Dec 2009 02:54:17 +0000 (02:54 -0000)]
Remove unnecessary elog_process() phasefilter arguements. (trunk r14957)

svn path=/main/branches/2.1.7/; revision=14959

15 years agoMake more code conditional on existence of PORTAGE_BUILDDIR inside
Zac Medico [Mon, 7 Dec 2009 02:44:26 +0000 (02:44 -0000)]
Make more code conditional on existence of PORTAGE_BUILDDIR inside
dblink._merge(). (trunk r14955)

svn path=/main/branches/2.1.7/; revision=14956

15 years agoInside dblink._merge(), make sure PORTAGE_BUILDDIR still exists before trying
Zac Medico [Mon, 7 Dec 2009 02:30:55 +0000 (02:30 -0000)]
Inside dblink._merge(), make sure PORTAGE_BUILDDIR still exists before trying
to call ebuild success/die hooks, since it might have already been removed
by fail-clean (and the hooks would have already been called). (trunk r14953)

svn path=/main/branches/2.1.7/; revision=14954

15 years agoFix possibly unsafe modification of list during iteration inside
Zac Medico [Mon, 7 Dec 2009 02:00:47 +0000 (02:00 -0000)]
Fix possibly unsafe modification of list during iteration inside
update_config_files(). (trunk r14951)

svn path=/main/branches/2.1.7/; revision=14952

15 years agoBug #295715 - Implement a register_success_hook function to complement
Zac Medico [Sun, 6 Dec 2009 11:03:54 +0000 (11:03 -0000)]
Bug #295715 - Implement a register_success_hook function to complement
register_die_hook, and also add code to ensure the die hooks are called even
when the failure is on the python side (like for file collisions).
(trunk r14936)

svn path=/main/branches/2.1.7/; revision=14950

15 years agoAdd 'tla' to the lists of live eclasses. (trunk r14935)
Zac Medico [Sun, 6 Dec 2009 11:03:33 +0000 (11:03 -0000)]
Add 'tla' to the lists of live eclasses. (trunk r14935)

svn path=/main/branches/2.1.7/; revision=14949

15 years agoFix _spawn_misc_sh() to properly unset EBUILD_PHASE, and add a 'phase'
Zac Medico [Sun, 6 Dec 2009 11:02:11 +0000 (11:02 -0000)]
Fix _spawn_misc_sh() to properly unset EBUILD_PHASE, and add a 'phase'
description parameter for use in messages. (trunk r14934)

svn path=/main/branches/2.1.7/; revision=14948

15 years agoAdd a AbstractEbuildProcess class for MiscFunctionsProcess to inherit the
Zac Medico [Sun, 6 Dec 2009 11:02:00 +0000 (11:02 -0000)]
Add a AbstractEbuildProcess class for MiscFunctionsProcess to inherit the
_pipe and _can_log methods that used to be in the EbuildProcess class.
(trunk r14933)

svn path=/main/branches/2.1.7/; revision=14947

15 years agoMake register_die_hook() ensure that each hook is registered only once.
Zac Medico [Sun, 6 Dec 2009 11:01:29 +0000 (11:01 -0000)]
Make register_die_hook() ensure that each hook is registered only once.
(trunk r14932)

svn path=/main/branches/2.1.7/; revision=14946

15 years agoUse portage.StringIO to avoid duplicate import fallback code. (trunk r14931)
Zac Medico [Sun, 6 Dec 2009 11:01:14 +0000 (11:01 -0000)]
Use portage.StringIO to avoid duplicate import fallback code. (trunk r14931)

svn path=/main/branches/2.1.7/; revision=14945

15 years agoMove code for handling missing sandbox binary out of the config constructor.
Zac Medico [Sun, 6 Dec 2009 11:01:05 +0000 (11:01 -0000)]
Move code for handling missing sandbox binary out of the config constructor.
(trunk r14930)

svn path=/main/branches/2.1.7/; revision=14944

15 years agoBug #295805 - Fix ValueError with python3 inside update_config_files().
Zac Medico [Sun, 6 Dec 2009 11:00:46 +0000 (11:00 -0000)]
Bug #295805 - Fix ValueError with python3 inside update_config_files().
(trunk r14929)

svn path=/main/branches/2.1.7/; revision=14943

15 years agoBug #162404 - Automatically disable logging if sesandbox is enabled and a
Zac Medico [Sun, 6 Dec 2009 11:00:34 +0000 (11:00 -0000)]
Bug #162404 - Automatically disable logging if sesandbox is enabled and a
pty is not available for some reason (currently they are never available
with python3). (trunk r14928)

svn path=/main/branches/2.1.7/; revision=14942

15 years agoAlways append QA Notices resulting from the build log search to the end of
Zac Medico [Sun, 6 Dec 2009 11:00:17 +0000 (11:00 -0000)]
Always append QA Notices resulting from the build log search to the end of
the log. Thanks to Diego E. Pettenò for reporting. (trunk r14927)

svn path=/main/branches/2.1.7/; revision=14941

15 years agoBug #280336, comment #2 - Clear the package selection cache when packages v2.1.7.10
Zac Medico [Thu, 3 Dec 2009 05:09:29 +0000 (05:09 -0000)]
Bug #280336, comment #2 - Clear the package selection cache when packages
are added to the graph. This fixes incorrect choices that happen in some
cases. (trunk r14922)

svn path=/main/branches/2.1.7/; revision=14924

15 years agoBug #295351 - Make update_dbentries() return unicode if it's given unicode,
Zac Medico [Thu, 3 Dec 2009 05:09:13 +0000 (05:09 -0000)]
Bug #295351 - Make update_dbentries() return unicode if it's given unicode,
and bytes if it's given bytes. (trunk r14921)

svn path=/main/branches/2.1.7/; revision=14923

15 years agoFix deprecated usage of dep_getkey(). Thanks to Sebastian Mingramm (few) v2.1.7.9
Zac Medico [Sat, 28 Nov 2009 22:18:29 +0000 (22:18 -0000)]
Fix deprecated usage of dep_getkey(). Thanks to Sebastian Mingramm (few)
for reporting. (trunk r14915)

svn path=/main/branches/2.1.7/; revision=14918

15 years agoBug #294945 - Fix blocker satistfied state handling inside depgraph, to
Zac Medico [Sat, 28 Nov 2009 22:18:13 +0000 (22:18 -0000)]
Bug #294945 - Fix blocker satistfied state handling inside depgraph, to
avoid a KeyError when displaying blockers. (trunk r14914)

svn path=/main/branches/2.1.7/; revision=14917

15 years agoRevert r14901 since it doesn't solve the problem (bug #294945). (trunk r14913)
Zac Medico [Sat, 28 Nov 2009 22:18:04 +0000 (22:18 -0000)]
Revert r14901 since it doesn't solve the problem (bug #294945). (trunk r14913)

svn path=/main/branches/2.1.7/; revision=14916

15 years agoIn FakeVartree.sync(), skip the aux_get wrapper when populating old-style v2.1.7.8
Zac Medico [Fri, 27 Nov 2009 23:36:08 +0000 (23:36 -0000)]
In FakeVartree.sync(), skip the aux_get wrapper when populating old-style
virtuals, in order to avoid unwanted cache generation with --nodeps (reported
by Arfrever). (trunk r14909)

svn path=/main/branches/2.1.7/; revision=14910

15 years agoBug #294886 - Show some basic info at the beginning of the build log,
Zac Medico [Fri, 27 Nov 2009 23:02:57 +0000 (23:02 -0000)]
Bug #294886 - Show some basic info at the beginning of the build log,
including USE flags. (trunk r14907)

svn path=/main/branches/2.1.7/; revision=14908

15 years agoHandle a KeyError in depgraph._ordered_tree_display(), reported on irc by
Zac Medico [Fri, 27 Nov 2009 22:38:53 +0000 (22:38 -0000)]
Handle a KeyError in depgraph._ordered_tree_display(), reported on irc by
romildo. (trunk r14901)

svn path=/main/branches/2.1.7/; revision=14906

15 years agoAdd a note about lack of nanosecond precision in movefile(). (trunk r14900)
Zac Medico [Fri, 27 Nov 2009 22:38:41 +0000 (22:38 -0000)]
Add a note about lack of nanosecond precision in movefile(). (trunk r14900)

svn path=/main/branches/2.1.7/; revision=14905

15 years agoIn calc_depclean(), load the FakeVartree before using it. This fixes
Zac Medico [Fri, 27 Nov 2009 22:38:26 +0000 (22:38 -0000)]
In calc_depclean(), load the FakeVartree before using it. This fixes
a regression which causes incomplete graph creation (since r14773).
Thanks to Vlastimil Babka <caster@g.o> for reporting. (trunk r14899)

svn path=/main/branches/2.1.7/; revision=14904

15 years agoFix logic from previous commit so it only applies when a 'newmtime' parameter
Zac Medico [Fri, 27 Nov 2009 22:38:16 +0000 (22:38 -0000)]
Fix logic from previous commit so it only applies when a 'newmtime' parameter
has not been specified (this is always the case when called by portage).
(trunk r14898)

svn path=/main/branches/2.1.7/; revision=14903

15 years agoIn movefile(), skip os.utime() when os.rename() succeeds, in order to
Zac Medico [Fri, 27 Nov 2009 22:37:57 +0000 (22:37 -0000)]
In movefile(), skip os.utime() when os.rename() succeeds, in order to
completely preserve mtime resolution. (trunk r14897)

svn path=/main/branches/2.1.7/; revision=14902

15 years agoSet built=True when creating Package instances. This fixes a problem with v2.1.7.7
Zac Medico [Wed, 25 Nov 2009 22:33:04 +0000 (22:33 -0000)]
Set built=True when creating Package instances. This fixes a problem with
--resume, reported by Sebastian Mingramm (few). (trunk r14886)

svn path=/main/branches/2.1.7/; revision=14891