Zac Medico [Thu, 3 Sep 2009 03:27:19 +0000 (03:27 -0000)]
Fix typo from previous commit.
svn path=/main/trunk/; revision=14182
Zac Medico [Thu, 3 Sep 2009 03:25:26 +0000 (03:25 -0000)]
Bug #283513 - Do not allow --noreplace together with --emptytree since it
results in bogus masking messages.
svn path=/main/trunk/; revision=14181
Zac Medico [Thu, 3 Sep 2009 01:06:52 +0000 (01:06 -0000)]
Use _unicode_decode() on the string retunred from time.strftime(), in order
to avoid a potential UnicodeDecodeError later. Thanks to Markus Duft
<mduft@gentoo.org> for reporting.
svn path=/main/trunk/; revision=14180
Arfrever Frehtes Taifersar Arahesis [Tue, 1 Sep 2009 01:33:45 +0000 (01:33 -0000)]
Remove reference to GRP_STAGE23_USE (bug #283358).
svn path=/main/trunk/; revision=14176
Arfrever Frehtes Taifersar Arahesis [Tue, 1 Sep 2009 01:26:08 +0000 (01:26 -0000)]
Add dev-util/gperf to list of suspected run-time dependencies (bug #283357).
svn path=/main/trunk/; revision=14175
Zac Medico [Mon, 31 Aug 2009 07:56:28 +0000 (07:56 -0000)]
Bug #283292 - Fix FindPortdir() to prevent OSError: [Errno 2] from stat when
$PWD is unset. Thanks to Jonathan Callen <en.ABCD@gmail.com> for this patch.
svn path=/main/trunk/; revision=14174
Zac Medico [Sun, 30 Aug 2009 20:09:05 +0000 (20:09 -0000)]
Fix broken indentation from previous commits.
svn path=/main/trunk/; revision=14173
Zac Medico [Sun, 30 Aug 2009 20:05:57 +0000 (20:05 -0000)]
Bug #283223 - Don't call str() on unicode strings inside _db_escape_string(),
since it can trigger a UnicodeEncodeError in python-2.x.
svn path=/main/trunk/; revision=14172
Zac Medico [Sun, 30 Aug 2009 10:36:51 +0000 (10:36 -0000)]
Bug #283223 - Don't call str() inside _db_escape_string(), since it's
redundant and it can trigger a UnicodeEncodeError in python-2.x.
svn path=/main/trunk/; revision=14171
Arfrever Frehtes Taifersar Arahesis [Sat, 29 Aug 2009 18:50:42 +0000 (18:50 -0000)]
Many packages use setuptools at run-time, so remove it from list of suspected run-time dependencies.
svn path=/main/trunk/; revision=14170
Zac Medico [Sat, 29 Aug 2009 07:58:22 +0000 (07:58 -0000)]
Use KeyValuePairFileLoader intead on getconfig(), since getconfig() is too
strict about variable names now.
svn path=/main/trunk/; revision=14169
Zac Medico [Sat, 29 Aug 2009 07:03:21 +0000 (07:03 -0000)]
Use KeyValuePairFileLoader instead of getconfig() for /etc/portage/modules,
since getconfig() is too strict about variable names now. Thanks to Arfrever
for reporting.
svn path=/main/trunk/; revision=14168
Zac Medico [Fri, 28 Aug 2009 09:04:42 +0000 (09:04 -0000)]
Bug #281834 - In getconfig(), do not allow definition of variables that have
invalid names according to shell standards (such as names containing hyphens).
svn path=/main/trunk/; revision=14167
Zac Medico [Thu, 27 Aug 2009 09:08:45 +0000 (09:08 -0000)]
Improve logic for bug #278729.
svn path=/main/trunk/; revision=14166
Zac Medico [Thu, 27 Aug 2009 07:14:37 +0000 (07:14 -0000)]
Bug #278729 - Inside dep_zapdeps(), account for USE dependencies in some
cases where USE settings can adversely affect || preference evaluation. This
requires invalid atoms to be dropped inside _expand_new_virtuals() since we
only want real Atom instances inside dep_zapdeps(). Unlike previous attempts
to solve this bug, cases such as || ( foo[a] foo[b] ) should now be correctly
handled.
svn path=/main/trunk/; revision=14165
Zac Medico [Thu, 27 Aug 2009 06:10:37 +0000 (06:10 -0000)]
Fix the code from bug #275796 to ensure that choices always go into the
preferred_in_graph slot when appropriate.
svn path=/main/trunk/; revision=14164
Zac Medico [Thu, 27 Aug 2009 05:05:00 +0000 (05:05 -0000)]
Fix tar_contents() to handle UnicodeEncodeError by falling back to utf_8 if
appropriate.
svn path=/main/trunk/; revision=14163
Zac Medico [Thu, 27 Aug 2009 03:55:33 +0000 (03:55 -0000)]
Use plain ascii encoding for this file, in order to avoid error messages like
this which building stages (happens when python is built with USE=build):
* Byte compiling python modules for python-2.6 .. ...
Compiling //usr/lib64/portage/pym/portage/cache/ebuild_xattr.py ...
SyntaxError: ('unknown encoding: UTF8', ('//usr/lib64/portage/pym/portage/cache/
ebuild_xattr.py', 0, 0, None))
svn path=/main/trunk/; revision=14162
Zac Medico [Wed, 26 Aug 2009 13:58:23 +0000 (13:58 -0000)]
Fix mkdir() to call the local setfscreate() with strict returncode checking.
Thanks to Chris PeBenito <pebenito@gentoo.org> for this patch.
svn path=/main/trunk/; revision=14161
Zac Medico [Tue, 25 Aug 2009 05:09:25 +0000 (05:09 -0000)]
Inside depgraph._show_unsatisfied_dep(), show reasons for packages masked due
to backtracking.
svn path=/main/trunk/; revision=14155
Zac Medico [Mon, 24 Aug 2009 21:37:30 +0000 (21:37 -0000)]
Show log paths when displaying the list of failed packages for --keep-going.
svn path=/main/trunk/; revision=14154
Fabian Groffen [Mon, 24 Aug 2009 10:15:54 +0000 (10:15 -0000)]
make sure we can deal with arches like x86-fbsd, like is done in bin/ebuild-helpers/prepstrip
svn path=/main/trunk/; revision=14151
Fabian Groffen [Mon, 24 Aug 2009 09:32:56 +0000 (09:32 -0000)]
remove FIXME, since zmedico fixed it
svn path=/main/trunk/; revision=14140
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Zac Medico [Fri, 21 Aug 2009 04:43:15 +0000 (04:43 -0000)]
Fix typo.
svn path=/main/trunk/; revision=14112
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
Zac Medico [Fri, 21 Aug 2009 02:42:45 +0000 (02:42 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14110
Zac Medico [Fri, 21 Aug 2009 01:47:21 +0000 (01:47 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14109
Zac Medico [Fri, 21 Aug 2009 00:23:44 +0000 (00:23 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14108
Zac Medico [Fri, 21 Aug 2009 00:06:10 +0000 (00:06 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14107
Zac Medico [Thu, 20 Aug 2009 23:09:43 +0000 (23:09 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14106
Zac Medico [Thu, 20 Aug 2009 23:00:46 +0000 (23:00 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14105
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
Zac Medico [Wed, 19 Aug 2009 07:45:25 +0000 (07:45 -0000)]
Fix typo from previous commit.
svn path=/main/trunk/; revision=14103
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
Zac Medico [Wed, 19 Aug 2009 07:22:05 +0000 (07:22 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14101
Zac Medico [Wed, 19 Aug 2009 07:13:53 +0000 (07:13 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14100
Zac Medico [Wed, 19 Aug 2009 06:55:17 +0000 (06:55 -0000)]
Use _encodings where appropriate.
svn path=/main/trunk/; revision=14099
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
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
Zac Medico [Wed, 19 Aug 2009 06:05:55 +0000 (06:05 -0000)]
Remove unused os import.
svn path=/main/trunk/; revision=14096
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
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
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
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
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
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
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
Zac Medico [Tue, 18 Aug 2009 07:05:18 +0000 (07:05 -0000)]
Use _content_encoding where appropriate.
svn path=/main/trunk/; revision=14088
Zac Medico [Tue, 18 Aug 2009 06:55:22 +0000 (06:55 -0000)]
Don't wrap os.popen().
svn path=/main/trunk/; revision=14087
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
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
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
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
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
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
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
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
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
Zac Medico [Mon, 17 Aug 2009 21:56:16 +0000 (21:56 -0000)]
Test the edge case.
svn path=/main/trunk/; revision=14077
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
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
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
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
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
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
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
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
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
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
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
Zac Medico [Sat, 15 Aug 2009 08:20:31 +0000 (08:20 -0000)]
Fix typo.
svn path=/main/trunk/; revision=14064
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
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
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
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
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
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
Zac Medico [Fri, 14 Aug 2009 23:54:45 +0000 (23:54 -0000)]
Fix broken _selinux_merge definition.
svn path=/main/trunk/; revision=14057
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