portage.git
15 years agoAdd a PDEPEND.suspect category. v2.2_rc34 v2.2_rc35
Zac Medico [Tue, 4 Aug 2009 00:13:08 +0000 (00:13 -0000)]
Add a PDEPEND.suspect category.

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

15 years agoFix NameError from r13880. Thanks to Arfrever for reporting.
Zac Medico [Mon, 3 Aug 2009 23:43:52 +0000 (23:43 -0000)]
Fix NameError from r13880. Thanks to Arfrever for reporting.

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

15 years agoMake the USE=test RDEPEND check (bug #236786) also apply to PDEPEND.
Zac Medico [Mon, 3 Aug 2009 22:27:31 +0000 (22:27 -0000)]
Make the USE=test RDEPEND check (bug #236786) also apply to PDEPEND.

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

15 years agoBug #278729 - Inside dep_zapdeps(), ignore USE dependencies since we don't
Zac Medico [Mon, 3 Aug 2009 21:20:22 +0000 (21:20 -0000)]
Bug #278729 - Inside dep_zapdeps(), ignore USE dependencies since we don't
want USE settings to adversely affect || preference evaluation. Drop invalid
atoms inside _expand_new_virtuals() since we only want real Atom instances
inside dep_zapdeps().

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

15 years agoBug #278729 - Add an Atom.without_use attribute which is identical to the
Zac Medico [Mon, 3 Aug 2009 20:49:09 +0000 (20:49 -0000)]
Bug #278729 - Add an Atom.without_use attribute which is identical to the
atom itself, except without any USE dependencies.

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

15 years agoRemove the code from bug #278895 since we're going to need a daemon process
Zac Medico [Mon, 3 Aug 2009 20:13:17 +0000 (20:13 -0000)]
Remove the code from bug #278895 since we're going to need a daemon process
in the ebuild's login session in order to pass signals from the controlling
terminal to the detached session. A simple fifo-based approach in ebuild.sh
does not seem to work since bash's read builtin occasionally loses the fifo
data when it's 'Interrupted system call'. Maybe a python script will work
better for the session leader/daemon. NOTE: The daemon will also be useful
for implementing a fifo-based die helper (to replace the current signal-
based approach).

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

15 years agoOnly treat non-negative integers as valid in insert_optional_args().
Zac Medico [Sat, 1 Aug 2009 20:02:37 +0000 (20:02 -0000)]
Only treat non-negative integers as valid in insert_optional_args().

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

15 years agoAdd support for --usepkg=n so that it's possible to disable it on
Zac Medico [Sat, 1 Aug 2009 19:58:52 +0000 (19:58 -0000)]
Add support for --usepkg=n so that it's possible to disable it on
the command line after it's been enabled in EMERGE_DEFAULT_OPTS.
Also do the same for --usepkgonly, --getbinpkg, and --getbinpkgonly.

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

15 years agoAdd support for --complete-graph=n so that it's possible to disable it on
Zac Medico [Sat, 1 Aug 2009 18:58:23 +0000 (18:58 -0000)]
Add support for --complete-graph=n so that it's possible to disable it on
the command line after it's been enabled in EMERGE_DEFAULT_OPTS.

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

15 years agoIn the _check_build_log(), exclude output from dev-libs/yaz-3.0.47 which
Zac Medico [Fri, 31 Jul 2009 15:20:28 +0000 (15:20 -0000)]
In the _check_build_log(), exclude output from dev-libs/yaz-3.0.47 which
looks like this:

Configuration:
  Automake:                   ${SHELL} /var/tmp/portage/dev-libs/yaz-3.0.47/work/yaz-3.0.47/config/missing --run automake-1.10

Thanks to Robin H. Johnson <robbat2@gentoo.org> for reporting.

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

15 years agoIn depgraph._show_slot_collision_notice(), display $ROOT (if not /) with each
Zac Medico [Thu, 30 Jul 2009 23:58:41 +0000 (23:58 -0000)]
In depgraph._show_slot_collision_notice(), display $ROOT (if not /) with each
slot atom.

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

15 years agoBug #276264 - Advise manual removal of the metadata/cache/ direcory when using
Zac Medico [Thu, 30 Jul 2009 23:09:29 +0000 (23:09 -0000)]
Bug #276264 - Advise manual removal of the metadata/cache/ direcory when using
eclass-overrides.

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

15 years agoAdd a python-based setsid script for use with USERLAND=BSD.
Zac Medico [Thu, 30 Jul 2009 22:08:40 +0000 (22:08 -0000)]
Add a python-based setsid script for use with USERLAND=BSD.

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

15 years agoFix breakage in owners() handling of abs paths.
Zac Medico [Thu, 30 Jul 2009 21:45:00 +0000 (21:45 -0000)]
Fix breakage in owners() handling of abs paths.

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

15 years agoMove the setsid code (from bug #278895) as early as possible.
Zac Medico [Thu, 30 Jul 2009 21:29:45 +0000 (21:29 -0000)]
Move the setsid code (from bug #278895) as early as possible.

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

15 years agoUpdating find_updated_config_files function description
Mounir Lamouri [Thu, 30 Jul 2009 20:59:09 +0000 (20:59 -0000)]
Updating find_updated_config_files function description

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

15 years agoRename get_updated_config_files() to find_updated_config_files() and make
Zac Medico [Thu, 30 Jul 2009 20:48:08 +0000 (20:48 -0000)]
Rename get_updated_config_files() to find_updated_config_files() and make
it an iterator of tuples.

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

15 years agoAdd get_updated_config_files in portage API
Mounir Lamouri [Thu, 30 Jul 2009 20:36:02 +0000 (20:36 -0000)]
Add get_updated_config_files in portage API
chk_updated_cfg_files in _emerge API is now using get_updated_config_files
It lets other app to get updated config files without ouputs

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

15 years agoInside die(), only send the signal for subshell die support when we are
Zac Medico [Thu, 30 Jul 2009 07:31:06 +0000 (07:31 -0000)]
Inside die(), only send the signal for subshell die support when we are
actually in a subshell.

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

15 years agoBug #278895 - Make ebuild.sh clean up orphaned processes that may have been
Zac Medico [Thu, 30 Jul 2009 07:29:34 +0000 (07:29 -0000)]
Bug #278895 - Make ebuild.sh clean up orphaned processes that may have been
left behind by ebuild phases. This works by using setsid to create a new
login session for the ebuild.sh process, and `kill -s SIGHUP 0` to send
a SIGHUP signal to all processes in the session. The setsid is currently
not done on the python side since that would cause the sandbox process in
the session, and sandbox produces a warning message if it catches a SIGHUP
signal.

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

15 years agoFix depgraph._show_missed_update() to keep each $ROOT separate.
Zac Medico [Wed, 29 Jul 2009 22:44:21 +0000 (22:44 -0000)]
Fix depgraph._show_missed_update() to keep each $ROOT separate.

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

15 years agoAccount for $ROOT inside depgraph._show_missed_update_unsatisfied_dep().
Zac Medico [Wed, 29 Jul 2009 07:04:41 +0000 (07:04 -0000)]
Account for $ROOT inside depgraph._show_missed_update_unsatisfied_dep().

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

15 years agoRemove redundant loop inside depgraph._show_missed_update_slot_conflicts().
Zac Medico [Tue, 28 Jul 2009 23:32:19 +0000 (23:32 -0000)]
Remove redundant loop inside depgraph._show_missed_update_slot_conflicts().

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

15 years agoWhen backtracking due to an unsatisfied dependency, show a normal unsatisfied
Zac Medico [Tue, 28 Jul 2009 23:27:52 +0000 (23:27 -0000)]
When backtracking due to an unsatisfied dependency, show a normal unsatisfied
dependency message for the given atom. Thanks to Thomas Sachau
<tommy@gentoo.org> for reporting.

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

15 years agoFix --onlydeps breakage. Thanks to Arfrever for reporting.
Zac Medico [Sat, 25 Jul 2009 09:33:18 +0000 (09:33 -0000)]
Fix --onlydeps breakage. Thanks to Arfrever for reporting.

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

15 years agoBug #270040 - Make repoman parse the categories file from the overlay.
Zac Medico [Wed, 22 Jul 2009 18:26:52 +0000 (18:26 -0000)]
Bug #270040 - Make repoman parse the categories file from the overlay.

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

15 years agoAdd comment in calc_depclean() about topological sort optimization that
Zac Medico [Tue, 21 Jul 2009 20:33:11 +0000 (20:33 -0000)]
Add comment in calc_depclean() about topological sort optimization that
minimizes issues with implicit deps.

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

15 years agoAlways pass encodings='utf_8' to codecs.open(), since otherwise it can
Zac Medico [Mon, 20 Jul 2009 23:50:20 +0000 (23:50 -0000)]
Always pass encodings='utf_8' to codecs.open(), since otherwise it can
return non-unicode strings (at least in some cases, observed with
python-2.6.2). Don't use unicode in portage.util.getconfig() for now,
since shlex doesn't seem to support it (spurious \0 characters). If we
use unicode for config variables, it breaks shlex.split() calls on those
variables due to the same issue (spurious \0 characters).

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

15 years agoFEATURES=unmerge-logs
Zac Medico [Mon, 20 Jul 2009 22:43:41 +0000 (22:43 -0000)]
FEATURES=unmerge-logs
Keep logs from successful unmerge phases. This is relevant only when
PORT_LOGDIR is set.

Thanks to Diego Pettenò <flameeyes@gentoo.org> for the suggestion.

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

15 years agoRemove empty log files inside dblink.unmerge(). Thanks to Diego Pettenò
Zac Medico [Mon, 20 Jul 2009 22:13:32 +0000 (22:13 -0000)]
Remove empty log files inside dblink.unmerge(). Thanks to Diego Pettenò
<flameeyes@gentoo.org> for reporting.

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

15 years agoSkip Blocker instances inside _add_prefetchers().
Zac Medico [Mon, 20 Jul 2009 22:11:40 +0000 (22:11 -0000)]
Skip Blocker instances inside _add_prefetchers().

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

15 years agoMove mtimedb resume list code from action_build() to
Zac Medico [Mon, 20 Jul 2009 21:21:22 +0000 (21:21 -0000)]
Move mtimedb resume list code from action_build() to
Scheduler._save_resume_list().

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

15 years agoUse a lazy reference to sys.stdout, in case the API consumer has
Zac Medico [Mon, 20 Jul 2009 20:43:48 +0000 (20:43 -0000)]
Use a lazy reference to sys.stdout, in case the API consumer has
temporarily overridden stdout.

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

15 years agoMake portage.listdir() and dbapi.cp_list() return unicode.
Zac Medico [Mon, 20 Jul 2009 20:24:24 +0000 (20:24 -0000)]
Make portage.listdir() and dbapi.cp_list() return unicode.

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

15 years agoFix Scheduler bug:
Mounir Lamouri [Mon, 20 Jul 2009 20:23:16 +0000 (20:23 -0000)]
Fix Scheduler bug:
the scheduler was adding prefetcher even for uninstall tasks

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

15 years agoIn grablines(), specify encoding=sys.getdefaultencoding() in the codecs.open()
Zac Medico [Mon, 20 Jul 2009 18:57:18 +0000 (18:57 -0000)]
In grablines(), specify encoding=sys.getdefaultencoding() in the codecs.open()
parameters, since otherwise readlines doesn't return unicode (at least in
some cases, observed with python-2.6.2). Also, fix grabfile() to return
unicode when it normalizes whitespace.

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

15 years agoUse codecs.open for unicode support in FileLoader.load().
Zac Medico [Mon, 20 Jul 2009 17:50:07 +0000 (17:50 -0000)]
Use codecs.open for unicode support in FileLoader.load().

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

15 years agoIn _check_manifests(), skip uninstall operations.
Zac Medico [Sun, 19 Jul 2009 22:12:14 +0000 (22:12 -0000)]
In _check_manifests(), skip uninstall operations.

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

15 years agoUse readlines() to optimize performance. Thanks to Marat Radchenko
Zac Medico [Sun, 19 Jul 2009 22:02:00 +0000 (22:02 -0000)]
Use readlines() to optimize performance. Thanks to Marat Radchenko
<slonopotamusorama@gmail.com> for this patch from bug #276813.

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

15 years agoFor consistency with emake, add ${MAKEOPTS} ${EXTRA_EMAKE} to make arguments
Zac Medico [Fri, 17 Jul 2009 18:39:58 +0000 (18:39 -0000)]
For consistency with emake, add ${MAKEOPTS} ${EXTRA_EMAKE} to make arguments
inside einstall. Also, force -j1 in order to override any --jobs settings
from MAKEOPTS. Thanks to Diego Pettenò <flameeyes@gentoo.org> for the
suggestion.

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

15 years agoFor unsatisfied USE dependencies, do not backtrack if only USE have to change
Zac Medico [Thu, 16 Jul 2009 22:18:45 +0000 (22:18 -0000)]
For unsatisfied USE dependencies, do not backtrack if only USE have to change
in order to be satisfied. Thanks to Thomas Sachau <tommy@gentoo.org> fo
reporting.

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

15 years agoalign with Prefix, also warn on sparcv9 hosts -- 64-bits Solaris/Sparc
Fabian Groffen [Thu, 16 Jul 2009 20:01:54 +0000 (20:01 -0000)]
align with Prefix, also warn on sparcv9 hosts -- 64-bits Solaris/Sparc

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

15 years agoadd hppa64 to the 64bit list as pointed out by Michael Haubenwallner
Mike Frysinger [Thu, 16 Jul 2009 17:44:19 +0000 (17:44 -0000)]
add hppa64 to the 64bit list as pointed out by Michael Haubenwallner

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

15 years agofix up spacing, remove commented out code, fix copyright (sort of see-if-I-can-commit...
Fabian Groffen [Mon, 13 Jul 2009 18:09:38 +0000 (18:09 -0000)]
fix up spacing, remove commented out code, fix copyright (sort of see-if-I-can-commit test)

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

15 years agoOptimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Zac Medico [Sun, 12 Jul 2009 23:04:43 +0000 (23:04 -0000)]
Optimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for the initial patch
from bug #276813.

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

15 years agoAllow search and depgraph to avoid spinner by using spinner=None
Mounir Lamouri [Sun, 12 Jul 2009 22:26:10 +0000 (22:26 -0000)]
Allow search and depgraph to avoid spinner by using spinner=None

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

15 years agoRemove leading slash from appropriate paths inside portage.const, so that
Zac Medico [Sun, 12 Jul 2009 20:45:53 +0000 (20:45 -0000)]
Remove leading slash from appropriate paths inside portage.const, so that
lstrip(os.sep) is not needed for os.path.join() calls. Thanks to Fabian
Groffen <grobian@g.o> for this patch.

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

15 years agoImprove description of QA_DT_HASH.
Arfrever Frehtes Taifersar Arahesis [Sun, 12 Jul 2009 15:57:23 +0000 (15:57 -0000)]
Improve description of QA_DT_HASH.

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

15 years agoIn depgraph._show_missed_update(), don't show installed packages since we
Zac Medico [Sun, 12 Jul 2009 08:03:41 +0000 (08:03 -0000)]
In depgraph._show_missed_update(), don't show installed packages since we
only want to show available updates.

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

15 years agoMove the backtracking code from action_build() to a new backtrack_depgraph()
Zac Medico [Sun, 12 Jul 2009 05:26:39 +0000 (05:26 -0000)]
Move the backtracking code from action_build() to a new backtrack_depgraph()
function.

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

15 years agoEliminate duplicate code inside depgraph._show_missed_update().
Zac Medico [Sat, 11 Jul 2009 22:19:37 +0000 (22:19 -0000)]
Eliminate duplicate code inside depgraph._show_missed_update().

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

15 years agoBug #137562 - Implement backtracking for missing dependencies. Thanks to
Zac Medico [Sat, 11 Jul 2009 21:17:24 +0000 (21:17 -0000)]
Bug #137562 - Implement backtracking for missing dependencies. Thanks to
Sebastian Mingramm (few) <s.mingramm@gmx.de> for the initial patch which
only needed minor changes.

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

15 years agoOptimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Zac Medico [Sat, 11 Jul 2009 20:23:54 +0000 (20:23 -0000)]
Optimize USE_EXPAND -> USE code inside config.setcpv(). Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for this patch from
bug #276813.

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

15 years agoAssign 'cfgprot' before referencing it. Reported by Thomas Sachau.
Arfrever Frehtes Taifersar Arahesis [Sat, 11 Jul 2009 17:05:54 +0000 (17:05 -0000)]
Assign 'cfgprot' before referencing it. Reported by Thomas Sachau.

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

15 years agoAllow --deep to take an optional integer parameter, to specify how deep it
Zac Medico [Thu, 9 Jul 2009 07:35:22 +0000 (07:35 -0000)]
Allow --deep to take an optional integer parameter, to specify how deep it
should go. Also make --update so it no longer implies the equivalent of
--deep=1. To get the old --update behavior, use --update --deep=1.

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

15 years agoTweak arguments for <python-2.6 compat.
Zac Medico [Thu, 9 Jul 2009 07:04:28 +0000 (07:04 -0000)]
Tweak arguments for <python-2.6 compat.

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

15 years agoMake -j argument handling more generic, so it's easy to add similar arguments
Zac Medico [Thu, 9 Jul 2009 06:11:17 +0000 (06:11 -0000)]
Make -j argument handling more generic, so it's easy to add similar arguments
(planning to add support for integer -D/--deep arguments).

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

15 years agoUse a dict for depgraph params, so we can use it to store key/value pairs
Zac Medico [Thu, 9 Jul 2009 04:57:55 +0000 (04:57 -0000)]
Use a dict for depgraph params, so we can use it to store key/value pairs
and fix the depgraph so it doesn't use emerge options directly.

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

15 years agoAdd a --debug warning message inside _add_pkg in case a potentially infinite
Zac Medico [Wed, 8 Jul 2009 22:02:17 +0000 (22:02 -0000)]
Add a --debug warning message inside _add_pkg in case a potentially infinite
backtracking loop is detected (it should never happen).

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

15 years agoDocument the --selective option.
Zac Medico [Wed, 8 Jul 2009 21:41:01 +0000 (21:41 -0000)]
Document the --selective option.

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

15 years agoFix --selective so it works.
Zac Medico [Wed, 8 Jul 2009 20:05:14 +0000 (20:05 -0000)]
Fix --selective so it works.

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

15 years agoBug #276957 - Fix dropped "in graph" choice for runtime deps inside dep_zapdeps.
Zac Medico [Tue, 7 Jul 2009 20:47:28 +0000 (20:47 -0000)]
Bug #276957 - Fix dropped "in graph" choice for runtime deps inside dep_zapdeps.

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

15 years agoShorten the preserved libs message when in --quiet mode. Thanks to Sebastian
Zac Medico [Tue, 7 Jul 2009 09:11:39 +0000 (09:11 -0000)]
Shorten the preserved libs message when in --quiet mode. Thanks to Sebastian
Mingramm (few) <s.mingramm@gmx.de> for this patch.

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

15 years agoBug #276866 - --binpkg-respect-use < y | n >
Zac Medico [Tue, 7 Jul 2009 08:52:08 +0000 (08:52 -0000)]
Bug #276866 - --binpkg-respect-use < y | n >
Tells emerge to ignore binary packages if their use flags don't match the
current configuration. (default: ´n´)
Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch
(small tweaks by me).

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

15 years agoOptimize dbapi._iter_match_use() so that it shares a single compiled regex
Zac Medico [Mon, 6 Jul 2009 21:56:27 +0000 (21:56 -0000)]
Optimize dbapi._iter_match_use() so that it shares a single compiled regex
for all implicit iuse checks. This avoids lots of expensibe re.compile()
calls. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for the
initial patch.

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

15 years agoBug #273640 - Add --disable-dependency-tracking to econf arguments for
Zac Medico [Mon, 6 Jul 2009 20:38:13 +0000 (20:38 -0000)]
Bug #273640 - Add --disable-dependency-tracking to econf arguments for
EAPI 3. Thanks to Markus Meier <maekke@gentoo.org> for this patch.

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

15 years agoBug #273622 - Add pkg_pretend support for the ebuild(1) command (emerge
Zac Medico [Mon, 6 Jul 2009 20:23:57 +0000 (20:23 -0000)]
Bug #273622 - Add pkg_pretend support for the ebuild(1) command (emerge
support not implemented yet). Thanks to Markus Meier <maekke@gentoo.org>
for this patch.

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

15 years agoBug #273631 - Add default src_install implementation for EAPI 3. Thanks to
Zac Medico [Mon, 6 Jul 2009 20:17:12 +0000 (20:17 -0000)]
Bug #273631 - Add default src_install implementation for EAPI 3. Thanks to
Markus Meier <maekke@gentoo.org> for this patch (and people in #gentoo-portage
for bash syntax tweaks).

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

15 years agoUse PackageSet.findAtomForPackage() when matching the existing node against
Zac Medico [Mon, 6 Jul 2009 07:15:01 +0000 (07:15 -0000)]
Use PackageSet.findAtomForPackage() when matching the existing node against
the atom inside _select_pkg_highest_available_imp(), for PROVIDE support.

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

15 years agoAlways exit unsuccessfully if there are any failures.
Zac Medico [Mon, 6 Jul 2009 02:39:56 +0000 (02:39 -0000)]
Always exit unsuccessfully if there are any failures.

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

15 years agoHardcode utf_8 encoding inside _setitem().
Zac Medico [Sun, 5 Jul 2009 22:09:50 +0000 (22:09 -0000)]
Hardcode utf_8 encoding inside _setitem().

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

15 years agoAssume utf_8 encoding in alls reads/writes (unicode handling required for py3k).
Zac Medico [Sun, 5 Jul 2009 21:40:28 +0000 (21:40 -0000)]
Assume utf_8 encoding in alls reads/writes (unicode handling required for py3k).

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

15 years agoFix broken reference to possible_upgrades inside dep_zapdeps().
Zac Medico [Sun, 5 Jul 2009 21:01:58 +0000 (21:01 -0000)]
Fix broken reference to possible_upgrades inside dep_zapdeps().

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

15 years agoMake sure avoid_update always returns existing_node if available.
Zac Medico [Sun, 5 Jul 2009 20:44:53 +0000 (20:44 -0000)]
Make sure avoid_update always returns existing_node if available.

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

15 years agoBug #276264 - Note that eclass-overrides may make it necessary to set
Zac Medico [Sun, 5 Jul 2009 10:39:50 +0000 (10:39 -0000)]
Bug #276264 - Note that eclass-overrides may make it necessary to set
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/metadata/cache" in make.conf.

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

15 years agoRemove set operator support since the current implementation does not meet
Zac Medico [Sun, 5 Jul 2009 09:34:16 +0000 (09:34 -0000)]
Remove set operator support since the current implementation does not meet
user expectations, as mentioned in bug #253802, comment #5:

Package set operators currently operate on atoms, but what users really need
is for them to operate on the packages themselves. This will allow one set to
add or subtract packages from another even though the sets to not use the exact
same atoms to refer to the given packages.

I imagine the way this should be done is to create a mapping of atom -> package
for each set, perform the intersection using the packages, and then map the
package intersection back into a set of atoms.

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

15 years agoMake dblink.setfile() write environment.bz2 in binary mode.
Zac Medico [Sat, 4 Jul 2009 20:33:46 +0000 (20:33 -0000)]
Make dblink.setfile() write environment.bz2 in binary mode.

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

15 years agoAssume utf_8 encoding when reading raw ebuild metadata.
Zac Medico [Sat, 4 Jul 2009 20:20:43 +0000 (20:20 -0000)]
Assume utf_8 encoding when reading raw ebuild metadata.

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

15 years agoRemove the workaround from bug #263081 since most strings should be unicode
Zac Medico [Sat, 4 Jul 2009 19:57:22 +0000 (19:57 -0000)]
Remove the workaround from bug #263081 since most strings should be unicode
now.

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

15 years agoMake atomic_ofstream() use codecs.open() for py3k compatible unicode handling
Zac Medico [Sat, 4 Jul 2009 19:55:12 +0000 (19:55 -0000)]
Make atomic_ofstream() use codecs.open() for py3k compatible unicode handling
when mode does not contain 'b'.

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

15 years agoMake grablines() use codecs.open() for py3k compatible unicode handling.
Zac Medico [Sat, 4 Jul 2009 19:33:30 +0000 (19:33 -0000)]
Make grablines() use codecs.open() for py3k compatible unicode handling.

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

15 years agoMake code from previous commit safe for empty files.
Zac Medico [Sat, 4 Jul 2009 19:31:21 +0000 (19:31 -0000)]
Make code from previous commit safe for empty files.

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

15 years agoMake getconfig() use codecs.option() for py3k compatible unicode handling.
Zac Medico [Sat, 4 Jul 2009 19:25:42 +0000 (19:25 -0000)]
Make getconfig() use codecs.option() for py3k compatible unicode handling.

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

15 years agoAs a performance optimization, use StringIO instead of _insert_newline_eof to
Zac Medico [Sat, 4 Jul 2009 19:16:35 +0000 (19:16 -0000)]
As a performance optimization, use StringIO instead of _insert_newline_eof to
solve bug #228117. Thanks to Marat Radchenko <slonopotamusorama@gmail.com>
for this patch.

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

15 years agoCorrect --help usage since it no longer takes system, world, or --sync as
Zac Medico [Sat, 4 Jul 2009 19:11:51 +0000 (19:11 -0000)]
Correct --help usage since it no longer takes system, world, or --sync as
input. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoCorrect --help usage since it no longer takes system, world, or --sync as
Zac Medico [Sat, 4 Jul 2009 19:08:41 +0000 (19:08 -0000)]
Correct --help usage since it no longer takes system, world, or --sync as
input. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoUpdate help() usage since the myopts parameter is gone. Thanks to
Zac Medico [Sat, 4 Jul 2009 19:06:04 +0000 (19:06 -0000)]
Update help() usage since the myopts parameter is gone. Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoDon't pass myopts into profile_check() since it's no longer needed. Thanks to
Zac Medico [Sat, 4 Jul 2009 09:25:43 +0000 (09:25 -0000)]
Don't pass myopts into profile_check() since it's no longer needed. Thanks to
Radchenko <slonopotamusorama@gmail.com> for this patch.

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

15 years agoDelete runtime_pkg_mask to avoid memory leak.
Zac Medico [Sat, 4 Jul 2009 08:42:59 +0000 (08:42 -0000)]
Delete runtime_pkg_mask to avoid memory leak.

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

15 years agoMake LazyItemsDict derive from UserDict instead of dict so that we don't have
Zac Medico [Sat, 4 Jul 2009 06:23:56 +0000 (06:23 -0000)]
Make LazyItemsDict derive from UserDict instead of dict so that we don't have
to implement the pop method (and possibly others such as setdefault).

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

15 years agoRemove the --avoid-update option and make it the default behavior when
Zac Medico [Sat, 4 Jul 2009 06:13:04 +0000 (06:13 -0000)]
Remove the --avoid-update option and make it the default behavior when
--update is not specified, as suggested by Allen Brooker (AllenJB)
<gentoo-bugs@allenjb.me.uk> in bug #275945, comment #2.

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

15 years agoDisable depgraph._show_missed_update() when --quiet is enabled and --debug
Zac Medico [Sat, 4 Jul 2009 05:59:59 +0000 (05:59 -0000)]
Disable depgraph._show_missed_update() when --quiet is enabled and --debug
is not enabled.

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

15 years agoCleanup spinner before calling depgraph.display_problems().
Zac Medico [Sat, 4 Jul 2009 05:43:02 +0000 (05:43 -0000)]
Cleanup spinner before calling depgraph.display_problems().

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

15 years agoBug #275217 - Part 5 - When a slot conflict occurs, mask the first package
Zac Medico [Sat, 4 Jul 2009 05:32:59 +0000 (05:32 -0000)]
Bug #275217 - Part 5 - When a slot conflict occurs, mask the first package
that got pulled in and restart the calculation. Thanks to Sebastian Mingramm
(few) <s.mingramm@gmx.de> for the initial patch which I added some additional
features to:

 * display message about missed updates
 * cache frozen_config instance, to optimize performance
 * disable backtracking if it fails, fall back to a normal
   dep calculation + error message.

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

15 years agoDon't set RDEPEND=${RDEPEND-${DEPEND}} for EAPI=3 and simplify setting it for lower...
Arfrever Frehtes Taifersar Arahesis [Fri, 3 Jul 2009 21:26:07 +0000 (21:26 -0000)]
Don't set RDEPEND=${RDEPEND-${DEPEND}} for EAPI=3 and simplify setting it for lower EAPIs.

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

15 years agoImplement LazyItemsDict.pop() since dict.pop() bypasses our overridden
Zac Medico [Fri, 3 Jul 2009 20:29:39 +0000 (20:29 -0000)]
Implement LazyItemsDict.pop() since dict.pop()  bypasses our overridden
__getitem__ implementation. This fixes a problem with config.setcpv()
failing to set PORTAGE_REPO_NAME when appropriate. Thanks to Arfrever
for reporting.

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

15 years agoMake --help into an action, and move --help --sync output to the
Zac Medico [Fri, 3 Jul 2009 19:13:59 +0000 (19:13 -0000)]
Make --help into an action, and move --help --sync output to the
actions section. Thanks to Marat Radchenko <slonopotamusorama@gmail.com>
for this patch.

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

15 years agoMove "import copy" to the top of the file.
Zac Medico [Fri, 3 Jul 2009 18:34:45 +0000 (18:34 -0000)]
Move "import copy" to the top of the file.

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

15 years agoSkip PROVIDE conditional evaluation in PackageSet.iterAtomsForPackage(), since
Zac Medico [Fri, 3 Jul 2009 09:05:39 +0000 (09:05 -0000)]
Skip PROVIDE conditional evaluation in PackageSet.iterAtomsForPackage(), since
Package.metadata handles that automatically now.

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

15 years agoFix broken reference to _graph_trees.
Zac Medico [Fri, 3 Jul 2009 01:50:34 +0000 (01:50 -0000)]
Fix broken reference to _graph_trees.

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