portage.git
15 years agoUse the Atom class to implement dep_getkey(), and fall back to legacy code
Zac Medico [Mon, 14 Sep 2009 06:02:36 +0000 (06:02 -0000)]
Use the Atom class to implement dep_getkey(), and fall back to legacy code
when necessary for backward compatibility.

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

15 years agoAdd more test cases.
Zac Medico [Mon, 14 Sep 2009 05:54:39 +0000 (05:54 -0000)]
Add more test cases.

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

15 years agoSimplify isvalidatom() to simply use the Atom class. Thanks to Marat
Zac Medico [Mon, 14 Sep 2009 05:51:28 +0000 (05:51 -0000)]
Simplify isvalidatom() to simply use the Atom class. Thanks to Marat
Radchenko <marat@slonopotamus.org> for the suggestion.

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

15 years agoSimplify the _pkg regex and fix validation for some cases by using the
Zac Medico [Mon, 14 Sep 2009 05:46:21 +0000 (05:46 -0000)]
Simplify the _pkg regex and fix validation for some cases by using the
_version regex to match unwanted version-like components which can not
be at the end of a _pkg match. For example
isvalidatom('app-doc/php-docs-20071125-r2') now correctly returns False.

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

15 years agoBug #240656 - Unmerge broken symlinks where a directory was expected.
Zac Medico [Mon, 14 Sep 2009 03:32:30 +0000 (03:32 -0000)]
Bug #240656 - Unmerge broken symlinks where a directory was expected.
(merged from branches/prefix r14248)

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

15 years agoSimlify the Atom regex. Thanks to Marat Radchenko <marat@slonopotamus.org>
Zac Medico [Mon, 14 Sep 2009 02:45:33 +0000 (02:45 -0000)]
Simlify the Atom regex. Thanks to Marat Radchenko <marat@slonopotamus.org>
for this patch.

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

15 years agoUse cpv_getkey() instead of dep_getkey() where appropriate.
Zac Medico [Sun, 13 Sep 2009 00:07:50 +0000 (00:07 -0000)]
Use cpv_getkey() instead of dep_getkey() where appropriate.

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

15 years agoMake the Atom constructor use regular expression match groups for
Zac Medico [Sun, 13 Sep 2009 00:01:18 +0000 (00:01 -0000)]
Make the Atom constructor use regular expression match groups for
initialization. Thanks to Marat Radchenko <marat@slonopotamus.org> for this
patch.

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

15 years agoFix docs for isjustname() since it doesn't raise InvalidAtom now.
Zac Medico [Sat, 12 Sep 2009 23:21:32 +0000 (23:21 -0000)]
Fix docs for isjustname() since it doesn't raise InvalidAtom now.

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

15 years agoAdd backward compatibility to isjustname(), so the tests don't fail.
Zac Medico [Sat, 12 Sep 2009 23:18:56 +0000 (23:18 -0000)]
Add backward compatibility to isjustname(), so the tests don't fail.

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

15 years agoAdd tests for the Atom class.
Zac Medico [Sat, 12 Sep 2009 22:52:19 +0000 (22:52 -0000)]
Add tests for the Atom class.

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

15 years agoFix bug in _expand_new_virtuals() reported by Arfrever:
Zac Medico [Sat, 12 Sep 2009 21:24:44 +0000 (21:24 -0000)]
Fix bug in _expand_new_virtuals() reported by Arfrever:
TypeError: coercing to Unicode: need string or buffer, Atom found

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

15 years agoUse isjustname() where appropriate.
Zac Medico [Sat, 12 Sep 2009 18:10:03 +0000 (18:10 -0000)]
Use isjustname() where appropriate.

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

15 years agoFix isjustname docstring to have a valid atom in the example.
Zac Medico [Sat, 12 Sep 2009 17:51:44 +0000 (17:51 -0000)]
Fix isjustname docstring to have a valid atom in the example.

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

15 years agoReimplement isjustname() using the Atom class. Thanks to Marat Radchenko
Zac Medico [Sat, 12 Sep 2009 17:47:58 +0000 (17:47 -0000)]
Reimplement isjustname() using the Atom class. Thanks to Marat Radchenko
<marat@slonopotamus.org> for the suggestion.

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

15 years agoIn config.getvirtuals(), save Atom instances in order to avoid revalidation.
Zac Medico [Sat, 12 Sep 2009 17:26:32 +0000 (17:26 -0000)]
In config.getvirtuals(), save Atom instances in order to avoid revalidation.
Also, fix cpv_expand() to handle Atom instances from config.getvirtuals().

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

15 years agoMake dbapi.move_ent() take advantage of Atom instances when validating
Zac Medico [Sat, 12 Sep 2009 16:29:23 +0000 (16:29 -0000)]
Make dbapi.move_ent() take advantage of Atom instances when validating
arguments.

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

15 years agoAdd missing InvalidAtom import.
Zac Medico [Sat, 12 Sep 2009 16:20:41 +0000 (16:20 -0000)]
Add missing InvalidAtom import.

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

15 years agoMake parse_updates() and update_dbentry() use Atom instances.
Zac Medico [Sat, 12 Sep 2009 16:09:40 +0000 (16:09 -0000)]
Make parse_updates() and update_dbentry() use Atom instances.

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

15 years agoFix bad assumptions.
Zac Medico [Sat, 12 Sep 2009 15:29:09 +0000 (15:29 -0000)]
Fix bad assumptions.

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

15 years agoFix poor assumptions.
Zac Medico [Sat, 12 Sep 2009 15:17:08 +0000 (15:17 -0000)]
Fix poor assumptions.

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

15 years agoFix bugs and poor assumptions.
Zac Medico [Sat, 12 Sep 2009 15:06:02 +0000 (15:06 -0000)]
Fix bugs and poor assumptions.

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

15 years agoUpdate grabdict_package and grabfile_package calling code to take advantage
Zac Medico [Sat, 12 Sep 2009 14:43:27 +0000 (14:43 -0000)]
Update grabdict_package and grabfile_package calling code to take advantage
of Atom instances, and convert *atom from 'packages' to a normal Atom instance
when it's stored in prevmaskdict.

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

15 years agoMake grabfile_package() accept *atom only for files named 'packages' since
Zac Medico [Sat, 12 Sep 2009 14:37:45 +0000 (14:37 -0000)]
Make grabfile_package() accept *atom only for files named 'packages' since
they are not valid in any other files.

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

15 years agoMake grabdict_package() and grabfile_package() return Atom instances when
Zac Medico [Sat, 12 Sep 2009 13:13:05 +0000 (13:13 -0000)]
Make grabdict_package() and grabfile_package() return Atom instances when
possible, in order to avoid revalidation.

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

15 years agoImplement Atom.__copy__ and __deepcopy__ to return self, since instances are
Zac Medico [Sat, 12 Sep 2009 13:10:59 +0000 (13:10 -0000)]
Implement Atom.__copy__ and __deepcopy__ to return self, since instances are
immutable.

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

15 years agoBug #257660 - Handle directories that are unlisted in Entries, which is normal
Zac Medico [Sat, 12 Sep 2009 01:36:28 +0000 (01:36 -0000)]
Bug #257660 - Handle directories that are unlisted in Entries, which is normal
when checked out without -P. Thanks to Christian Ruppert <idl0r@gentoo.org>
for this patch.

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

15 years agoAdd test cases for operators with missing version component.
Zac Medico [Tue, 8 Sep 2009 18:38:59 +0000 (18:38 -0000)]
Add test cases for operators with missing version component.

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

15 years agoAdd test case for * operator with missing =.
Zac Medico [Tue, 8 Sep 2009 18:15:38 +0000 (18:15 -0000)]
Add test case for * operator with missing =.

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

15 years agosimplify atom regex (winning even more performance) and turns it in verbose
Zac Medico [Tue, 8 Sep 2009 18:11:53 +0000 (18:11 -0000)]
simplify atom regex (winning even more performance) and turns it in verbose
mode with comments. Added more corner case tests. Thanks to Marat Radchenko
<marat@slonopotamus.org> for this patch from bug #276813.

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

15 years agoFix false positives in gcc QA with debug mode some more. Thanks again to
Zac Medico [Tue, 8 Sep 2009 09:11:35 +0000 (09:11 -0000)]
Fix false positives in gcc QA with debug mode some more. Thanks again to
Amit Dor-Shifer <amitds@oversi.com> for reporting.

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

15 years agoReimplement isspecific() using a single regular expression match. Thanks to
Zac Medico [Tue, 8 Sep 2009 08:10:10 +0000 (08:10 -0000)]
Reimplement isspecific() using a single regular expression match. Thanks to
Marat Radchenko <marat@slonopotamus.org> for this patch.

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

15 years agoFix isvalidatom() to check the 'must not end in' clause from PMS 2.1.2.
Zac Medico [Tue, 8 Sep 2009 08:07:03 +0000 (08:07 -0000)]
Fix isvalidatom() to check the 'must not end in' clause from PMS 2.1.2.
Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch.

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

15 years agoFix code from previous commit so it's guaranteed to always properly reset
Zac Medico [Tue, 8 Sep 2009 01:51:26 +0000 (01:51 -0000)]
Fix code from previous commit so it's guaranteed to always properly reset
debug state.

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

15 years agoIn debug mode, avoid showing gcc QA search strings in the trace, so they won't
Zac Medico [Tue, 8 Sep 2009 01:44:24 +0000 (01:44 -0000)]
In debug mode, avoid showing gcc QA search strings in the trace, so they won't
trigger false positives. Thanks to Amit Dor-Shifer <amitds@oversi.com> for
reporting.

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

15 years agoReimplement isvalidatom() to use a single regular expression match. Thanks
Zac Medico [Mon, 7 Sep 2009 22:39:21 +0000 (22:39 -0000)]
Reimplement isvalidatom() to use a single regular expression match. Thanks
to Marat Radchenko <marat@slonopotamus.org> for this patch from bug #276813.

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

15 years agoBug #283795 - Make dep_check() filter out expanded indirect virual deps after
Zac Medico [Mon, 7 Sep 2009 04:23:26 +0000 (04:23 -0000)]
Bug #283795 - Make dep_check() filter out expanded indirect virual deps after
they are no longer needed, in order to avoid distortion of the depgraph.

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

15 years agoOptimize catpkgsplit() by creating a tuple directly instead of generating it
Zac Medico [Mon, 7 Sep 2009 02:58:00 +0000 (02:58 -0000)]
Optimize catpkgsplit() by creating a tuple directly instead of generating it
from a list. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this
patch.

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

15 years agoIn catpkgsplit(), use split('/', 1) since there should never be more than on
Zac Medico [Mon, 7 Sep 2009 02:54:36 +0000 (02:54 -0000)]
In catpkgsplit(), use split('/', 1) since there should never be more than on
slash to split.

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

15 years agoHandle AttributeError instead of using getattr. Thanks to Marat Radchenko
Zac Medico [Mon, 7 Sep 2009 02:41:01 +0000 (02:41 -0000)]
Handle AttributeError instead of using getattr. Thanks to Marat Radchenko
<slonopotamusorama@gmail.com> for reporting.

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

15 years agoIn display_news_notification(), use the exising vartree instance to populate
Zac Medico [Sun, 6 Sep 2009 10:18:27 +0000 (10:18 -0000)]
In display_news_notification(), use the exising vartree instance to populate
settings.treeVirtuals, to avoid having a temporary one instantiated. Thanks
to Marat Radchenko <slonopotamusorama@gmail.com> for reporting.

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

15 years agoRemove unused vardbapi._counter_hash() method.
Zac Medico [Sun, 6 Sep 2009 08:02:32 +0000 (08:02 -0000)]
Remove unused vardbapi._counter_hash() method.

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

15 years agoDocument ACCEPT_PROPERTIES and package.properties.
Zac Medico [Sun, 6 Sep 2009 00:31:10 +0000 (00:31 -0000)]
Document ACCEPT_PROPERTIES and package.properties.

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

15 years agoDocument ACCEPT_LICENSE and package.license.
Zac Medico [Sun, 6 Sep 2009 00:15:27 +0000 (00:15 -0000)]
Document ACCEPT_LICENSE and package.license.

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

15 years agoAdd ACCEPT_LICENSE and ACCEPT_PROPERTIES to the Packages file header.
Zac Medico [Sat, 5 Sep 2009 22:40:18 +0000 (22:40 -0000)]
Add ACCEPT_LICENSE and ACCEPT_PROPERTIES to the Packages file header.

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

15 years agoAdd a vardbapi._pkgs_changed attribute to use instead of PORTAGE_COUNTER_HASH
Zac Medico [Sat, 5 Sep 2009 22:25:05 +0000 (22:25 -0000)]
Add a vardbapi._pkgs_changed attribute to use instead of PORTAGE_COUNTER_HASH
for emerge to check whether any packages have been added/removed. This is an
optimization, since vardbapi._counter_hash() can be somewhat slow on embedded
systems. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for
reporting.

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

15 years agoInside Scheduler._check_manifests(), display all broken manifests instead of
Zac Medico [Sat, 5 Sep 2009 22:06:46 +0000 (22:06 -0000)]
Inside Scheduler._check_manifests(), display all broken manifests instead of
returning after the first one. Thanks to Vlastimil Babka <caster@g.o> for the
suggestion.

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

15 years agoUse _unicode_decode() on the string returned from time.strftime(), in order
Zac Medico [Sat, 5 Sep 2009 22:01:43 +0000 (22:01 -0000)]
Use _unicode_decode() on the string returned 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=14201

15 years agoDEPCACHE_PATH is not used with ROOT at all, so move it out of the target_root variabl...
Fabian Groffen [Sat, 5 Sep 2009 13:33:29 +0000 (13:33 -0000)]
DEPCACHE_PATH is not used with ROOT at all, so move it out of the target_root variable group

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

15 years agopym/portage/sets/files.py: use WORLD_FILE instead of manual reconstruction
Fabian Groffen [Sat, 5 Sep 2009 11:13:33 +0000 (11:13 -0000)]
pym/portage/sets/files.py: use WORLD_FILE instead of manual reconstruction
pym/portage/const.py: introduce WORLD_SETS_FILE variable
pym/portage/sets/files.py: use new WORLD_SETS_FILE var
pym/_emerge/unmerge.py: likewise

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

15 years agoreorganise const.py to have logical grouping based on usage
Fabian Groffen [Sat, 5 Sep 2009 10:53:44 +0000 (10:53 -0000)]
reorganise const.py to have logical grouping based on usage

grouped into use with config_root, target_root or nothing, made all
variables that are used with config_root or target_root not start with a
leading slash, such that they can be directly used with os.path.join
(which they should because of xxxx_root).

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

15 years agoDEPRECATED_PROFILE_FILE is derived from PROFILE_PATH which has no leading slash
Fabian Groffen [Sat, 5 Sep 2009 10:44:58 +0000 (10:44 -0000)]
DEPRECATED_PROFILE_FILE is derived from PROFILE_PATH which has no leading slash

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

15 years agoadd note that this file does not seem to deal with ROOT at all
Fabian Groffen [Sat, 5 Sep 2009 10:35:02 +0000 (10:35 -0000)]
add note that this file does not seem to deal with ROOT at all

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

15 years agoPRIVATE_PATH has no leading slash (like all other uses of this var assume)
Fabian Groffen [Sat, 5 Sep 2009 10:28:46 +0000 (10:28 -0000)]
PRIVATE_PATH has no leading slash (like all other uses of this var assume)

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

15 years agoconsistently use CACHE_PATH with target_root, this commit needs a separate soon to...
Fabian Groffen [Sat, 5 Sep 2009 10:25:30 +0000 (10:25 -0000)]
consistently use CACHE_PATH with target_root, this commit needs a separate soon to be done commit of pym/portage/const.py to work correctly

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

15 years agoFix usage of VDB_PATH
Fabian Groffen [Sat, 5 Sep 2009 10:00:22 +0000 (10:00 -0000)]
Fix usage of VDB_PATH

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

15 years agoRemove unnecessary redundant dict lookup at the beginning of catpkgsplit().
Zac Medico [Sat, 5 Sep 2009 07:39:51 +0000 (07:39 -0000)]
Remove unnecessary redundant dict lookup at the beginning of catpkgsplit().
Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoBug #282808 - Handle a potential KeyError inside PollScheduler._poll_loop()
Zac Medico [Sat, 5 Sep 2009 01:26:36 +0000 (01:26 -0000)]
Bug #282808 - Handle a potential KeyError inside PollScheduler._poll_loop()
when _poll_event_queue contains an event for a file descriptor that has
already been unregistered.

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

15 years agoFix documentation of some QA_* variables.
Arfrever Frehtes Taifersar Arahesis [Fri, 4 Sep 2009 23:18:40 +0000 (23:18 -0000)]
Fix documentation of some QA_* variables.

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

15 years agoFix typo from previous commit.
Zac Medico [Thu, 3 Sep 2009 03:27:19 +0000 (03:27 -0000)]
Fix typo from previous commit.

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

15 years agoBug #283513 - Do not allow --noreplace together with --emptytree since it
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

15 years agoUse _unicode_decode() on the string retunred from time.strftime(), in order
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

15 years agoRemove reference to GRP_STAGE23_USE (bug #283358).
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

15 years agoAdd dev-util/gperf to list of suspected run-time dependencies (bug #283357).
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

15 years agoBug #283292 - Fix FindPortdir() to prevent OSError: [Errno 2] from stat when
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

15 years agoFix broken indentation from previous commits.
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

15 years agoBug #283223 - Don't call str() on unicode strings inside _db_escape_string(),
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

15 years agoBug #283223 - Don't call str() inside _db_escape_string(), since it's
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

15 years agoMany packages use setuptools at run-time, so remove it from list of suspected run...
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

15 years agoUse KeyValuePairFileLoader intead on getconfig(), since getconfig() is too
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

15 years agoUse KeyValuePairFileLoader instead of getconfig() for /etc/portage/modules,
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

15 years agoBug #281834 - In getconfig(), do not allow definition of variables that have
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

15 years agoImprove logic for bug #278729.
Zac Medico [Thu, 27 Aug 2009 09:08:45 +0000 (09:08 -0000)]
Improve logic for bug #278729.

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

15 years agoBug #278729 - Inside dep_zapdeps(), account for USE dependencies in some
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

15 years agoFix the code from bug #275796 to ensure that choices always go into the
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

15 years agoFix tar_contents() to handle UnicodeEncodeError by falling back to utf_8 if
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

15 years agoUse plain ascii encoding for this file, in order to avoid error messages like
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

15 years agoFix mkdir() to call the local setfscreate() with strict returncode checking.
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

15 years agoInside depgraph._show_unsatisfied_dep(), show reasons for packages masked due
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

15 years agoShow log paths when displaying the list of failed packages for --keep-going.
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

15 years agomake sure we can deal with arches like x86-fbsd, like is done in bin/ebuild-helpers...
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

15 years agoremove FIXME, since zmedico fixed it
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

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