portage.git
15 years agoBug #282505 - Fix unicode handling for package moves in binary packages. v2.2_rc40
Zac Medico [Mon, 24 Aug 2009 01:27:20 +0000 (01:27 -0000)]
Bug #282505 - Fix unicode handling for package moves in binary packages.

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

15 years agoBug #282306 - Inside dblink._match_contents(), fall back to utf_8 encoding if
Zac Medico [Mon, 24 Aug 2009 00:29:34 +0000 (00:29 -0000)]
Bug #282306 - Inside dblink._match_contents(), fall back to utf_8 encoding if
a path cannot be encoded under the user's chosen encoding. This should
fix the traceback shown in bug #281199, comment #26.

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

15 years agoAdd a LIVEVCS.unmasked category for ebuilds that have non-empty KEYWORDS and
Zac Medico [Sun, 23 Aug 2009 16:38:24 +0000 (16:38 -0000)]
Add a LIVEVCS.unmasked category for ebuilds that have non-empty KEYWORDS and
are not masked in the global package.mask. Thanks to Diego E. Pettenò for
the suggestion.

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

15 years agoBug #282306 - Inside LinkageMap._ObjectKey._generate_object_key(), fall back
Zac Medico [Sun, 23 Aug 2009 07:40:57 +0000 (07:40 -0000)]
Bug #282306 - Inside LinkageMap._ObjectKey._generate_object_key(), fall back
to utf_8 encoding if a path cannot be encoded under the user's chosen
encoding. This should complete the fix for the traceback shown in bug #282115,
comment #6.

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

15 years agoBug #282306 - Inside dblink._find_libs_to_preserve(), fall back to utf_8
Zac Medico [Sun, 23 Aug 2009 07:25:40 +0000 (07:25 -0000)]
Bug #282306 - Inside dblink._find_libs_to_preserve(), fall back to utf_8
encoding if a path cannot be encoded under the user's chosen encoding. This
fixes the traceback shown in bug 282115, comment #6.

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

15 years agoIn Scheduler._schedule_tasks_imp(), add uninstall operations to the front
Zac Medico [Sat, 22 Aug 2009 23:44:59 +0000 (23:44 -0000)]
In Scheduler._schedule_tasks_imp(), add uninstall operations to the front
of the merge queue.

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

15 years agoMake Scheduler._choose_pkg() prefer uninstall operations when available.
Zac Medico [Sat, 22 Aug 2009 23:11:23 +0000 (23:11 -0000)]
Make Scheduler._choose_pkg() prefer uninstall operations when available.

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

15 years agoSupport package.provided directory.
Arfrever Frehtes Taifersar Arahesis [Sat, 22 Aug 2009 19:41:37 +0000 (19:41 -0000)]
Support package.provided directory.

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

15 years agoBug #282269, comment #2 - Avoid potential UnicodeEncodeError when writing
Zac Medico [Sat, 22 Aug 2009 19:28:35 +0000 (19:28 -0000)]
Bug #282269, comment #2 - Avoid potential UnicodeEncodeError when writing
to sys.stderr inside xtermTitle().

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

15 years agoBug #282306 - Inside dblink._security_check(), fall back to utf_8 encoding
Zac Medico [Sat, 22 Aug 2009 19:05:32 +0000 (19:05 -0000)]
Bug #282306 - Inside dblink._security_check(), fall back to utf_8 encoding
it a path cannot be encoded under the user's chosen encoding.

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

15 years agoBug #282269 - Avoid str() calls with overlay paths, which can trigger
Zac Medico [Sat, 22 Aug 2009 07:52:43 +0000 (07:52 -0000)]
Bug #282269 - Avoid str() calls with overlay paths, which can trigger
UnicodeEncodeError in python-2.x.

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

15 years agoAdd some --debug output for backtracking. Also, remove unused imports. v2.2_rc39
Zac Medico [Fri, 21 Aug 2009 22:35:11 +0000 (22:35 -0000)]
Add some --debug output for backtracking. Also, remove unused imports.

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

15 years agoAdd support for --keep-going=n so that it can be disabled on the command line
Zac Medico [Fri, 21 Aug 2009 22:04:51 +0000 (22:04 -0000)]
Add support for --keep-going=n so that it can be disabled on the command line
after it's been enabled in EMERGE_DEFAULT_OPTS.

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

15 years agoAdd support for --selective=n, so it can be used to remove selective
Zac Medico [Fri, 21 Aug 2009 21:37:08 +0000 (21:37 -0000)]
Add support for --selective=n, so it can be used to remove selective
behavior that may have been implied by some other option like --update.

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

15 years agoAvoid potential empty lines in warnings about missing SONAMEs or NEEDED entries....
Arfrever Frehtes Taifersar Arahesis [Fri, 21 Aug 2009 20:37:46 +0000 (20:37 -0000)]
Avoid potential empty lines in warnings about missing SONAMEs or NEEDED entries. Found by Zac Medico.

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

15 years agoNote that package.* and use.* as directories is only supported since
Zac Medico [Fri, 21 Aug 2009 20:14:34 +0000 (20:14 -0000)]
Note that package.* and use.* as directories is only supported since
portage-2.1.6.7, and it is not included in PMS at this time.

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

15 years agoRename QA_NEEDED to QA_DT_NEEDED.
Arfrever Frehtes Taifersar Arahesis [Fri, 21 Aug 2009 18:13:46 +0000 (18:13 -0000)]
Rename QA_NEEDED to QA_DT_NEEDED.

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

15 years agoImprove an example. Patch by Jeremy Olexa.
Arfrever Frehtes Taifersar Arahesis [Fri, 21 Aug 2009 17:57:29 +0000 (17:57 -0000)]
Improve an example. Patch by Jeremy Olexa.

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

15 years agoAdd support for QA_SONAME variable (bug #281964). Add support for QA_NEEDED variable.
Arfrever Frehtes Taifersar Arahesis [Fri, 21 Aug 2009 17:13:53 +0000 (17:13 -0000)]
Add support for QA_SONAME variable (bug #281964). Add support for QA_NEEDED variable.

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

15 years agoSupport QA_DT_HASH_${ARCH} and QA_PRESTRIPPED_${ARCH} (bug #271416).
Arfrever Frehtes Taifersar Arahesis [Fri, 21 Aug 2009 14:52:01 +0000 (14:52 -0000)]
Support QA_DT_HASH_${ARCH} and QA_PRESTRIPPED_${ARCH} (bug #271416).

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

15 years agoReplace _content_encoding, _fs_encoding, and _merge_encoding with direct
Zac Medico [Fri, 21 Aug 2009 04:46:31 +0000 (04:46 -0000)]
Replace _content_encoding, _fs_encoding, and _merge_encoding with direct
usage of _encodings.

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

15 years agoFix typo.
Zac Medico [Fri, 21 Aug 2009 04:43:15 +0000 (04:43 -0000)]
Fix typo.

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

15 years agoUse _encodings where appropriate and add _encodings['stdio'] for stdout
Zac Medico [Fri, 21 Aug 2009 04:03:15 +0000 (04:03 -0000)]
Use _encodings where appropriate and add _encodings['stdio'] for stdout
encoding.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Fri, 21 Aug 2009 02:42:45 +0000 (02:42 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Fri, 21 Aug 2009 01:47:21 +0000 (01:47 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Fri, 21 Aug 2009 00:23:44 +0000 (00:23 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Fri, 21 Aug 2009 00:06:10 +0000 (00:06 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Thu, 20 Aug 2009 23:09:43 +0000 (23:09 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Thu, 20 Aug 2009 23:00:46 +0000 (23:00 -0000)]
Use _encodings where appropriate.

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

15 years agoFix portage.5 man page to document the fact that some files in profiles directory...
Arfrever Frehtes Taifersar Arahesis [Thu, 20 Aug 2009 22:34:25 +0000 (22:34 -0000)]
Fix portage.5 man page to document the fact that some files in profiles directory can be directories.

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

15 years agoFix typo from previous commit.
Zac Medico [Wed, 19 Aug 2009 07:45:25 +0000 (07:45 -0000)]
Fix typo from previous commit.

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

15 years agoIf sys.getdefaultencoding() returns None (this can happen if python is built
Zac Medico [Wed, 19 Aug 2009 07:42:31 +0000 (07:42 -0000)]
If sys.getdefaultencoding() returns None (this can happen if python is built
with USE=build, in stage 1), fall back to _encodings['merge'] = 'ascii'.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Wed, 19 Aug 2009 07:22:05 +0000 (07:22 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Wed, 19 Aug 2009 07:13:53 +0000 (07:13 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings where appropriate.
Zac Medico [Wed, 19 Aug 2009 06:55:17 +0000 (06:55 -0000)]
Use _encodings where appropriate.

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

15 years agoUse _encodings['repo.content'] for decoding profiles.desc, ChangeLog,
Zac Medico [Wed, 19 Aug 2009 06:41:21 +0000 (06:41 -0000)]
Use _encodings['repo.content'] for decoding profiles.desc, ChangeLog,
metadata.xml, and ebuilds.

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

15 years agoUse portage.os and _encodings where appropriate.
Zac Medico [Wed, 19 Aug 2009 06:21:40 +0000 (06:21 -0000)]
Use portage.os and _encodings where appropriate.

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

15 years agoRemove unused os import.
Zac Medico [Wed, 19 Aug 2009 06:05:55 +0000 (06:05 -0000)]
Remove unused os import.

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

15 years agoUse portage.os and _encodings where appropriate.
Zac Medico [Wed, 19 Aug 2009 06:04:13 +0000 (06:04 -0000)]
Use portage.os and _encodings where appropriate.

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

15 years agoUse portage.os and _encodings where appropriate.
Zac Medico [Wed, 19 Aug 2009 05:46:28 +0000 (05:46 -0000)]
Use portage.os and _encodings where appropriate.

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

15 years agoUse portage.os and _encodings['fs'] where appropriate.
Zac Medico [Tue, 18 Aug 2009 21:24:37 +0000 (21:24 -0000)]
Use portage.os and _encodings['fs'] where appropriate.

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

15 years agoUse errors='backslashreplace' instead of 'replace' for the default
Zac Medico [Tue, 18 Aug 2009 21:10:43 +0000 (21:10 -0000)]
Use errors='backslashreplace' instead of 'replace' for the default
_unicode_encode() argument ('replace' substitutes '?', which is not
as useful).

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

15 years agoReplace the _{content,fs,merge}_encoding attributes with an _encodings dict.
Zac Medico [Tue, 18 Aug 2009 21:01:06 +0000 (21:01 -0000)]
Replace the _{content,fs,merge}_encoding attributes with an _encodings dict.

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

15 years agoUse _content_encoding and _fs_encoding, and use strict unicode exceptions
Zac Medico [Tue, 18 Aug 2009 20:31:56 +0000 (20:31 -0000)]
Use _content_encoding and _fs_encoding, and use strict unicode exceptions
where appropriate.

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

15 years agoUse the new portage.output._init(config_root) function.
Zac Medico [Tue, 18 Aug 2009 07:19:29 +0000 (07:19 -0000)]
Use the new portage.output._init(config_root) function.

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

15 years agoUse _content_encoding where appropriate.
Zac Medico [Tue, 18 Aug 2009 07:05:18 +0000 (07:05 -0000)]
Use _content_encoding where appropriate.

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

15 years agoDon't wrap os.popen().
Zac Medico [Tue, 18 Aug 2009 06:55:22 +0000 (06:55 -0000)]
Don't wrap os.popen().

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

15 years agoBug #270866 - Validate News-Item-Format headers.
Zac Medico [Tue, 18 Aug 2009 06:43:01 +0000 (06:43 -0000)]
Bug #270866 - Validate News-Item-Format headers.

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

15 years agoUse _content_encoding and _fs_encoding where appropriate. Also, enable
Zac Medico [Tue, 18 Aug 2009 06:28:29 +0000 (06:28 -0000)]
Use _content_encoding and _fs_encoding where appropriate. Also, enable
strict exceptions for unicode encoding failures.

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

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