portage.git
15 years agoDefine basestring as str when Python 3 is used.
Arfrever Frehtes Taifersar Arahesis [Mon, 21 Sep 2009 12:44:37 +0000 (12:44 -0000)]
Define basestring as str when Python 3 is used.

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

15 years agoFix all remaining SyntaxErrors with Python 3.
Arfrever Frehtes Taifersar Arahesis [Mon, 21 Sep 2009 12:16:07 +0000 (12:16 -0000)]
Fix all remaining SyntaxErrors with Python 3.

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

15 years agoUse filter() and zip() instead of itertools.ifilter() and itertools.izip() for compat...
Arfrever Frehtes Taifersar Arahesis [Mon, 21 Sep 2009 11:49:13 +0000 (11:49 -0000)]
Use filter() and zip() instead of itertools.ifilter() and itertools.izip() for compatibility with Python 3.
(2to3-3.1 -f itertools -f itertools_imports -nw ${FILES})

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

15 years agoMake Atom.__init__ call the base class constructor, though it doesn't seem
Zac Medico [Mon, 21 Sep 2009 02:06:49 +0000 (02:06 -0000)]
Make Atom.__init__ call the base class constructor, though it doesn't seem
to matter.

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

15 years agoWhen generating config.prevmaskdict, only call the Atom constructor when
Zac Medico [Mon, 21 Sep 2009 02:04:47 +0000 (02:04 -0000)]
When generating config.prevmaskdict, only call the Atom constructor when
necessary.

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

15 years agoFix AtomArg constructor calls to pass in Atom instances, so the constructor
Zac Medico [Mon, 21 Sep 2009 01:54:01 +0000 (01:54 -0000)]
Fix AtomArg constructor calls to pass in Atom instances, so the constructor
never has to construct one.

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

15 years agoTread blockers as invalid.
Zac Medico [Mon, 21 Sep 2009 01:43:35 +0000 (01:43 -0000)]
Tread blockers as invalid.

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

15 years agoFix redundant Atom construtor call in _show_unsatisfied_dep().
Zac Medico [Mon, 21 Sep 2009 01:20:49 +0000 (01:20 -0000)]
Fix redundant Atom construtor call in _show_unsatisfied_dep().

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

15 years agoRemove virtuals from the cache because they're unused since portage-2.1.6
Zac Medico [Sun, 20 Sep 2009 23:31:28 +0000 (23:31 -0000)]
Remove virtuals from the cache because they're unused since portage-2.1.6
and it won't hurt older portage.

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

15 years agoFix typos in http.client imports.
Zac Medico [Sun, 20 Sep 2009 23:14:08 +0000 (23:14 -0000)]
Fix typos in http.client imports.

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

15 years agoFix typo from previous commit.
Zac Medico [Sun, 20 Sep 2009 23:01:21 +0000 (23:01 -0000)]
Fix typo from previous commit.

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

15 years agoFix depgraph._validate_blockers() so that it doesn't do prohibited Atom(Atom)
Zac Medico [Sun, 20 Sep 2009 22:59:04 +0000 (22:59 -0000)]
Fix depgraph._validate_blockers() so that it doesn't do prohibited Atom(Atom)
constructor calls.

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

15 years agoAdd fallback in ImportError for io.StringIO. This is needed for python-2.6
Zac Medico [Sun, 20 Sep 2009 22:45:32 +0000 (22:45 -0000)]
Add fallback in ImportError for io.StringIO. This is needed for python-2.6
with USE=build since io imports threading which imports thread which is
unavailable.

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

15 years agoAdd support in ConsoleStyleFile.write() for unicode encoding when writing to
Zac Medico [Sun, 20 Sep 2009 22:23:58 +0000 (22:23 -0000)]
Add support in ConsoleStyleFile.write() for unicode encoding when writing to
stdout/stderr in python-2.x.

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

15 years agoMisc unicode fixes for repoman.
Zac Medico [Sun, 20 Sep 2009 22:08:22 +0000 (22:08 -0000)]
Misc unicode fixes for repoman.

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

15 years agoUse _unicode_encode() to ensure that only unicode strings are passed into
Zac Medico [Sun, 20 Sep 2009 20:00:57 +0000 (20:00 -0000)]
Use _unicode_encode() to ensure that only unicode strings are passed into
io.StringIO text streams.

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

15 years agoMake Atom inherit from str. Thanks to Marat Radchenko
Zac Medico [Sun, 20 Sep 2009 19:34:34 +0000 (19:34 -0000)]
Make Atom inherit from str. Thanks to Marat Radchenko
<marat@slonopotamus.org> for this patch from bug #276813.

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

15 years agoMake _unicode_module_wrapper cache wrappers and reuse them. Thanks to
Zac Medico [Sun, 20 Sep 2009 18:54:57 +0000 (18:54 -0000)]
Make _unicode_module_wrapper cache wrappers and reuse them. Thanks to
Marat Radchenko <marat@slonopotamus.org> for this patch from bug #276813.

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

15 years agoIn doebuild_environment(), detect if setcpv() hasn't been called properly,
Zac Medico [Sun, 20 Sep 2009 18:38:00 +0000 (18:38 -0000)]
In doebuild_environment(), detect if setcpv() hasn't been called properly,
and call it if necessary (mainly for api consumers).

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

15 years agoAdd back a line which I erroneously removed when committing the patch for
Zac Medico [Sun, 20 Sep 2009 18:13:06 +0000 (18:13 -0000)]
Add back a line which I erroneously removed when committing the patch for
bug 203733. Thanks to Alexis Ballier <aballier@g.o> for reporting the related
KeyError.

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

15 years agoFix position of imports from __future__.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 16:48:13 +0000 (16:48 -0000)]
Fix position of imports from __future__.

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

15 years agoSupport print() function with Python 2 in more files.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 16:41:30 +0000 (16:41 -0000)]
Support print() function with Python 2 in more files.

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

15 years agoUpdate system imports for compatibility with Python 3.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 16:22:08 +0000 (16:22 -0000)]
Update system imports for compatibility with Python 3.

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

15 years agoUpdate syntax of numbers in some files which were missing in previous commit.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 12:39:22 +0000 (12:39 -0000)]
Update syntax of numbers in some files which were missing in previous commit.

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

15 years agoUpdate syntax of numbers for compatibility with Python 3.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 11:47:45 +0000 (11:47 -0000)]
Update syntax of numbers for compatibility with Python 3.
(2to3-3.1 -f numliterals -nw ${FILES})

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

15 years agoSupport print() function with Python 2 in some files.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 11:28:14 +0000 (11:28 -0000)]
Support print() function with Python 2 in some files.

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

15 years agoUpdate syntax of calls to print() for compatibility with Python 3.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 11:08:30 +0000 (11:08 -0000)]
Update syntax of calls to print() for compatibility with Python 3.
(2to3-3.1 -f print -nw ${FILES})

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

15 years agoUpdate syntax of 'except' statements for compatibility with Python 3.
Arfrever Frehtes Taifersar Arahesis [Sun, 20 Sep 2009 10:57:44 +0000 (10:57 -0000)]
Update syntax of 'except' statements for compatibility with Python 3.
(2to3-3.1 -f except -nw ${FILES})

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

15 years agoBug #285637 - Fix NameError exception triggered by InvalidAtom in
Zac Medico [Sun, 20 Sep 2009 06:56:46 +0000 (06:56 -0000)]
Bug #285637 - Fix NameError exception triggered by InvalidAtom in
grabfile_package().

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

15 years agoAdd isinstance(mydep, Atom) checks to the dep_* functions since we don't use a v2.2_rc41
Zac Medico [Sat, 19 Sep 2009 23:05:24 +0000 (23:05 -0000)]
Add isinstance(mydep, Atom) checks to the dep_* functions since we don't use a
metaclass to do that anymore (due to performance).

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

15 years agoFix config.setinst() to add Atom instances to the provider lists instead of
Zac Medico [Sat, 19 Sep 2009 21:30:08 +0000 (21:30 -0000)]
Fix config.setinst() to add Atom instances to the provider lists instead of
plain str.

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

15 years agoRevert accidental changes _unicode_module_wrapper.__getattribute__ from
Zac Medico [Sat, 19 Sep 2009 20:14:25 +0000 (20:14 -0000)]
Revert accidental changes _unicode_module_wrapper.__getattribute__ from
previous commit.

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

15 years agoRemove obsolete InvalidAtom handler in _add_pkg_dep_string().
Zac Medico [Sat, 19 Sep 2009 20:10:56 +0000 (20:10 -0000)]
Remove obsolete InvalidAtom handler in _add_pkg_dep_string().

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

15 years agoAvoid lots of redundant Atom constructor calls. Thanks to Marat Radchenko
Zac Medico [Sat, 19 Sep 2009 17:05:52 +0000 (17:05 -0000)]
Avoid lots of redundant Atom constructor calls. Thanks to Marat Radchenko
<marat@slonopotamus.org> for the initial patch from bug #276813.

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

15 years agoFix _expand_new_virtuals() to preserve USE deps in atoms for new-style
Zac Medico [Sat, 19 Sep 2009 14:57:18 +0000 (14:57 -0000)]
Fix _expand_new_virtuals() to preserve USE deps in atoms for new-style
virtuals, and update the corresponding depgraph code.

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

15 years agoUse a dict for Package.metadata, because it's faster. Thanks to Marat
Zac Medico [Sat, 19 Sep 2009 12:58:52 +0000 (12:58 -0000)]
Use a dict for Package.metadata, because it's faster. Thanks to Marat
Radchenko <marat@slonopotamus.org> for this patch from bug #276813.

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

15 years agoAtom optimizations. Remove the metaclass and cache since it just slows it
Zac Medico [Fri, 18 Sep 2009 15:18:34 +0000 (15:18 -0000)]
Atom optimizations. Remove the metaclass and cache since it just slows it
down. Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch.

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

15 years agoUpdate documentation of inherit. Reported by Jeremy Olexa.
Arfrever Frehtes Taifersar Arahesis [Tue, 15 Sep 2009 21:39:57 +0000 (21:39 -0000)]
Update documentation of inherit. Reported by Jeremy Olexa.

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

15 years agoFix broken virtual depth code from previous commit.
Zac Medico [Mon, 14 Sep 2009 13:44:53 +0000 (13:44 -0000)]
Fix broken virtual depth code from previous commit.

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

15 years agoAdd support in depgraph._add_pkg_dep_string() for adding indirect virtual
Zac Medico [Mon, 14 Sep 2009 13:35:01 +0000 (13:35 -0000)]
Add support in depgraph._add_pkg_dep_string() for adding indirect virtual
deps to the graph. This takes advantage of circular dependency avoidance
that's done by dep_zapdeps, while avoiding the dependency graph distortion
reported in bug #283795.

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

15 years agoMake depgraph._select_atoms() return a dict, in order to separate selected
Zac Medico [Mon, 14 Sep 2009 12:51:31 +0000 (12:51 -0000)]
Make depgraph._select_atoms() return a dict, in order to separate selected
direct deps from indirect virtual deps.

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

15 years agoWhen _expand_new_virtuals() is called by repoman, skip expansion of new-style
Zac Medico [Mon, 14 Sep 2009 11:18:21 +0000 (11:18 -0000)]
When _expand_new_virtuals() is called by repoman, skip expansion of new-style
virtuals.

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

15 years agoReimplement the code from bug #283795 so that indirect deps are preserved
Zac Medico [Mon, 14 Sep 2009 11:05:16 +0000 (11:05 -0000)]
Reimplement the code from bug #283795 so that indirect deps are preserved
for later use. TODO: Write code to add selected indirect virtual deps to
the graph. This will take advantage of circular dependency avoidance that's
done by dep_zapdeps.

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

15 years agoSimplify cpv_getkey() by just calling dep_getkey('=' + mycpv).
Zac Medico [Mon, 14 Sep 2009 08:24:30 +0000 (08:24 -0000)]
Simplify cpv_getkey() by just calling dep_getkey('=' + mycpv).

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

15 years agoMake dep_getcpv() use Atom, and fall back to legacy code for backward compat.
Zac Medico [Mon, 14 Sep 2009 08:11:22 +0000 (08:11 -0000)]
Make dep_getcpv() use Atom, and fall back to legacy code for backward compat.

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

15 years agoInsice match_from_list(), use remove_slot() instead of dep_getcpv() where
Zac Medico [Mon, 14 Sep 2009 07:59:47 +0000 (07:59 -0000)]
Insice match_from_list(), use remove_slot() instead of dep_getcpv() where
appropriate.

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

15 years agoUse a regular expression for cpv_getkey(), and fall back to legacy code if
Zac Medico [Mon, 14 Sep 2009 07:52:45 +0000 (07:52 -0000)]
Use a regular expression for cpv_getkey(), and fall back to legacy code if
no match is found.

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

15 years agoMake get_operator() use Atom, and remove unnecessary reflection code from
Zac Medico [Mon, 14 Sep 2009 07:02:18 +0000 (07:02 -0000)]
Make get_operator() use Atom, and remove unnecessary reflection code from
dep_getkey(). Thanks to Marat Radchenko <marat@slonopotamus.org> for
suggestions.

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

15 years agoMake isspecific() use the Atom class and fall back to legacy code if the
Zac Medico [Mon, 14 Sep 2009 06:49:01 +0000 (06:49 -0000)]
Make isspecific() use the Atom class and fall back to legacy code if the
atom is invalid. Also, optimize called isjustname() legacy code to only
check the last 2 components.

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

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