portage.git
14 years agoDeprecate the unused getbinpkgsonly parameter to binarytree.populate().
Zac Medico [Tue, 2 Mar 2010 20:31:57 +0000 (20:31 -0000)]
Deprecate the unused getbinpkgsonly parameter to binarytree.populate().
(trunk r15374)

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

14 years agoAllow --rebuilt-binaries to trigger downgrades. (trunk r15373)
Zac Medico [Tue, 2 Mar 2010 20:31:42 +0000 (20:31 -0000)]
Allow --rebuilt-binaries to trigger downgrades. (trunk r15373)

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

14 years agoOnly enable --rebuilt-binaries automatically if --update and --deep are also
Zac Medico [Tue, 2 Mar 2010 20:31:29 +0000 (20:31 -0000)]
Only enable --rebuilt-binaries automatically if --update and --deep are also
enabled. (trunk r15372)

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

14 years agoRemove unused merge_cmd variable. (trunk r15371)
Zac Medico [Tue, 2 Mar 2010 20:28:07 +0000 (20:28 -0000)]
Remove unused merge_cmd variable. (trunk r15371)

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

14 years agoRemove diffutils version detection code since it's not really needed.
Zac Medico [Tue, 2 Mar 2010 20:27:34 +0000 (20:27 -0000)]
Remove diffutils version detection code since it's not really needed.
(trunk r15370)

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

14 years agoUpdate the spinner in depgraph._serialize_tasks when searching for
Zac Medico [Tue, 2 Mar 2010 20:27:10 +0000 (20:27 -0000)]
Update the spinner in depgraph._serialize_tasks when searching for
suitable uninstall tasks. (trunk r15369)

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

14 years agoFix broken diffutils vercmp code. (trunk r15368)
Zac Medico [Tue, 2 Mar 2010 20:26:56 +0000 (20:26 -0000)]
Fix broken diffutils vercmp code. (trunk r15368)

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

14 years agoFix colors for --rebuilt-binaries docs. (trunk r15367)
Zac Medico [Tue, 2 Mar 2010 20:26:48 +0000 (20:26 -0000)]
Fix colors for --rebuilt-binaries docs. (trunk r15367)

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

14 years agoAdd a comment about slowness in _serialize_tasks when there are lots of
Zac Medico [Tue, 2 Mar 2010 20:26:39 +0000 (20:26 -0000)]
Add a comment about slowness in _serialize_tasks when there are lots of
blockers to solve. (trunk r15366)

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

14 years agoBug #305393 - Handle new sdiff exit status for diffutils-2.9. (trunk r15365)
Zac Medico [Tue, 2 Mar 2010 20:26:29 +0000 (20:26 -0000)]
Bug #305393 - Handle new sdiff exit status for diffutils-2.9. (trunk r15365)

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

14 years agoAdd a --rebuilt-binaries[=n] option, causing automatic replacement of
Zac Medico [Tue, 2 Mar 2010 20:26:08 +0000 (20:26 -0000)]
Add a --rebuilt-binaries[=n] option, causing automatic replacement of
installed packages with binary packages that have been rebuilt. Rebuilds
are detected by comparison of BUILD_TIME package metadata. This option is
enabled automatically when using binary packages, so rebuilt binaries are
installed with a user's typical update command. This isn't possible with
the existing @rebuild-binaries package set since that only works with
--selective=n and therefore can't be used with a typical world update.
The package set framework should support this type of behavior sometime
in the future. (trunk r15364)

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

14 years agoAdd @rebuilt-binaries set which uses BUILD_TIME to pull in binary packages
Zac Medico [Tue, 2 Mar 2010 20:24:48 +0000 (20:24 -0000)]
Add @rebuilt-binaries set which uses BUILD_TIME to pull in binary packages
that have a different build time from a currently installed package of the
exact same version. (trunk r15363)

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

14 years agoBug #303567 - Merge libc asap, in order to account for implicit dependencies.
Zac Medico [Tue, 2 Mar 2010 20:22:00 +0000 (20:22 -0000)]
Bug #303567 - Merge libc asap, in order to account for implicit dependencies.
(trunk r15362)

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

14 years agoFix type in CLEAN_DELAY docs. (trunk r15361)
Zac Medico [Tue, 2 Mar 2010 20:21:48 +0000 (20:21 -0000)]
Fix type in CLEAN_DELAY docs. (trunk r15361)

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

14 years agoCache BUILD_TIME in $PKGDIR/Packages and inside bindbapi. (trunk r15360)
Zac Medico [Tue, 2 Mar 2010 20:21:34 +0000 (20:21 -0000)]
Cache BUILD_TIME in $PKGDIR/Packages and inside bindbapi. (trunk r15360)

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

14 years agoCache BUILD_TIME in Package.metadata. (trunk r15359)
Zac Medico [Tue, 2 Mar 2010 20:21:19 +0000 (20:21 -0000)]
Cache BUILD_TIME in Package.metadata. (trunk r15359)

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

14 years agoCache BUILD_TIME in vdb_metadata.pickle. (trunk r15358)
Zac Medico [Tue, 2 Mar 2010 20:21:04 +0000 (20:21 -0000)]
Cache BUILD_TIME in vdb_metadata.pickle. (trunk r15358)

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

14 years agoAdd a BUILD_TIME vdb entry containing the integer number of seconds since the
Zac Medico [Tue, 2 Mar 2010 20:20:38 +0000 (20:20 -0000)]
Add a BUILD_TIME vdb entry containing the integer number of seconds since the
unix Epoch. This will be useful for creating package sets that involve
comparison of installed packages to binary packages, especially for binhost
users. See discussion here:

 http://archives.gentoo.org/gentoo-portage-dev/msg_d068a8deefd179cc23808bc23f3de200.xml
(trunk r15357)

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

14 years agoAdd a 'trees' parameter to portdbapi.cp_all(). Thanks to Brian Dolbec (dol-sen)
Zac Medico [Tue, 2 Mar 2010 20:20:19 +0000 (20:20 -0000)]
Add a 'trees' parameter to portdbapi.cp_all(). Thanks to Brian Dolbec (dol-sen)
for this patch. (trunk r15356)

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

14 years agoUse config.environ() instead of config.items() when spawning FETCHCOMMAND.
Zac Medico [Tue, 2 Mar 2010 20:20:05 +0000 (20:20 -0000)]
Use config.environ() instead of config.items() when spawning FETCHCOMMAND.
(trunk r15355)

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

14 years agoMake sure that config._accept_chost() accepts empty CHOST. (trunk r15354)
Zac Medico [Tue, 2 Mar 2010 20:19:57 +0000 (20:19 -0000)]
Make sure that config._accept_chost() accepts empty CHOST. (trunk r15354)

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

14 years agoPrevent CHOST vdb entries from being created for virtual packages.
Zac Medico [Tue, 2 Mar 2010 20:17:52 +0000 (20:17 -0000)]
Prevent CHOST vdb entries from being created for virtual packages.
(trunk r15353)

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

14 years agoBug #304981 - Truncate the build log after successful fetch, instead of
Zac Medico [Tue, 2 Mar 2010 20:17:08 +0000 (20:17 -0000)]
Bug #304981 - Truncate the build log after successful fetch, instead of
removing it, so as not to interfere with tail -f. (trunk r15352)

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

14 years agoEvaluate conditional USE deps for *DEPEND atoms saved in vdb entries.
Zac Medico [Tue, 2 Mar 2010 20:16:52 +0000 (20:16 -0000)]
Evaluate conditional USE deps for *DEPEND atoms saved in vdb entries.
(trunk r15351)

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

14 years agoDon't save SRC_URI as a vdb entry since it's pretty useless and it's available
Zac Medico [Tue, 2 Mar 2010 20:16:39 +0000 (20:16 -0000)]
Don't save SRC_URI as a vdb entry since it's pretty useless and it's available
in environment.bz2 anyway. (trunk r15350)

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

14 years agoAfter src_install, save fewer variables when writing the vdb entry for a
Zac Medico [Tue, 2 Mar 2010 20:16:29 +0000 (20:16 -0000)]
After src_install, save fewer variables when writing the vdb entry for a
virtual package. (trunk r15349)

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

14 years agoEvaluate USE conditionals when writing vdb entries after src_install.
Zac Medico [Tue, 2 Mar 2010 20:13:56 +0000 (20:13 -0000)]
Evaluate USE conditionals when writing vdb entries after src_install.
(trunk r15348)

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

14 years agoBug #262647 - Explicitly exclude SRC_URI and other potentially long metadata
Zac Medico [Tue, 2 Mar 2010 20:13:47 +0000 (20:13 -0000)]
Bug #262647 - Explicitly exclude SRC_URI and other potentially long metadata
variables from config.environ() exports, to avoid potential E2BIG errors from
execve calls. (trunk r15347)

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

14 years agoBug #304793 - Update --newuse docs to indicate that this option also implies
Zac Medico [Tue, 2 Mar 2010 20:13:34 +0000 (20:13 -0000)]
Bug #304793 - Update --newuse docs to indicate that this option also implies
--selective. (trunk r15346)

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

14 years agoWhen creating a config instance for ROOT=/ with a clean env, copy PATH and
Zac Medico [Tue, 2 Mar 2010 20:13:24 +0000 (20:13 -0000)]
When creating a config instance for ROOT=/ with a clean env, copy PATH and
TERM variables, since they may be useful. (trunk r15345)

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

14 years agoUse os.environ instead of the config.environ(). This solves binpkg extraction
Zac Medico [Tue, 2 Mar 2010 20:13:08 +0000 (20:13 -0000)]
Use os.environ instead of the config.environ(). This solves binpkg extraction
issues with catalyst stage1 due to PATH being unset and bzip2/tar binaries
not being found by bash. (trunk r15344)

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

14 years agoLogg errors that occur during binpkg extraction. (trunk r15343)
Zac Medico [Tue, 2 Mar 2010 20:12:58 +0000 (20:12 -0000)]
Logg errors that occur during binpkg extraction. (trunk r15343)

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

14 years agoRemove unnecessary newline in dblink._eerror message. (trunk r15342)
Zac Medico [Tue, 2 Mar 2010 20:12:50 +0000 (20:12 -0000)]
Remove unnecessary newline in dblink._eerror message. (trunk r15342)

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

14 years agoFix dblink._eerror argument where list is required instead of string.
Zac Medico [Tue, 2 Mar 2010 20:12:42 +0000 (20:12 -0000)]
Fix dblink._eerror argument where list is required instead of string.
(trunk r15341)

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

14 years agoMake previous commit use eerror for logging. (trunk r15339)
Zac Medico [Tue, 2 Mar 2010 20:12:33 +0000 (20:12 -0000)]
Make previous commit use eerror for logging. (trunk r15339)

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

14 years agotry to be more forgiving if unlinking fails, because we end up in an unknown
Zac Medico [Tue, 2 Mar 2010 20:12:24 +0000 (20:12 -0000)]
try to be more forgiving if unlinking fails, because we end up in an unknown
state if we die right away, as demonstrated by darkside
(branches/prefix r15337) (trunk r15338)

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

14 years agoIgnore blockers in DEPEND of built packages when --with-bdeps is enabled.
Zac Medico [Tue, 2 Mar 2010 20:12:14 +0000 (20:12 -0000)]
Ignore blockers in DEPEND of built packages when --with-bdeps is enabled.
(trunk r15336)

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

14 years agoBug #303211 - Discard invalid SIZE metadata when using the old binhost
Zac Medico [Tue, 2 Mar 2010 20:11:56 +0000 (20:11 -0000)]
Bug #303211 - Discard invalid SIZE metadata when using the old binhost
protocol. (trunk r15333)

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

14 years agoBug #298479 - Filter $USER from the ebuild environment since it's inaccurate
Zac Medico [Tue, 2 Mar 2010 20:11:47 +0000 (20:11 -0000)]
Bug #298479 - Filter $USER from the ebuild environment since it's inaccurate
with FEATURES=userpriv. (trunk r15332)

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

14 years agoUse Atom.cp instead of dep_getkey(). (trunk r15331)
Zac Medico [Tue, 2 Mar 2010 20:11:39 +0000 (20:11 -0000)]
Use Atom.cp instead of dep_getkey(). (trunk r15331)

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

14 years agoUse Atom.cp instead of dep_getkey(), and use cpv_getkey() instead of
Zac Medico [Tue, 2 Mar 2010 20:11:26 +0000 (20:11 -0000)]
Use Atom.cp instead of dep_getkey(), and use cpv_getkey() instead of
dep_getkey() where appropriate. (trunk r15330)

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

14 years agoSkip atom validation in WorldHandler since WorldSelectedSet handles this
Zac Medico [Tue, 2 Mar 2010 20:09:11 +0000 (20:09 -0000)]
Skip atom validation in WorldHandler since WorldSelectedSet handles this
already, and use Atom.cp instead of dep_getkey(). (trunk r15327)

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

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