portage.git
15 years agoUse _content_encoding and _fs_encoding where appropriate.
Zac Medico [Tue, 18 Aug 2009 06:09:57 +0000 (06:09 -0000)]
Use _content_encoding and _fs_encoding where appropriate.

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

15 years agoImplement lazy loading of color.map when either the codes or _styles
Zac Medico [Tue, 18 Aug 2009 06:03:08 +0000 (06:03 -0000)]
Implement lazy loading of color.map when either the codes or _styles
attribute is accessed. This provides and _init(config_root='/') function
that the prefix branch can use to substitute an appropriate config_root
value at runtime.

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

15 years agoUse st_* attributes instead of the stat module.
Zac Medico [Tue, 18 Aug 2009 05:12:49 +0000 (05:12 -0000)]
Use st_* attributes instead of the stat module.

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

15 years agoBug #277619 - Fix news item relevance logic. Thanks to Alec Warner
Zac Medico [Mon, 17 Aug 2009 23:44:42 +0000 (23:44 -0000)]
Bug #277619 - Fix news item relevance logic. Thanks to Alec Warner
<antarus@gentoo.org> for this patch.

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

15 years agoUse portage.os, _content_encoding, and _fs_encoding where appropriate.
Zac Medico [Mon, 17 Aug 2009 23:17:30 +0000 (23:17 -0000)]
Use portage.os, _content_encoding, and _fs_encoding where appropriate.

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

15 years agoEnable error='strict' when encoding arguments inside _unicode_func_wrapper(),
Zac Medico [Mon, 17 Aug 2009 23:06:52 +0000 (23:06 -0000)]
Enable error='strict' when encoding arguments inside _unicode_func_wrapper(),
and document behavior.

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

15 years agoUse portage.os, _content_encoding, and _fs_encoding where appropriate.
Zac Medico [Mon, 17 Aug 2009 22:18:02 +0000 (22:18 -0000)]
Use portage.os, _content_encoding, and _fs_encoding where appropriate.

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

15 years agoTest the edge case.
Zac Medico [Mon, 17 Aug 2009 21:56:16 +0000 (21:56 -0000)]
Test the edge case.

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

15 years agoAdd 'return False' which was missing from the previous commit.
Arfrever Frehtes Taifersar Arahesis [Mon, 17 Aug 2009 14:25:45 +0000 (14:25 -0000)]
Add 'return False' which was missing from the previous commit.

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

15 years agoPrint a warning when nonexistent files have been passed to dohtml.
Arfrever Frehtes Taifersar Arahesis [Mon, 17 Aug 2009 04:33:42 +0000 (04:33 -0000)]
Print a warning when nonexistent files have been passed to dohtml.

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

15 years agoUse portage.os and _fs_encoding where appropriate, and fix binary string
Zac Medico [Mon, 17 Aug 2009 03:34:44 +0000 (03:34 -0000)]
Use portage.os and _fs_encoding where appropriate, and fix binary string
handling for py3k compat.

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

15 years agoWhen _unicode_func_wrapper() decodes a string in a returned list (typically
Zac Medico [Mon, 17 Aug 2009 00:25:58 +0000 (00:25 -0000)]
When _unicode_func_wrapper() decodes a string in a returned list (typically
from os.listdir), discard values with invalid encoding. This insures that
all names returned from all os.listdir() calls are valid.

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

15 years agoUse _content_encoding and _fs_encoding for unicode encoding/decoding.
Zac Medico [Mon, 17 Aug 2009 00:15:11 +0000 (00:15 -0000)]
Use _content_encoding and _fs_encoding for unicode encoding/decoding.

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

15 years agoUse a clean listener system for portage.elog instead of _emerge_elog_listener
Mounir Lamouri [Sun, 16 Aug 2009 21:22:34 +0000 (21:22 -0000)]
Use a clean listener system for portage.elog instead of _emerge_elog_listener

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

15 years agoScheduler is now able to clean world set when removing a package.
Mounir Lamouri [Sat, 15 Aug 2009 19:28:53 +0000 (19:28 -0000)]
Scheduler is now able to clean world set when removing a package.
world_atom function has been updated
and PackageUninstall is calling it after unmerge.

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

15 years agosets/files.py cleanPackages function stop calling lock and load
Mounir Lamouri [Sat, 15 Aug 2009 19:24:12 +0000 (19:24 -0000)]
sets/files.py cleanPackages function stop calling lock and load
and requires the caller to do that
changing unmerge to reflect this change

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

15 years agoUse elog in _eapi0_pkg_nofetch().
Zac Medico [Sat, 15 Aug 2009 18:15:39 +0000 (18:15 -0000)]
Use elog in _eapi0_pkg_nofetch().

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

15 years agoPrepare 308 messages to localization.
Arfrever Frehtes Taifersar Arahesis [Sat, 15 Aug 2009 18:13:18 +0000 (18:13 -0000)]
Prepare 308 messages to localization.

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

15 years agoRemove ACCEPT_PROPERTIES filtering since it's filtered on the python side.
Zac Medico [Sat, 15 Aug 2009 08:22:47 +0000 (08:22 -0000)]
Remove ACCEPT_PROPERTIES filtering since it's filtered on the python side.

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

15 years agoFix typo.
Zac Medico [Sat, 15 Aug 2009 08:20:31 +0000 (08:20 -0000)]
Fix typo.

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

15 years agoRemove ACCEPT_PROPERTIES variable generation code which isn't needed since,
Zac Medico [Sat, 15 Aug 2009 08:19:49 +0000 (08:19 -0000)]
Remove ACCEPT_PROPERTIES variable generation code which isn't needed since,
unlike ACCEPT_LICENSE, ACCEPT_PROPERTIES isn't passed into the ebuild
environment.

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

15 years agoUpdate import to import portage.os (with unicode wrappers), and use
Zac Medico [Sat, 15 Aug 2009 07:23:51 +0000 (07:23 -0000)]
Update import to import portage.os (with unicode wrappers), and use
_unicode_encode() and _content_encoding for encoding unicode env
vars in spawn().

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

15 years agoMake movefile() use process.spawn() instead of getstatusoutput() when calling
Zac Medico [Sat, 15 Aug 2009 07:08:03 +0000 (07:08 -0000)]
Make movefile() use process.spawn() instead of getstatusoutput() when calling
MOVE_BINARY, since spawn will pass encoded file paths directly as arguments.

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

15 years agoMake _generate_hash_function() use _fs_encoding to encode the filename
Zac Medico [Sat, 15 Aug 2009 06:48:15 +0000 (06:48 -0000)]
Make _generate_hash_function() use _fs_encoding to encode the filename
(if it's not already encoded), and enable errors='strict'.

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

15 years agoIn perform_checksum(), encode the filename with correct encoding before
Zac Medico [Sat, 15 Aug 2009 06:42:40 +0000 (06:42 -0000)]
In perform_checksum(), encode the filename with correct encoding before
passing to spawn (for prelink), and enable strict encoding behavior in
_perform_md5_merge().

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

15 years agoFix dblink._unmerge_pkgfiles() to use the correct version of perform_md5
Zac Medico [Sat, 15 Aug 2009 00:15:11 +0000 (00:15 -0000)]
Fix dblink._unmerge_pkgfiles() to use the correct version of perform_md5
when it falls back to utf8 encoding.

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

15 years agoFix broken _selinux_merge definition.
Zac Medico [Fri, 14 Aug 2009 23:54:45 +0000 (23:54 -0000)]
Fix broken _selinux_merge definition.

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

15 years agoAdd a portage._content_encoding constant, set to utf_8.
Zac Medico [Fri, 14 Aug 2009 23:51:29 +0000 (23:51 -0000)]
Add a portage._content_encoding constant, set to utf_8.

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

15 years agoUse portage._fs_encoding where appropriage, and use strict handling for
Zac Medico [Fri, 14 Aug 2009 23:44:57 +0000 (23:44 -0000)]
Use portage._fs_encoding where appropriage, and use strict handling for
errors.

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

15 years agoHandle UnicodeDecodeError for os.walk() inside digestcheck().
Zac Medico [Fri, 14 Aug 2009 23:25:33 +0000 (23:25 -0000)]
Handle UnicodeDecodeError for os.walk() inside digestcheck().

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

15 years agoUse portage._fs_encoding where applicable.
Zac Medico [Fri, 14 Aug 2009 23:04:05 +0000 (23:04 -0000)]
Use portage._fs_encoding where applicable.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Fri, 14 Aug 2009 22:57:44 +0000 (22:57 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers).
Zac Medico [Fri, 14 Aug 2009 22:27:01 +0000 (22:27 -0000)]
Update imports to import portage.os (with unicode wrappers).

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

15 years agoInside dblink.treewalk(), handle filenames with incorrect encoding like we
Zac Medico [Fri, 14 Aug 2009 22:11:34 +0000 (22:11 -0000)]
Inside dblink.treewalk(), handle filenames with incorrect encoding like we
do after src_install. The check needs to be repeated here for binary
packages (it's inexpensive since we call os.walk() here anyway).

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

15 years agoIn dblink._unmerge_pkgfiles(), if the package appears to have been merged
Zac Medico [Fri, 14 Aug 2009 21:19:04 +0000 (21:19 -0000)]
In dblink._unmerge_pkgfiles(), if the package appears to have been merged
with a different value of sys.getfilesystemencoding(), fall back to utf_8
if appropriate.

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

15 years agoRevert r14042 since we're not going to use it.
Zac Medico [Fri, 14 Aug 2009 21:01:09 +0000 (21:01 -0000)]
Revert r14042 since we're not going to use it.

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

15 years agoAdd a clean_world attribute.
Zac Medico [Fri, 14 Aug 2009 20:29:06 +0000 (20:29 -0000)]
Add a clean_world attribute.

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

15 years agoDon't hold references to config instances, since all that's really needed
Zac Medico [Fri, 14 Aug 2009 20:15:32 +0000 (20:15 -0000)]
Don't hold references to config instances, since all that's really needed
is $ROOT.

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

15 years agoRename and log installed files that don't conform to portage._merge_encoding
Zac Medico [Fri, 14 Aug 2009 10:59:30 +0000 (10:59 -0000)]
Rename and log installed files that don't conform to portage._merge_encoding
(equal to sys.getfilesystemencoding()).

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

15 years ago_merge_encoding = sys.getfilesystemencoding()
Zac Medico [Fri, 14 Aug 2009 08:24:25 +0000 (08:24 -0000)]
_merge_encoding = sys.getfilesystemencoding()

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

15 years agoUse portage._merge_encoding to encode/decode all filenames during
Zac Medico [Fri, 14 Aug 2009 08:19:59 +0000 (08:19 -0000)]
Use portage._merge_encoding to encode/decode all filenames during
merge/unmerge operations.

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

15 years agoDon't 'del sys.modules["selinux"]' when selinux support isn't enabled in
Zac Medico [Fri, 14 Aug 2009 07:01:32 +0000 (07:01 -0000)]
Don't 'del sys.modules["selinux"]' when selinux support isn't enabled in
the portage config, because that just assumes too much.

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

15 years agoMake sure portage.selinux and _selinux exist, even when import fails, so
Zac Medico [Fri, 14 Aug 2009 06:57:13 +0000 (06:57 -0000)]
Make sure portage.selinux and _selinux exist, even when import fails, so
that 'from portage import selinux' never fails inside vartree.py.

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

15 years agoAdd an 'encoding' parameter to movefile(), so that we can make it obey
Zac Medico [Fri, 14 Aug 2009 06:41:08 +0000 (06:41 -0000)]
Add an 'encoding' parameter to movefile(), so that we can make it obey
sys.getfilesystemencoding() when called for merge/unmerge.

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

15 years agoDon't use the unicode-wrapped os and shutil modules here since
Zac Medico [Fri, 14 Aug 2009 06:08:27 +0000 (06:08 -0000)]
Don't use the unicode-wrapped os and shutil modules here since
the whole _selinux module itself will be wrapped.

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

15 years agoReplace the selinux.spawn() function with a spawn_wrapper() function and
Zac Medico [Fri, 14 Aug 2009 06:02:56 +0000 (06:02 -0000)]
Replace the selinux.spawn() function with a spawn_wrapper() function and
use it inside portage._spawn_fetch() and portage.spawn().

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

15 years agoMake _ensure_default_encoding() provide a fallback for the codec returned
Zac Medico [Fri, 14 Aug 2009 05:45:08 +0000 (05:45 -0000)]
Make _ensure_default_encoding() provide a fallback for the codec returned
by sys.getfilesystemencoding().

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

15 years agoUse portage's selinux wrapper module for mkdir calls.
Zac Medico [Fri, 14 Aug 2009 05:30:38 +0000 (05:30 -0000)]
Use portage's selinux wrapper module for mkdir calls.

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

15 years agoCreate portage._merge_encoding and a corresponding _os_merge wrapper that
Zac Medico [Thu, 13 Aug 2009 22:17:05 +0000 (22:17 -0000)]
Create portage._merge_encoding and a corresponding _os_merge wrapper that
will later be used for all the merge code.

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

15 years agoAdd support for an 'encoding' parameter to _unicode_module_wrapper(). This
Zac Medico [Thu, 13 Aug 2009 21:33:21 +0000 (21:33 -0000)]
Add support for an 'encoding' parameter to _unicode_module_wrapper(). This
will allow creation of specialize wrappers for merge/unmerge, in case the
value of sys.getfilesystemencoding() is something other than utf_8.

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

15 years agoAdd support for unwrapped/overridden attributes in _unicode_module_wrapper().
Zac Medico [Thu, 13 Aug 2009 19:50:50 +0000 (19:50 -0000)]
Add support for unwrapped/overridden attributes in _unicode_module_wrapper().

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

15 years agoAdd py3k support to _unicode_decode().
Zac Medico [Thu, 13 Aug 2009 19:34:07 +0000 (19:34 -0000)]
Add py3k support to _unicode_decode().

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

15 years agoBug #281355 - Handle IndexError inside reconstruct_eclasses().
Zac Medico [Thu, 13 Aug 2009 18:10:07 +0000 (18:10 -0000)]
Bug #281355 - Handle IndexError inside reconstruct_eclasses().

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

15 years agoSet a limit of 30 backtracking attempts, since it's possible for it to
Zac Medico [Wed, 12 Aug 2009 09:04:48 +0000 (09:04 -0000)]
Set a limit of 30 backtracking attempts, since it's possible for it to
go out of control and take an unreasonable amount of time.

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

15 years agoUse r'' for regex.
Zac Medico [Wed, 12 Aug 2009 08:48:19 +0000 (08:48 -0000)]
Use r'' for regex.

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

15 years agoBug #281133 - Fix the here-document code inside run_checks() to properly
Zac Medico [Wed, 12 Aug 2009 08:45:43 +0000 (08:45 -0000)]
Bug #281133 - Fix the here-document code inside run_checks() to properly
detect the end of a here-document when it is indented by whitespace.

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

15 years agoUse _unicode_encode() and _unicode_decode() where appropriate.
Zac Medico [Wed, 12 Aug 2009 07:57:27 +0000 (07:57 -0000)]
Use _unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoCall _ensure_default_encoding() ASAP since writemsg() might not work without
Zac Medico [Wed, 12 Aug 2009 07:31:31 +0000 (07:31 -0000)]
Call _ensure_default_encoding() ASAP since writemsg() might not work without
it.

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

15 years agoUse _unicode_encode() where appropriate.
Zac Medico [Wed, 12 Aug 2009 07:28:03 +0000 (07:28 -0000)]
Use _unicode_encode() where appropriate.

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

15 years agoUse a single sys.hexversion conditional for both _unicode_func_wrapper()
Zac Medico [Wed, 12 Aug 2009 07:15:44 +0000 (07:15 -0000)]
Use a single sys.hexversion conditional for both _unicode_func_wrapper()
and _unicode_module_wrapper().

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Wed, 12 Aug 2009 00:54:03 +0000 (00:54 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoImplement ObjectProxy.__int__().
Zac Medico [Wed, 12 Aug 2009 00:26:26 +0000 (00:26 -0000)]
Implement ObjectProxy.__int__().

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

15 years agoShow a traceback when spawn() fails.
Zac Medico [Wed, 12 Aug 2009 00:19:32 +0000 (00:19 -0000)]
Show a traceback when spawn() fails.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Tue, 11 Aug 2009 23:59:41 +0000 (23:59 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Tue, 11 Aug 2009 23:43:10 +0000 (23:43 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Tue, 11 Aug 2009 23:00:42 +0000 (23:00 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoWrap portage.data.lchown() for unicode support in python-2.x.
Zac Medico [Tue, 11 Aug 2009 22:05:11 +0000 (22:05 -0000)]
Wrap portage.data.lchown() for unicode support in python-2.x.

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

15 years agoFilter ACCEPT_PROPERTIES from the ebuild environment, since unlike
Zac Medico [Tue, 11 Aug 2009 21:40:46 +0000 (21:40 -0000)]
Filter ACCEPT_PROPERTIES from the ebuild environment, since unlike
ACCEPT_LICENSE (used by check_license in eutils.eclass), ACCEPT_PROPERTIES
should never be needed in the ebuild environment.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Tue, 11 Aug 2009 21:30:36 +0000 (21:30 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoTemporarily delete the os and shutil imports, to ensure that only the
Zac Medico [Tue, 11 Aug 2009 20:54:12 +0000 (20:54 -0000)]
Temporarily delete the os and shutil imports, to ensure that only the
wrapped versions are imported by portage internals.

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

15 years agoAdd ACCEPT_PROPERTIES variable which has default value * and can be set in
Mounir Lamouri [Tue, 11 Aug 2009 20:45:35 +0000 (20:45 -0000)]
Add ACCEPT_PROPERTIES variable which has default value * and can be set in
make.conf or /etc/portage/package.properties.
If ACCEPT_PROPERTIES doesn't match ebuild PROPERTIES, the ebuild is masked.

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

15 years agoUpdate imports to import portage.os and portage.shutil (with unicode
Zac Medico [Tue, 11 Aug 2009 20:28:23 +0000 (20:28 -0000)]
Update imports to import portage.os and portage.shutil (with unicode
wrappers), and use _unicode_encode() where appropriate.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Tue, 11 Aug 2009 08:32:14 +0000 (08:32 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Tue, 11 Aug 2009 08:07:04 +0000 (08:07 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoUpdate imports to import portage.os (with unicode wrappers), and use
Zac Medico [Tue, 11 Aug 2009 07:47:27 +0000 (07:47 -0000)]
Update imports to import portage.os (with unicode wrappers), and use
_unicode_encode() and _unicode_decode() where appropriate.

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

15 years agoAvoid using the wrapped os.read(), in order to avoid differing behavior
Zac Medico [Tue, 11 Aug 2009 07:03:04 +0000 (07:03 -0000)]
Avoid using the wrapped os.read(), in order to avoid differing behavior
between python-2.x (with wrapper) and py3k (without wrapper). This sort
of mismatch only applies to os functions that return raw bytes under py3k,
rather than unicode.

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

15 years agoFix breakage from previous commit.
Zac Medico [Tue, 11 Aug 2009 01:41:04 +0000 (01:41 -0000)]
Fix breakage from previous commit.

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

15 years agoFix unicode support for compatibility with the new wrapped os module, and
Zac Medico [Tue, 11 Aug 2009 01:38:07 +0000 (01:38 -0000)]
Fix unicode support for compatibility with the new wrapped os module, and
use _unicode_decode() and _unicode_encode() where appropriate.

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

15 years agoBug #280460 - Wrap portage.os with unicode encode/decode wrappers.
Zac Medico [Mon, 10 Aug 2009 22:54:01 +0000 (22:54 -0000)]
Bug #280460 - Wrap portage.os with unicode encode/decode wrappers.

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

15 years agoThis is an unused commandline interface to xpak.xpak().
Zac Medico [Mon, 10 Aug 2009 22:28:00 +0000 (22:28 -0000)]
This is an unused commandline interface to xpak.xpak().

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

15 years agoAdd portage ImportError sys.path insertion.
Zac Medico [Mon, 10 Aug 2009 22:24:37 +0000 (22:24 -0000)]
Add portage ImportError sys.path insertion.

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

15 years agoThis is an uneeded script for parsing ldd output.
Zac Medico [Mon, 10 Aug 2009 22:20:40 +0000 (22:20 -0000)]
This is an uneeded script for parsing ldd output.

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

15 years agoThis definitely obsolete.
Zac Medico [Mon, 10 Aug 2009 22:17:47 +0000 (22:17 -0000)]
This definitely obsolete.

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

15 years agoThis is an obsolete shell script for applying package moves vardb entry.
Zac Medico [Mon, 10 Aug 2009 22:15:44 +0000 (22:15 -0000)]
This is an obsolete shell script for applying package moves vardb entry.

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

15 years agoThis script is obsolete since manifest 2.
Zac Medico [Mon, 10 Aug 2009 22:11:57 +0000 (22:11 -0000)]
This script is obsolete since manifest 2.

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

15 years agoThis old script does checksums on installed files. People use equery for this
Zac Medico [Mon, 10 Aug 2009 22:05:36 +0000 (22:05 -0000)]
This old script does checksums on installed files. People use equery for this
now.

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

15 years agoThis is a commandline interface to pkgsplit() that probably isn't used by
Zac Medico [Mon, 10 Aug 2009 21:56:23 +0000 (21:56 -0000)]
This is a commandline interface to pkgsplit() that probably isn't used by
anyone. We can add a function like this to portageq.

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

15 years agoThis is an old emerge profiling script that probably doesn't work.
Zac Medico [Mon, 10 Aug 2009 21:54:48 +0000 (21:54 -0000)]
This is an old emerge profiling script that probably doesn't work.

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

15 years agoAdd portage ImportError sys.path insertion.
Zac Medico [Mon, 10 Aug 2009 21:47:30 +0000 (21:47 -0000)]
Add portage ImportError sys.path insertion.

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

15 years agoBug #280460 - Wrap os and os.path modules with unicode encode/decode
Zac Medico [Mon, 10 Aug 2009 21:28:04 +0000 (21:28 -0000)]
Bug #280460 - Wrap os and os.path modules with unicode encode/decode
wrappers for python-2.x.

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

15 years agoBug #280998 - Misc selinux fixes. Thanks to Chris PeBenito
Zac Medico [Mon, 10 Aug 2009 17:33:00 +0000 (17:33 -0000)]
Bug #280998 - Misc selinux fixes. Thanks to Chris PeBenito
<pebenito@gentoo.org> for this patch.

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

15 years agoOpen new items in text mode (unicode), and safely handle unicode in news item v2.2_rc38
Zac Medico [Mon, 10 Aug 2009 08:15:05 +0000 (08:15 -0000)]
Open new items in text mode (unicode), and safely handle unicode in news item
names.

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

15 years agoBug #280962 - Fix broken path normalization inside
Zac Medico [Mon, 10 Aug 2009 07:12:28 +0000 (07:12 -0000)]
Bug #280962 - Fix broken path normalization inside
StaticFileSet.multiBuilder().

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

15 years agoUse writemsg_stdout() for safe unicode output of --list-sets.
Zac Medico [Mon, 10 Aug 2009 07:03:10 +0000 (07:03 -0000)]
Use writemsg_stdout() for safe unicode output of --list-sets.

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

15 years agoFix PreservedLibsRegistry.pruneNonExisting() to work with $ROOT.
Zac Medico [Mon, 10 Aug 2009 03:00:09 +0000 (03:00 -0000)]
Fix PreservedLibsRegistry.pruneNonExisting() to work with $ROOT.

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

15 years agoDon't trigger the --root-deps code for removal actions such as --prune and
Zac Medico [Mon, 10 Aug 2009 02:53:48 +0000 (02:53 -0000)]
Don't trigger the --root-deps code for removal actions such as --prune and
--depclean.

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

15 years agoIn calc_depclean(), sort packages that are displayed due to being pulled
Zac Medico [Mon, 10 Aug 2009 02:45:31 +0000 (02:45 -0000)]
In calc_depclean(), sort packages that are displayed due to being pulled
in by link level dependencies.

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

15 years agoTweak $ROOT handling inside depgraph._add_pkg_deps() for removal actions,
Zac Medico [Mon, 10 Aug 2009 02:38:02 +0000 (02:38 -0000)]
Tweak $ROOT handling inside depgraph._add_pkg_deps() for removal actions,
so --with-bdeps works correctly with --depclean and --prune.

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

15 years agoInside calc_depclean(), use LinkageMap.findConsumers() for checking
Zac Medico [Mon, 10 Aug 2009 02:31:51 +0000 (02:31 -0000)]
Inside calc_depclean(), use LinkageMap.findConsumers() for checking
intersection of files being removed with providers in the LinkageMap (a
KeyError is raised when there is no intersection).

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

15 years agoRemove unused import. v2.2_rc37
Zac Medico [Sun, 9 Aug 2009 23:17:23 +0000 (23:17 -0000)]
Remove unused import.

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