portage.git
14 years agoImport portage.StringIO for ImportError handling. (trunk r15326)
Zac Medico [Tue, 2 Mar 2010 20:08:56 +0000 (20:08 -0000)]
Import portage.StringIO for ImportError handling. (trunk r15326)

svn path=/main/branches/2.1.7/; revision=15559

14 years agoAdd a portdbapi.getRepositoryName() method which is the inverse of
Zac Medico [Tue, 2 Mar 2010 20:08:44 +0000 (20:08 -0000)]
Add a portdbapi.getRepositoryName() method which is the inverse of
getRepositoryPath(). (trunk r15325)

svn path=/main/branches/2.1.7/; revision=15558

14 years agoFix deprecated reference to portdbapi.mysettings. (trunk r15324)
Zac Medico [Tue, 2 Mar 2010 20:08:16 +0000 (20:08 -0000)]
Fix deprecated reference to portdbapi.mysettings. (trunk r15324)

svn path=/main/branches/2.1.7/; revision=15557

14 years agoAdd an optional 'categories' parameter to portdbapi.cp_all(), for listing
Zac Medico [Tue, 2 Mar 2010 20:07:56 +0000 (20:07 -0000)]
Add an optional 'categories' parameter to portdbapi.cp_all(), for listing
a subset of categories. Thanks to dol-sen for the suggestion. (trunk r15323)

svn path=/main/branches/2.1.7/; revision=15556

14 years agoBug #303401 - Fix emerge.log disabling code that's been broken since
Zac Medico [Tue, 2 Mar 2010 20:07:40 +0000 (20:07 -0000)]
Bug #303401 - Fix emerge.log disabling code that's been broken since
portage-2.1.7 when the _emerge module got split up. (trunk r15322)

svn path=/main/branches/2.1.7/; revision=15555

14 years agoBug #303445 - Fix getmaskingreason() to reset comment state when looping to
Zac Medico [Tue, 2 Mar 2010 20:07:12 +0000 (20:07 -0000)]
Bug #303445 - Fix getmaskingreason() to reset comment state when looping to
the next package.mask file. (trunk r15321)

svn path=/main/branches/2.1.7/; revision=15554

14 years agoMake verify_all() do checksums in sorted order by hash name. (trunk r15318)
Zac Medico [Tue, 2 Mar 2010 20:06:58 +0000 (20:06 -0000)]
Make verify_all() do checksums in sorted order by hash name. (trunk r15318)

svn path=/main/branches/2.1.7/; revision=15553

14 years agoBug #295197 - Output a newline after valid user input is received.
Zac Medico [Tue, 2 Mar 2010 20:06:50 +0000 (20:06 -0000)]
Bug #295197 - Output a newline after valid user input is received.
(trunk r15317)

svn path=/main/branches/2.1.7/; revision=15552

14 years agoUse Package.use.enabled where appropriate. (trunk r15316)
Zac Medico [Tue, 2 Mar 2010 20:06:37 +0000 (20:06 -0000)]
Use Package.use.enabled where appropriate. (trunk r15316)

svn path=/main/branches/2.1.7/; revision=15551

14 years agoUse stat rather than lstat since portage.fetch() creates symlinks when
Zac Medico [Tue, 2 Mar 2010 20:06:14 +0000 (20:06 -0000)]
Use stat rather than lstat since portage.fetch() creates symlinks when
PORTAGE_RO_DISTDIRS is used. (trunk r15315)

svn path=/main/branches/2.1.7/; revision=15550

14 years agoFix deprecated portdbapi.mysettings reference. (trunk r15314)
Zac Medico [Tue, 2 Mar 2010 20:06:07 +0000 (20:06 -0000)]
Fix deprecated portdbapi.mysettings reference. (trunk r15314)

svn path=/main/branches/2.1.7/; revision=15549

14 years agoMake sure the fetcher process correctly inherits PORTAGE_CONFIGROOT.
Zac Medico [Tue, 2 Mar 2010 20:05:48 +0000 (20:05 -0000)]
Make sure the fetcher process correctly inherits PORTAGE_CONFIGROOT.
(trunk r15313)

svn path=/main/branches/2.1.7/; revision=15548

14 years agoOptimize parallel-fetch for the case where all files are already fetched and
Zac Medico [Tue, 2 Mar 2010 20:05:30 +0000 (20:05 -0000)]
Optimize parallel-fetch for the case where all files are already fetched and
have the correct size. In this case we can avoid the expense of spawning
ebuild(1). (trunk r15312)

svn path=/main/branches/2.1.7/; revision=15547

14 years agoDeallocate config instance when necessary, to avoid memory leak when in
Zac Medico [Tue, 2 Mar 2010 20:05:10 +0000 (20:05 -0000)]
Deallocate config instance when necessary, to avoid memory leak when in
prefetch mode. (trunk r15311)

svn path=/main/branches/2.1.7/; revision=15546

14 years agoSimplify the conditional that triggers calculation of A and AA variables.
Zac Medico [Tue, 2 Mar 2010 20:05:00 +0000 (20:05 -0000)]
Simplify the conditional that triggers calculation of A and AA variables.
(trunk r15310)

svn path=/main/branches/2.1.7/; revision=15545

14 years agoClean up config incrementals handling. (trunk r15309)
Zac Medico [Tue, 2 Mar 2010 20:03:40 +0000 (20:03 -0000)]
Clean up config incrementals handling. (trunk r15309)

svn path=/main/branches/2.1.7/; revision=15544

14 years agoFix @module-rebuild to support $ROOT. (trunk r15308)
Zac Medico [Tue, 2 Mar 2010 20:03:23 +0000 (20:03 -0000)]
Fix @module-rebuild to support $ROOT. (trunk r15308)

svn path=/main/branches/2.1.7/; revision=15543

14 years agoBug #298141 - Make /etc/portage/sets relative to PORTAGE_CONFIGROOT. Thanks
Zac Medico [Tue, 2 Mar 2010 19:55:05 +0000 (19:55 -0000)]
Bug #298141 - Make /etc/portage/sets relative to PORTAGE_CONFIGROOT. Thanks
to Martin Gysel (bearsh) <m.gysel@gmx.ch> for this patch. (trunk r15307)

svn path=/main/branches/2.1.7/; revision=15542

14 years agoDeprecate pordbapi.mysettings since the portdbapi.settings alias is now
Zac Medico [Tue, 2 Mar 2010 19:51:44 +0000 (19:51 -0000)]
Deprecate pordbapi.mysettings since the portdbapi.settings alias is now
supported by stable portage. (trunk r15306)

svn path=/main/branches/2.1.7/; revision=15541

14 years agoValidate categories. (trunk r15305)
Zac Medico [Tue, 2 Mar 2010 19:51:33 +0000 (19:51 -0000)]
Validate categories. (trunk r15305)

svn path=/main/branches/2.1.7/; revision=15540

14 years agoBug #302937 - Handle declare -r without assignment. (trunk r15304)
Zac Medico [Tue, 2 Mar 2010 19:51:14 +0000 (19:51 -0000)]
Bug #302937 - Handle declare -r without assignment. (trunk r15304)

svn path=/main/branches/2.1.7/; revision=15539

14 years agoFix AttributeError when adjusting incrementals. Thanks to Jonathan Callen
Zac Medico [Tue, 2 Mar 2010 19:51:04 +0000 (19:51 -0000)]
Fix AttributeError when adjusting incrementals. Thanks to Jonathan Callen
<abcd@g.o> for reporting. (trunk r15303)

svn path=/main/branches/2.1.7/; revision=15538

14 years agoReverting r15293, it was actually not needed. (trunk r15298)
Zac Medico [Tue, 2 Mar 2010 19:50:48 +0000 (19:50 -0000)]
Reverting r15293, it was actually not needed. (trunk r15298)

svn path=/main/branches/2.1.7/; revision=15537

14 years agoIn __iter__, handle OSError from lstat in case a cache entry disappears.
Zac Medico [Tue, 2 Mar 2010 19:50:41 +0000 (19:50 -0000)]
In __iter__, handle OSError from lstat in case a cache entry disappears.
(trunk r15297)

svn path=/main/branches/2.1.7/; revision=15536

14 years agoMake __iter__ use list.pop() instead of pop(0), for greater efficiency.
Zac Medico [Tue, 2 Mar 2010 19:50:33 +0000 (19:50 -0000)]
Make __iter__ use list.pop() instead of pop(0), for greater efficiency.
(trunk r15296)

svn path=/main/branches/2.1.7/; revision=15535

14 years agoBug #302764 - Inside __iter__, only recurse 1 deep, in order to avoid
Zac Medico [Tue, 2 Mar 2010 19:50:25 +0000 (19:50 -0000)]
Bug #302764 - Inside __iter__, only recurse 1 deep, in order to avoid
iteration over entries from another nested cache instance. This can
happen if the user nests an overlay inside /usr/portage/local. Thanks
to Vlastimil Babka <caster@g.o> for this patch. (trunk r15295)

svn path=/main/branches/2.1.7/; revision=15534

14 years agoAvoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert <idl0r@g.o>
Zac Medico [Tue, 2 Mar 2010 19:50:13 +0000 (19:50 -0000)]
Avoid NameError when cwd is $FILESDIR. Thanks to Christian Ruppert <idl0r@g.o>
for reporting. (trunk r15294)

svn path=/main/branches/2.1.7/; revision=15533

14 years agoFix: change os.mkdir to os.makedirs in case of there are more than one directory...
Zac Medico [Tue, 2 Mar 2010 19:50:05 +0000 (19:50 -0000)]
Fix: change os.mkdir to os.makedirs in case of there are more than one directory depth missing.
According to docs.python.org, permissions may be not respected with os.makedirs... with some systems.
(trunk r15293)

svn path=/main/branches/2.1.7/; revision=15532

14 years agoShow a DeprecationWarning if the deprecated pordbapi constructor parameter
Zac Medico [Tue, 2 Mar 2010 19:49:50 +0000 (19:49 -0000)]
Show a DeprecationWarning if the deprecated pordbapi constructor parameter
is used incorrectly. (trunk r15292)

svn path=/main/branches/2.1.7/; revision=15531

14 years agofix flat_list cache backend
Zac Medico [Tue, 2 Mar 2010 19:49:42 +0000 (19:49 -0000)]
fix flat_list cache backend
looks like it was outdated wrt. template cache backend (trunk r15291)

svn path=/main/branches/2.1.7/; revision=15530

14 years agoDon't generate DeprecationWarning for portdbapi arguments. Wait until new
Zac Medico [Tue, 2 Mar 2010 19:49:35 +0000 (19:49 -0000)]
Don't generate DeprecationWarning for portdbapi arguments. Wait until new
portdbapi constructor is in stable portage first. (trunk r15290)

svn path=/main/branches/2.1.7/; revision=15529

14 years agoFix concatenation of list + tuple in Manifest._createManifestEntries().
Zac Medico [Tue, 2 Mar 2010 19:49:24 +0000 (19:49 -0000)]
Fix concatenation of list + tuple in Manifest._createManifestEntries().
(trunk r15289)

svn path=/main/branches/2.1.7/; revision=15528

14 years agoIn config._expandLicenseToken(), make sure traversed_groups is only initialized
Zac Medico [Tue, 2 Mar 2010 19:49:17 +0000 (19:49 -0000)]
In config._expandLicenseToken(), make sure traversed_groups is only initialized
when appropriate. (trunk r15288)

svn path=/main/branches/2.1.7/; revision=15527

14 years agoDefine __slots__ in all classes. (trunk r15287)
Zac Medico [Tue, 2 Mar 2010 19:49:07 +0000 (19:49 -0000)]
Define __slots__ in all classes. (trunk r15287)

svn path=/main/branches/2.1.7/; revision=15526

14 years agofix: python dbm module doesn't accept unicode as key (trunk r15286)
Zac Medico [Tue, 2 Mar 2010 19:48:56 +0000 (19:48 -0000)]
fix: python dbm module doesn't accept unicode as key (trunk r15286)

svn path=/main/branches/2.1.7/; revision=15525

14 years agoFor immutable config attributes, use shallow copy for speed and memory
Zac Medico [Tue, 2 Mar 2010 19:48:43 +0000 (19:48 -0000)]
For immutable config attributes, use shallow copy for speed and memory
conservation. (trunk r15285)

svn path=/main/branches/2.1.7/; revision=15524

14 years agoFor immutable config attributes, use shallow copy for speed and memory
Zac Medico [Tue, 2 Mar 2010 18:27:34 +0000 (18:27 -0000)]
For immutable config attributes, use shallow copy for speed and memory
conservation. (trunk r15284)

svn path=/main/branches/2.1.7/; revision=15523

14 years agoFor immutable config attributes, use shallow copy for speed and memory
Zac Medico [Tue, 2 Mar 2010 18:27:10 +0000 (18:27 -0000)]
For immutable config attributes, use shallow copy for speed and memory
conservation. (trunk r15283)

svn path=/main/branches/2.1.7/; revision=15522

14 years agoUse tuples instead of lists for immutability. (trunk r15282)
Zac Medico [Tue, 2 Mar 2010 18:26:46 +0000 (18:26 -0000)]
Use tuples instead of lists for immutability. (trunk r15282)

svn path=/main/branches/2.1.7/; revision=15521

14 years agoDeprecate the first parameter of the portdbapi constructor since it is always
Zac Medico [Tue, 2 Mar 2010 18:26:26 +0000 (18:26 -0000)]
Deprecate the first parameter of the portdbapi constructor since it is always
the same as mysettings['PORTDIR']. (trunk r15281)

svn path=/main/branches/2.1.7/; revision=15520

14 years agoFix code from r15278 for python3 unicode compatibility. (trunk r15280)
Zac Medico [Tue, 2 Mar 2010 18:26:05 +0000 (18:26 -0000)]
Fix code from r15278 for python3 unicode compatibility. (trunk r15280)

svn path=/main/branches/2.1.7/; revision=15519

14 years agoFix conditional logic for userpriv_groups intialization. (trunk r15279)
Zac Medico [Tue, 2 Mar 2010 18:25:32 +0000 (18:25 -0000)]
Fix conditional logic for userpriv_groups intialization. (trunk r15279)

svn path=/main/branches/2.1.7/; revision=15518

14 years agoBug #277902 - When excluding config files, instead of using an empty file as a
Zac Medico [Tue, 2 Mar 2010 18:24:31 +0000 (18:24 -0000)]
Bug #277902 - When excluding config files, instead of using an empty file as a
placeholder, use a file containing a comment like this:
# empty file because --include-config=n when `quickpkg` was used (trunk r15278)

svn path=/main/branches/2.1.7/; revision=15517

14 years agoDefine userpriv_groups earlier in order to avoid an AttributeError from
Zac Medico [Tue, 2 Mar 2010 18:23:08 +0000 (18:23 -0000)]
Define userpriv_groups earlier in order to avoid an AttributeError from
lazy import code. Thanks to antarus for reporting. (trunk r15277)

svn path=/main/branches/2.1.7/; revision=15516

14 years agoDon't ignore CVS/Entries.IO_error when not in commit mode. (trunk r15272) v2.1.7.17
Zac Medico [Fri, 29 Jan 2010 19:07:56 +0000 (19:07 -0000)]
Don't ignore CVS/Entries.IO_error when not in commit mode. (trunk r15272)

svn path=/main/branches/2.1.7/; revision=15273

14 years agoRemove code for svn.IO_error and bzr.IO_error categories since they don't
Zac Medico [Fri, 29 Jan 2010 18:53:35 +0000 (18:53 -0000)]
Remove code for svn.IO_error and bzr.IO_error categories since they don't
exist therefore and if this code had ever executed it would have raised
a KeyError. (trunk r15222)

svn path=/main/branches/2.1.7/; revision=15271

14 years agoEnable EAPI 3 and deprecate EAPI 3_pre2. (trunk r15221)
Zac Medico [Fri, 29 Jan 2010 18:53:23 +0000 (18:53 -0000)]
Enable EAPI 3 and deprecate EAPI 3_pre2. (trunk r15221)

svn path=/main/branches/2.1.7/; revision=15270

14 years agoShow the path of the lockfile when chown fails. Thanks to Jeremy Olexa
Zac Medico [Fri, 29 Jan 2010 18:53:15 +0000 (18:53 -0000)]
Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa
<darkside@g.o> for reporting. (trunk r15220)

svn path=/main/branches/2.1.7/; revision=15269

14 years agoIn portage.spawn(), apply group write permission to the log file. (trunk r15218)
Zac Medico [Fri, 29 Jan 2010 18:52:52 +0000 (18:52 -0000)]
In portage.spawn(), apply group write permission to the log file. (trunk r15218)

svn path=/main/branches/2.1.7/; revision=15268

14 years agoBug #300378 - Don't export FILESDIR to the 'depend' phase. (trunk r15217)
Zac Medico [Fri, 29 Jan 2010 18:52:44 +0000 (18:52 -0000)]
Bug #300378 - Don't export FILESDIR to the 'depend' phase. (trunk r15217)

svn path=/main/branches/2.1.7/; revision=15267

14 years agoMove the DOM unlink call to a finally block. (trunk r15216)
Zac Medico [Fri, 29 Jan 2010 18:52:36 +0000 (18:52 -0000)]
Move the DOM unlink call to a finally block. (trunk r15216)

svn path=/main/branches/2.1.7/; revision=15266

14 years agoFix AttributeError from has_versions for atoms with no USE deps. Thanks to
Zac Medico [Fri, 29 Jan 2010 18:52:28 +0000 (18:52 -0000)]
Fix AttributeError from has_versions for atoms with no USE deps. Thanks to
Arfrever for reporting. (trunk r15214)

svn path=/main/branches/2.1.7/; revision=15265

14 years agoFix typo in docstring. (trunk r15213)
Zac Medico [Fri, 29 Jan 2010 18:52:20 +0000 (18:52 -0000)]
Fix typo in docstring. (trunk r15213)

svn path=/main/branches/2.1.7/; revision=15264

14 years agoAdd an Atom.evaluate_conditionals() method and use where appropriate.
Zac Medico [Fri, 29 Jan 2010 18:52:04 +0000 (18:52 -0000)]
Add an Atom.evaluate_conditionals() method and use where appropriate.
(trunk r15212)

svn path=/main/branches/2.1.7/; revision=15263

14 years agoAdd support for evaluation of conditional USE atoms in has_version and
Zac Medico [Fri, 29 Jan 2010 18:51:56 +0000 (18:51 -0000)]
Add support for evaluation of conditional USE atoms in has_version and
best_version arguments, using the USE environment variable. (trunk r15211)

svn path=/main/branches/2.1.7/; revision=15262

14 years agoAdd a warning for built_with_use. Thanks to Petteri Räty <betelgeuse@g.o> for
Zac Medico [Fri, 29 Jan 2010 18:51:48 +0000 (18:51 -0000)]
Add a warning for built_with_use. Thanks to Petteri Räty <betelgeuse@g.o> for
this patch. (trunk r15209)

svn path=/main/branches/2.1.7/; revision=15261

14 years agoBug #302005 - Remove broken test code. (trunk r15208)
Zac Medico [Fri, 29 Jan 2010 18:51:27 +0000 (18:51 -0000)]
Bug #302005 - Remove broken test code. (trunk r15208)

svn path=/main/branches/2.1.7/; revision=15260

14 years agoBug #301926 - Handle ValueError in parseManifest2(), triggered by corrupt
Zac Medico [Fri, 29 Jan 2010 18:50:06 +0000 (18:50 -0000)]
Bug #301926 - Handle ValueError in parseManifest2(), triggered by corrupt
manifest entry. (trunk r15207)

svn path=/main/branches/2.1.7/; revision=15259

14 years agoFix Manifest commit logic for cvs and svn. Thanks to Rafael Martins
Zac Medico [Fri, 29 Jan 2010 18:49:58 +0000 (18:49 -0000)]
Fix Manifest commit logic for cvs and svn. Thanks to Rafael Martins
<rafael@rafaelmartins.com>. (trunk r15205)

svn path=/main/branches/2.1.7/; revision=15258

14 years agoInvert some vcs conditionals that are specific to cvs and svn. (trunk r15204)
Zac Medico [Fri, 29 Jan 2010 18:49:48 +0000 (18:49 -0000)]
Invert some vcs conditionals that are specific to cvs and svn. (trunk r15204)

svn path=/main/branches/2.1.7/; revision=15257

14 years agoSupport mercurial. Thanks to Rafael Martins <rafael@rafaelmartins.com> for
Zac Medico [Fri, 29 Jan 2010 18:49:38 +0000 (18:49 -0000)]
Support mercurial. Thanks to Rafael Martins <rafael@rafaelmartins.com> for
this patch. (trunk r15203)

svn path=/main/branches/2.1.7/; revision=15256

14 years agoDon't bail out if postinst fails. Thanks to Brain Harring for the suggestion.
Zac Medico [Fri, 29 Jan 2010 18:49:23 +0000 (18:49 -0000)]
Don't bail out if postinst fails. Thanks to Brain Harring for the suggestion.
(trunk r15202)

svn path=/main/branches/2.1.7/; revision=15255

14 years agoRemove ibiblio.org from the default GENTOO_MIRRORS value. Thanks to
Zac Medico [Fri, 29 Jan 2010 18:49:10 +0000 (18:49 -0000)]
Remove ibiblio.org from the default GENTOO_MIRRORS value. Thanks to
Jeremy Olexa <darkside@g.o> for this patch. (trunk r15201)

svn path=/main/branches/2.1.7/; revision=15254

14 years agoMake sure repoman knows about all files in the directory to commit using bzr. Patch...
Zac Medico [Fri, 29 Jan 2010 18:49:01 +0000 (18:49 -0000)]
Make sure repoman knows about all files in the directory to commit using bzr.  Patch by Christian Faulhammer.
(trunk r15199)

svn path=/main/branches/2.1.7/; revision=15253

14 years agoBug #300744 - Inside xpak(), exclude CONTENTS for quickpkg since contents is
Zac Medico [Fri, 29 Jan 2010 18:48:48 +0000 (18:48 -0000)]
Bug #300744 - Inside xpak(), exclude CONTENTS for quickpkg since contents is
generated by the merge process. (trunk r15198)

svn path=/main/branches/2.1.7/; revision=15252

14 years agoUse encoded byte strings with python-2.x, since the python ebuilds are
Zac Medico [Fri, 29 Jan 2010 18:48:40 +0000 (18:48 -0000)]
Use encoded byte strings with python-2.x, since the python ebuilds are
known to remove the encodings module when USE=build is enabled (thus
disabling unicode decoding/encoding). (trunk r15197)

svn path=/main/branches/2.1.7/; revision=15251

14 years agoFix output handling to avoid potential UnicodeEncodeError. (trunk r15196)
Zac Medico [Fri, 29 Jan 2010 18:48:32 +0000 (18:48 -0000)]
Fix output handling to avoid potential UnicodeEncodeError. (trunk r15196)

svn path=/main/branches/2.1.7/; revision=15250

14 years agoFix unicode quote handling to work with python3. (trunk r15195)
Zac Medico [Fri, 29 Jan 2010 18:48:21 +0000 (18:48 -0000)]
Fix unicode quote handling to work with python3. (trunk r15195)

svn path=/main/branches/2.1.7/; revision=15249

14 years agoAvoid portage import in order to avoid a potential sandbox violation if
Zac Medico [Fri, 29 Jan 2010 18:48:08 +0000 (18:48 -0000)]
Avoid portage import in order to avoid a potential sandbox violation if
portage's *.pyc files are stale. (trunk r15194)

svn path=/main/branches/2.1.7/; revision=15248

14 years agoAvoid potential UnicodeDecodeError with Python 3. Reported by devurandom.
Zac Medico [Fri, 29 Jan 2010 18:47:59 +0000 (18:47 -0000)]
Avoid potential UnicodeDecodeError with Python 3. Reported by devurandom.
(trunk r15192)

svn path=/main/branches/2.1.7/; revision=15247

14 years agoBug #300388 - Fix terminal handling code to so term codes aren't sent when
Zac Medico [Fri, 29 Jan 2010 18:47:51 +0000 (18:47 -0000)]
Bug #300388 - Fix terminal handling code to so term codes aren't sent when
TERM=dumb. (trunk r15191)

svn path=/main/branches/2.1.7/; revision=15246

14 years agoTweak TERM usage in xtermTitleReset() to match that in xtermTitle().
Zac Medico [Fri, 29 Jan 2010 18:47:30 +0000 (18:47 -0000)]
Tweak TERM usage in xtermTitleReset() to match that in xtermTitle().
(trunk r15190)

svn path=/main/branches/2.1.7/; revision=15245

14 years agoonly return status for the current directory (or the directory being asked for),...
Zac Medico [Fri, 29 Jan 2010 18:47:09 +0000 (18:47 -0000)]
only return status for the current directory (or the directory being asked for), instead of the whole tree
(trunk r15188)

svn path=/main/branches/2.1.7/; revision=15244

14 years agoAdd Bazaar (bzr) support for repoman, test-driven by Fauli (Christian Faulhammer)
Zac Medico [Fri, 29 Jan 2010 18:46:55 +0000 (18:46 -0000)]
Add Bazaar (bzr) support for repoman, test-driven by Fauli (Christian Faulhammer)
(trunk r15185)

svn path=/main/branches/2.1.7/; revision=15243

14 years agoFix blocker example output to appear as emerge actually displays it.
Zac Medico [Fri, 29 Jan 2010 18:46:45 +0000 (18:46 -0000)]
Fix blocker example output to appear as emerge actually displays it.
(trunk r15180)

svn path=/main/branches/2.1.7/; revision=15242

14 years agoSkip global updates for help, version, and info actions. (trunk r15179)
Zac Medico [Fri, 29 Jan 2010 18:46:36 +0000 (18:46 -0000)]
Skip global updates for help, version, and info actions. (trunk r15179)

svn path=/main/branches/2.1.7/; revision=15241

14 years agoBug #269225 - Warn about virtuals with non-empty HOMEPAGE or LICENSE. Thanks
Zac Medico [Fri, 29 Jan 2010 18:46:24 +0000 (18:46 -0000)]
Bug #269225 - Warn about virtuals with non-empty HOMEPAGE or LICENSE. Thanks
to Ulrich Müller <ulm@g.o> for this patch. (trunk r15174)

svn path=/main/branches/2.1.7/; revision=15240

14 years agoAdd a TODO comment for improved handling of /lib/modules. (trunk r15173)
Zac Medico [Fri, 29 Jan 2010 18:46:10 +0000 (18:46 -0000)]
Add a TODO comment for improved handling of /lib/modules. (trunk r15173)

svn path=/main/branches/2.1.7/; revision=15239

14 years agoFix it so an empty directory given to doins -r does not trigger failure.
Zac Medico [Fri, 29 Jan 2010 18:45:59 +0000 (18:45 -0000)]
Fix it so an empty directory given to doins -r does not trigger failure.
(trunk r15172)

svn path=/main/branches/2.1.7/; revision=15238

14 years agoIn python-2.x, convert PortageException.value attribute from unicode to str
Zac Medico [Fri, 29 Jan 2010 18:45:49 +0000 (18:45 -0000)]
In python-2.x, convert PortageException.value attribute from unicode to str
in order to avoid empty output with string format operator. (trunk r15169)

svn path=/main/branches/2.1.7/; revision=15237

14 years agoHandle AttributeError inside atomic_ofstream.__del__. Thanks to Cardoe for
Zac Medico [Fri, 29 Jan 2010 18:45:41 +0000 (18:45 -0000)]
Handle AttributeError inside atomic_ofstream.__del__. Thanks to Cardoe for
reporting. (trunk r15168)

svn path=/main/branches/2.1.7/; revision=15236

14 years agoRearrange _selinux ImportError handling so the workaround for bug #298310
Zac Medico [Fri, 29 Jan 2010 18:45:33 +0000 (18:45 -0000)]
Rearrange _selinux ImportError handling so the workaround for bug #298310
isn't necessary. (trunk r15167)

svn path=/main/branches/2.1.7/; revision=15235

14 years agoRevert r15161 so 12.2.5 is greater than 12.2b once again. Depending on how you
Zac Medico [Fri, 29 Jan 2010 18:45:23 +0000 (18:45 -0000)]
Revert r15161 so 12.2.5 is greater than 12.2b once again. Depending on how you
look at, it may seem counter-intuitive. However, if you really think about it,
it seems like it's probably safe to assume that 12.2.5 > 12.2b is the behavior
that is intended by anyone who would use versions such as these. (trunk r15166)

svn path=/main/branches/2.1.7/; revision=15234

14 years agoMore cases. (trunk r15165)
Zac Medico [Fri, 29 Jan 2010 18:45:14 +0000 (18:45 -0000)]
More cases. (trunk r15165)

svn path=/main/branches/2.1.7/; revision=15233

14 years agoAdd some more cases for versions with letter suffixes. (trunk r15164)
Zac Medico [Fri, 29 Jan 2010 18:45:06 +0000 (18:45 -0000)]
Add some more cases for versions with letter suffixes. (trunk r15164)

svn path=/main/branches/2.1.7/; revision=15232

14 years agoAdd test cases for cvs versions. (trunk r15163)
Zac Medico [Fri, 29 Jan 2010 18:44:56 +0000 (18:44 -0000)]
Add test cases for cvs versions. (trunk r15163)

svn path=/main/branches/2.1.7/; revision=15231

14 years agoFix vercmp so 1b > 1 and add corresponding tests. (trunk r15162)
Zac Medico [Fri, 29 Jan 2010 18:44:47 +0000 (18:44 -0000)]
Fix vercmp so 1b > 1 and add corresponding tests. (trunk r15162)

svn path=/main/branches/2.1.7/; revision=15230

14 years agoRevert vercmp() behavior so 12.2b > 12.2.5 which was accidentally changed in
Zac Medico [Fri, 29 Jan 2010 18:44:31 +0000 (18:44 -0000)]
Revert vercmp() behavior so 12.2b > 12.2.5 which was accidentally changed in
r2309 (between portage-2.0.x and portage-2.1). Thanks to Brian Harring for
reporting in bug #287848, comment #3. (trunk r15161)

svn path=/main/branches/2.1.7/; revision=15229

14 years agoAdd test cases for implicit .0 at end of version. (trunk r15160)
Zac Medico [Fri, 29 Jan 2010 18:44:05 +0000 (18:44 -0000)]
Add test cases for implicit .0 at end of version. (trunk r15160)

svn path=/main/branches/2.1.7/; revision=15228

14 years agoBug #298310 - Make sure the _selinux attribute is correctly reinitialized after
Zac Medico [Fri, 29 Jan 2010 18:43:50 +0000 (18:43 -0000)]
Bug #298310 - Make sure the _selinux attribute is correctly reinitialized after
reload(portage) is called. (trunk r15159)

svn path=/main/branches/2.1.7/; revision=15227

14 years agoBug #299248 - Fix doins return code handling to make sure it always fails
Zac Medico [Fri, 29 Jan 2010 18:43:41 +0000 (18:43 -0000)]
Bug #299248 - Fix doins return code handling to make sure it always fails
when appropriate. Thanks to Jonathan Callen <abcd@g.o> for the initial
patch. (trunk r15158)

svn path=/main/branches/2.1.7/; revision=15226

14 years agoDocument doins -r option. (trunk r15157)
Zac Medico [Fri, 29 Jan 2010 18:43:31 +0000 (18:43 -0000)]
Document doins -r option. (trunk r15157)

svn path=/main/branches/2.1.7/; revision=15225

14 years agoUse get_term_size() to adjust to current terminal width. Thanks to Dror Levin
Zac Medico [Fri, 29 Jan 2010 18:43:21 +0000 (18:43 -0000)]
Use get_term_size() to adjust to current terminal width. Thanks to Dror Levin
<spatz@g.0> for the initial patch. (trunk r15156)

svn path=/main/branches/2.1.7/; revision=15224

14 years agoAdd some tests related to bug #287848. (trunk r15155)
Zac Medico [Fri, 29 Jan 2010 18:43:08 +0000 (18:43 -0000)]
Add some tests related to bug #287848. (trunk r15155)

svn path=/main/branches/2.1.7/; revision=15223

15 years agoMerge PATH initialization/filtering changes from trunk r15149. v2.1.7.16
Zac Medico [Thu, 24 Dec 2009 05:37:52 +0000 (05:37 -0000)]
Merge PATH initialization/filtering changes from trunk r15149.

svn path=/main/branches/2.1.7/; revision=15150

15 years agoRemove stray echo. (trunk r15147)
Zac Medico [Thu, 24 Dec 2009 05:21:55 +0000 (05:21 -0000)]
Remove stray echo. (trunk r15147)

svn path=/main/branches/2.1.7/; revision=15148

15 years agoIn save_ebuild_env(), preserve all ebuild phases in any case since excluding
Zac Medico [Thu, 24 Dec 2009 05:11:32 +0000 (05:11 -0000)]
In save_ebuild_env(), preserve all ebuild phases in any case since excluding
the already executed ones from environment.bz2 doesn't save much space, and
it's possible that someone would want to look at them later. (trunk r15145)

svn path=/main/branches/2.1.7/; revision=15146

15 years agoRemove obsolete backing up of ROOTPATH via PORTAGE_ROOTPATH. (trunk r15143)
Zac Medico [Thu, 24 Dec 2009 04:40:22 +0000 (04:40 -0000)]
Remove obsolete backing up of ROOTPATH via PORTAGE_ROOTPATH. (trunk r15143)

svn path=/main/branches/2.1.7/; revision=15144

15 years agoBug #297933: Filter BASHOPTS variable for compatibility with bash-4.1.
Zac Medico [Thu, 24 Dec 2009 04:02:21 +0000 (04:02 -0000)]
Bug #297933: Filter BASHOPTS variable for compatibility with bash-4.1.
(trunk r15130)

svn path=/main/branches/2.1.7/; revision=15142

15 years agoIf the TERM environment variable is unset then just use internal default
Zac Medico [Thu, 24 Dec 2009 04:02:13 +0000 (04:02 -0000)]
If the TERM environment variable is unset then just use internal default
term codes since the vt100 codes typically produce strange output. This
fixes strange output from catalyst stage1 builds. (trunk r15129)

svn path=/main/branches/2.1.7/; revision=15141