portage.git
16 years agoAt the end of dyn_clean(), also remove the $CATEGORY directory if possible. v2.2_rc12
Zac Medico [Thu, 9 Oct 2008 20:31:04 +0000 (20:31 -0000)]
At the end of dyn_clean(), also remove the $CATEGORY directory if possible.

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

16 years agoRemove redundant os.close(master_fd) call inside SpawnProcess._start() since
Zac Medico [Thu, 9 Oct 2008 20:03:37 +0000 (20:03 -0000)]
Remove redundant os.close(master_fd) call inside SpawnProcess._start() since
that file discriptor is referenced by a file object which already has an
appropriate close() call. This fixes an 'IOError: [Errno 9] Bad file
descriptor' exception which was raised when attempting to close the file
object.

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

16 years agoFix code from previous commit so it properly checks $eapi to verify that
Zac Medico [Thu, 9 Oct 2008 19:46:07 +0000 (19:46 -0000)]
Fix code from previous commit so it properly checks $eapi to verify that
src_prepare is really a supported phase function.

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

16 years agoBug #240684 - Fix _ebuild_arg_to_phase() to handle the src_prepare phase
Zac Medico [Thu, 9 Oct 2008 19:32:20 +0000 (19:32 -0000)]
Bug #240684 - Fix _ebuild_arg_to_phase() to handle the src_prepare phase
so that the default() function is properly created.

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

16 years agoIn EbuildFetcher._set_returncode(), don't clean up PORTAGE_BUILDDIR if
Zac Medico [Thu, 9 Oct 2008 01:10:49 +0000 (01:10 -0000)]
In EbuildFetcher._set_returncode(), don't clean up PORTAGE_BUILDDIR if
keepwork or keeptemp are in FEATURES.

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

16 years agoDon't show the repo display when the merge list is empty.
Zac Medico [Wed, 8 Oct 2008 22:47:15 +0000 (22:47 -0000)]
Don't show the repo display when the merge list is empty.

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

16 years agoFix apparent breakage from r11593 (slot dep support):
Zac Medico [Wed, 8 Oct 2008 22:35:31 +0000 (22:35 -0000)]
Fix apparent breakage from r11593 (slot dep support):
* Handle KeyError from element.getAttribute() in makeAtom() and makeVersion().
* Avoid 'sre_constants.error: unmatched group' exceptions in revisionMatch()
  when the atom does not have a slot.

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

16 years agoIn EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful.
Zac Medico [Wed, 8 Oct 2008 18:25:39 +0000 (18:25 -0000)]
In EbuildBuild._fetch_exit(), clean up the fetch log if fetch was successful.

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

16 years agoUse separate temp directories in order to avoid potential name collisions.
Zac Medico [Wed, 8 Oct 2008 18:03:07 +0000 (18:03 -0000)]
Use separate temp directories in order to avoid potential name collisions.

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

16 years agoSince EbuildBuild no longer directs it's EbuildFetcher instance's output
Zac Medico [Wed, 8 Oct 2008 16:16:35 +0000 (16:16 -0000)]
Since EbuildBuild no longer directs it's EbuildFetcher instance's output
to the global fetch log, there's no need to schedule it on the fetch
queue.

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

16 years agoBefore returning config instances from Scheduler._allocate_config(), call the
Zac Medico [Wed, 8 Oct 2008 03:27:43 +0000 (03:27 -0000)]
Before returning config instances from Scheduler._allocate_config(), call the
config.reset() method to make sure all settings from the previous package get
flushed out (such as PORTAGE_LOG_FILE). This fixes a case where
PORTAGE_LOG_FILE leaked from the previous package to the clean phase of the
next one, resulting in an IOError due to the path being invalid and the parent
directory being nonexistent.

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

16 years agoGenerate elog messages for failed fetches. This restores some functionality
Zac Medico [Tue, 7 Oct 2008 20:48:17 +0000 (20:48 -0000)]
Generate elog messages for failed fetches. This restores some functionality
that was removed in r11645.

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

16 years agoInstead of using inheritance, reference the ConfigParser part of SetConfig as
Zac Medico [Tue, 7 Oct 2008 16:00:55 +0000 (16:00 -0000)]
Instead of using inheritance, reference the ConfigParser part of SetConfig as
an attribute in case we want to swap out the ConfigParser implemention and no
longer want to implement the whole interface.

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

16 years agoMake "qawarnings" a normal set since the missingvars code might modify it.
Zac Medico [Tue, 7 Oct 2008 15:51:30 +0000 (15:51 -0000)]
Make "qawarnings" a normal set since the missingvars code might modify it.

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

16 years agoChange the "qawarnings" variable from a list to a set.
Zac Medico [Tue, 7 Oct 2008 15:36:49 +0000 (15:36 -0000)]
Change the "qawarnings" variable from a list to a set.

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

16 years agoMake HOMEPAGE.missing fatal again since, in cases when homepages are no longer
Zac Medico [Tue, 7 Oct 2008 15:31:42 +0000 (15:31 -0000)]
Make HOMEPAGE.missing fatal again since, in cases when homepages are no longer
available, we can use a link to some site like packages.gentoo.org or
www.unmaintained-free-software.org.

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

16 years agoWhen EbuildBuild encounters a failed fetch, propagee the log path so that
Zac Medico [Tue, 7 Oct 2008 09:03:45 +0000 (09:03 -0000)]
When EbuildBuild encounters a failed fetch, propagee the log path so that
it can be properly displayed in the status display.

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

16 years agoMake EbuildFetcher clean up the build dir after failures in fetchonly mode
Zac Medico [Tue, 7 Oct 2008 08:52:45 +0000 (08:52 -0000)]
Make EbuildFetcher clean up the build dir after failures in fetchonly mode
since the log is in emerge-fetch.log anyway.

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

16 years agoMake EbuildFetcher direct fetch output to the normal build log. By keeping the
Zac Medico [Tue, 7 Oct 2008 08:40:33 +0000 (08:40 -0000)]
Make EbuildFetcher direct fetch output to the normal build log. By keeping the
output in the build log instead of the global emerge-fetch.log file, output
from a possible fetch failure can be recovered and displayed later.
TODO: Convert failed fetch to elog message as suggested in bug #234301.

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

16 years agoFix EbuildFetcher._wait_hook() so it can be called more than once without
Zac Medico [Tue, 7 Oct 2008 08:04:55 +0000 (08:04 -0000)]
Fix EbuildFetcher._wait_hook() so it can be called more than once without
throwing an AttributeError.

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

16 years agoBug #234301 - Add support to EbuildFetcher to collect elog messages that
Zac Medico [Tue, 7 Oct 2008 02:01:01 +0000 (02:01 -0000)]
Bug #234301 - Add support to EbuildFetcher to collect elog messages that
might be generated during the pkg_nofetch phase. This involves maintaining
a lock on PORTAGE_BUILDDIR where the elog messages are collected, and
cleaning up PORTAGE_BUILDDIR before releasing the lock.

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

16 years agoIn fetch(), never call the pkg_nofetch phase when in "listonly" mode.
Zac Medico [Mon, 6 Oct 2008 20:58:29 +0000 (20:58 -0000)]
In fetch(), never call the pkg_nofetch phase when in "listonly" mode.

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

16 years agoIn doebuild(), don't create build dirs when "listonly" fetch mode.
Zac Medico [Mon, 6 Oct 2008 20:51:23 +0000 (20:51 -0000)]
In doebuild(), don't create build dirs when "listonly" fetch mode.

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

16 years agoIn order to avoid "waiting for lock" messages
Zac Medico [Mon, 6 Oct 2008 20:12:20 +0000 (20:12 -0000)]
In order to avoid "waiting for lock" messages
at the beginning, which annoy users, never
spawn a prefetcher for the first package.

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

16 years agoFix KeyError raised from display_preserved_libs() when the realpath is used
Zac Medico [Mon, 6 Oct 2008 02:47:37 +0000 (02:47 -0000)]
Fix KeyError raised from display_preserved_libs() when the realpath is used
as a key in consumer_map instead of the orignal path that was returned from
the PreservedLibsRegistry.

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

16 years agoBug #240022 - Avoid duplicate output for the same library (due to symlinks)
Zac Medico [Sun, 5 Oct 2008 18:47:57 +0000 (18:47 -0000)]
Bug #240022 - Avoid duplicate output for the same library (due to symlinks)
in display_preserved_libs() by using os.path.realpath() to group duplicate
references together. Thanks to Fabian Groffen <grobian@g.o> for the initial
patch.

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

16 years agoMake HOMEPAGE.missing a warning since some packages become homeless even
Zac Medico [Sun, 5 Oct 2008 17:04:09 +0000 (17:04 -0000)]
Make HOMEPAGE.missing a warning since some packages become homeless even
though they still continue to work. Thanks to Robin H. Johnson <robbat2@g.o>
for the suggestion.

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

16 years agoAvoid raising a KeyError from display_preserved_libs() in cases when no
Zac Medico [Sun, 5 Oct 2008 16:57:47 +0000 (16:57 -0000)]
Avoid raising a KeyError from display_preserved_libs() in cases when no
owners are found for a particular library consumer.

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

16 years agoIn dyn_clean, cd to $PORTAGE_BUILDDIR/.. before attempting to remove it since
Zac Medico [Sun, 5 Oct 2008 16:31:26 +0000 (16:31 -0000)]
In dyn_clean, cd to $PORTAGE_BUILDDIR/.. before attempting to remove it since
some kernels, such as Solaris, return EINVAL when an attempt is made to remove
the current working directory. Thanks to Fabian Groffen <grobian@g.o> for
reporting.

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

16 years agoBug #239529 - When doins is called on a symlink to a directory, preserve the
Zac Medico [Sun, 5 Oct 2008 16:04:31 +0000 (16:04 -0000)]
Bug #239529 - When doins is called on a symlink to a directory, preserve the
name of the symlink for the installed directory. This involves temporarily
renaming the directory and then renaming it back again.

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

16 years ago* When ensuring sane $PWD in ebuild.sh, die if the `cd "$PORTAGE_BUILDDIR"`
Zac Medico [Sun, 5 Oct 2008 05:09:33 +0000 (05:09 -0000)]
* When ensuring sane $PWD in ebuild.sh, die if the `cd "$PORTAGE_BUILDDIR"`
  call fails.
* Create $PORTAGE_BUILDDIR for the "fetch" phase too since it might be
  necessary to call pkg_nofetch.

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

16 years agoOnly update the confmem file when something has changed.
Zac Medico [Sun, 5 Oct 2008 04:20:08 +0000 (04:20 -0000)]
Only update the confmem file when something has changed.

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

16 years agoFix PreservedLibsRegistry.store() so that it only rewrites the data file when
Zac Medico [Sun, 5 Oct 2008 04:12:32 +0000 (04:12 -0000)]
Fix PreservedLibsRegistry.store() so that it only rewrites the data file when
something has changed.

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

16 years agoRedirect pushd and popd output to /dev/null when appropriate.
Zac Medico [Sun, 5 Oct 2008 03:46:08 +0000 (03:46 -0000)]
Redirect pushd and popd output to /dev/null when appropriate.

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

16 years agoAdd missing quotes on pushd argument from previous commit.
Zac Medico [Sun, 5 Oct 2008 03:40:25 +0000 (03:40 -0000)]
Add missing quotes on pushd argument from previous commit.

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

16 years agoBug #239529 - Fix 'doins' to work with symlinks to directories, like it did
Zac Medico [Sun, 5 Oct 2008 03:39:27 +0000 (03:39 -0000)]
Bug #239529 - Fix 'doins' to work with symlinks to directories, like it did
before the changes from bug #210575.

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

16 years agoA cpv can be returned from dbapi.match() as an old-style virtual match even
Zac Medico [Sun, 5 Oct 2008 02:17:18 +0000 (02:17 -0000)]
A cpv can be returned from dbapi.match() as an old-style virtual match even
in cases when the package does not actually PROVIDE the virtual. Filter out
any such false matches inside depgraph._select_package() and
_show_unsatisfied_dep(). Thanks to Ned Ludd <solar@g.o> for reporting this
issue which was discovered when attempting to install virtual/libc on uclibc
profile. Apparently the uclibc ebuilds need to be fixed to properly set
PROVIDE when the metadata cache is generated.

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

16 years agoHandle AttributeError in case os.getloadavg does not exist, like when python
Zac Medico [Sat, 4 Oct 2008 21:32:29 +0000 (21:32 -0000)]
Handle AttributeError in case os.getloadavg does not exist, like when python
is built agains uclibc.

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

16 years agoFix depgraph._add_pkg() to ensure that the existing package in the graph
Zac Medico [Sat, 4 Oct 2008 05:40:27 +0000 (05:40 -0000)]
Fix depgraph._add_pkg() to ensure that the existing package in the graph
matches the required atom in cases when a different package has been
passed in. This solves a problem with silently unsatisfied USE deps that
was reported by Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>. Now the
unsatisfied dependency will result in a "slot conflict" rather than be
silently ignored.

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

16 years agoMake depgraph._add_pkg() take a Dependency instance. This provides access to
Zac Medico [Sat, 4 Oct 2008 05:09:23 +0000 (05:09 -0000)]
Make depgraph._add_pkg() take a Dependency instance. This provides access to
the atom which pulled in the package, which may be needed in order to verify
that a different package that's been added to the graph is capable of
satisfying the atom.

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

16 years agoFix `svn status` output parsing for compatibility with subversion-1.6. Thanks
Zac Medico [Thu, 2 Oct 2008 16:57:45 +0000 (16:57 -0000)]
Fix `svn status` output parsing for compatibility with subversion-1.6. Thanks
to Arfrever for this patch.

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

16 years agoRemove pointless copying of the owners dict inside display_preserved_libs().
Zac Medico [Thu, 2 Oct 2008 06:56:33 +0000 (06:56 -0000)]
Remove pointless copying of the owners dict inside display_preserved_libs().

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

16 years agoImplement a new "changelog.ebuildadded" check which causes repoman to bail
Zac Medico [Thu, 2 Oct 2008 06:35:04 +0000 (06:35 -0000)]
Implement a new "changelog.ebuildadded" check which causes repoman to bail
out if an ebuild has been added and the ChangeLog has not been modified. This
was requested by Robin H Johnson <robbat2@g.o> since it is a requirement for
the packages.gentoo.org ChangeLog code.

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

16 years agoIn JobStatusDisplay._update(), set _displayed = True when ruturning early due
Zac Medico [Thu, 2 Oct 2008 05:11:17 +0000 (05:11 -0000)]
In JobStatusDisplay._update(), set _displayed = True when ruturning early due
to stdout not being a tty. This fixes a problem excess output which was
reported by Daniel Robbins.

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

16 years agoOptimize display_preserved_libs() by using a single getFileOwnerMap() to look
Zac Medico [Thu, 2 Oct 2008 03:58:49 +0000 (03:58 -0000)]
Optimize display_preserved_libs() by using a single getFileOwnerMap() to look
up all the files.

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

16 years agoFix broken logic in Scheduler._main_loop() which would allow the main loop to
Zac Medico [Thu, 2 Oct 2008 02:52:41 +0000 (02:52 -0000)]
Fix broken logic in Scheduler._main_loop() which would allow the main loop to
exit while one or more merges are still scheduled. Thanks to Patrick Lauer for
reporting.

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

16 years agoCall elog_process before calling the "clean" phase for --buildpkgonly mode.
Zac Medico [Thu, 2 Oct 2008 00:57:46 +0000 (00:57 -0000)]
Call elog_process before calling the "clean" phase for --buildpkgonly mode.

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

16 years agoWhen parsing PORTAGE_ELOG_SYSTEM, stack values in a dict so that things like
Zac Medico [Thu, 2 Oct 2008 00:44:51 +0000 (00:44 -0000)]
When parsing PORTAGE_ELOG_SYSTEM, stack values in a dict so that things like
"echo:info echo:qa" stack like one might expect. Thanks to Betelgeuse for
reporting.

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

16 years agoBug #239272 - Handle InvalidAtom exception inside
Zac Medico [Wed, 1 Oct 2008 21:17:32 +0000 (21:17 -0000)]
Bug #239272 - Handle InvalidAtom exception inside
depgraph.validate_blockers().

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

16 years agoGenerate an eqawarn message if econf is called from src_compile and
Zac Medico [Wed, 1 Oct 2008 17:43:37 +0000 (17:43 -0000)]
Generate an eqawarn message if econf is called from src_compile and
src_configure is also defined. Thanks to Betelgeuse for the patch which
I've modified to be silent in EAPI 0 or 1 in case ebuilds want to define
src_configure in those EAPIs and call it manually from src_compile.

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

16 years agoHandle InvalidDependString from portdbapi.getFetchMap() inside
Zac Medico [Tue, 30 Sep 2008 15:16:03 +0000 (15:16 -0000)]
Handle InvalidDependString from portdbapi.getFetchMap() inside
search.output(). Thanks to agaffney for reporting.

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

16 years agoNow that elog_base() uses 'echo -e' to expand escape codes prior to using
Zac Medico [Tue, 30 Sep 2008 01:06:20 +0000 (01:06 -0000)]
Now that elog_base() uses 'echo -e' to expand escape codes prior to using
'read' to split on newlines, it's safe to use newlines as delimiters in
the log file since 'read' is guaranteed to split any newlines contained
in the arguments.

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

16 years agoBug #239006 - In FakeVartree._aux_get_wrapper(), fall back to vdb metadata
Zac Medico [Mon, 29 Sep 2008 16:58:48 +0000 (16:58 -0000)]
Bug #239006 - In FakeVartree._aux_get_wrapper(), fall back to vdb metadata
if the live ebuild's EAPI is unsupported.

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

16 years agoallow the portage.sets. prefix to be omitted in 'class' options of set definitions
Marius Mauch [Mon, 29 Sep 2008 00:18:59 +0000 (00:18 -0000)]
allow the portage.sets. prefix to be omitted in 'class' options of set definitions

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

16 years agoAdd a new DummyPackageSet handler to make set operators easier to use
Marius Mauch [Sun, 28 Sep 2008 23:38:28 +0000 (23:38 -0000)]
Add a new DummyPackageSet handler to make set operators easier to use

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

16 years agoremove the 'repository' option from CategorySet in favor of the generic 'intersect...
Marius Mauch [Sun, 28 Sep 2008 23:02:25 +0000 (23:02 -0000)]
remove the 'repository' option from CategorySet in favor of the generic 'intersect' option

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

16 years agoallow selection of metadata source for VariableSet
Marius Mauch [Sun, 28 Sep 2008 22:55:35 +0000 (22:55 -0000)]
allow selection of metadata source for VariableSet

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

16 years agomake sure that cli-defined sets aren't added to @world
Marius Mauch [Sun, 28 Sep 2008 22:36:42 +0000 (22:36 -0000)]
make sure that cli-defined sets aren't added to @world

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

16 years agoFor compatibility with long-standing --columns behavior, do not display
Zac Medico [Sun, 28 Sep 2008 22:28:19 +0000 (22:28 -0000)]
For compatibility with long-standing --columns behavior, do not display
"uninstall" or satsified "blocks" nodes in the merge list when --columns
is enabled. Thanks to solar for the suggestion.

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

16 years agoadd support for slot dependencies (original patch by Robert Buchholz <rbu@gentoo...
Marius Mauch [Sun, 28 Sep 2008 19:15:43 +0000 (19:15 -0000)]
add support for slot dependencies (original patch by Robert Buchholz <rbu@gentoo.org>)

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

16 years agouse summarylist for output of test mode when --verbose is given (patch by Robert...
Marius Mauch [Sun, 28 Sep 2008 18:59:47 +0000 (18:59 -0000)]
use summarylist for output of test mode when --verbose is given (patch by Robert Buchholz <rbu@gentoo.org>)

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

16 years agosort summarylist output (patch by Robert Buchholz <rbu@gentoo.org>)
Marius Mauch [Sun, 28 Sep 2008 18:58:29 +0000 (18:58 -0000)]
sort summarylist output (patch by Robert Buchholz <rbu@gentoo.org>)

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

16 years agoprint dates in a consistent format (patch by Robert Buchholz <rbu@gentoo.org>)
Marius Mauch [Sun, 28 Sep 2008 18:50:02 +0000 (18:50 -0000)]
print dates in a consistent format (patch by Robert Buchholz <rbu@gentoo.org>)

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

16 years agoalso accept glsa-2.dtd as valid for GLSAs (patch by Robert Buchholz <rbu@gentoo.org>)
Marius Mauch [Sun, 28 Sep 2008 18:41:56 +0000 (18:41 -0000)]
also accept glsa-2.dtd as valid for GLSAs (patch by Robert Buchholz <rbu@gentoo.org>)

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

16 years agoaccount for DTD changes wrt 'revised' element (patch by Robert Buchholz <rbu@gentoo...
Marius Mauch [Sun, 28 Sep 2008 18:39:44 +0000 (18:39 -0000)]
account for DTD changes wrt 'revised' element (patch by Robert Buchholz <rbu@gentoo.org>)

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

16 years agodocument AgeSet handler class
Marius Mauch [Sun, 28 Sep 2008 18:09:01 +0000 (18:09 -0000)]
document AgeSet handler class

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

16 years agoupdate set config documentation to include extend, remove and intersect options
Marius Mauch [Sun, 28 Sep 2008 17:57:45 +0000 (17:57 -0000)]
update set config documentation to include extend, remove and intersect options

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

16 years agouse ignorelist to avoid potential infite loop
Marius Mauch [Sun, 28 Sep 2008 17:33:00 +0000 (17:33 -0000)]
use ignorelist to avoid potential infite loop

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

16 years agoAdd operator logic to sets.conf
Marius Mauch [Sun, 28 Sep 2008 17:27:44 +0000 (17:27 -0000)]
Add operator logic to sets.conf

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

16 years agoProperly process set arguments inside set expressions
Marius Mauch [Sun, 28 Sep 2008 17:02:51 +0000 (17:02 -0000)]
Properly process set arguments inside set expressions

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

16 years agodisable redefintion errors when updating the set definitions
Marius Mauch [Sun, 28 Sep 2008 17:01:58 +0000 (17:01 -0000)]
disable redefintion errors when updating the set definitions

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

16 years agoimplement set arguments to reconfigure and create package sets on the commandline
Marius Mauch [Sun, 28 Sep 2008 16:08:50 +0000 (16:08 -0000)]
implement set arguments to reconfigure and create package sets on the commandline

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

16 years agoAnother correctness fix in BlockerDB.findInstalledBlockers().
Zac Medico [Sat, 27 Sep 2008 22:16:26 +0000 (22:16 -0000)]
Another correctness fix in BlockerDB.findInstalledBlockers().

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

16 years agoFix code inside BlockerDB.findInstalledBlockers() to correctly strip multiple
Zac Medico [Sat, 27 Sep 2008 22:10:26 +0000 (22:10 -0000)]
Fix code inside BlockerDB.findInstalledBlockers() to correctly strip multiple
"!" characters when necessary. The code seemed to work fine anyway so this is
more a correctness fix than a bug fix.

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

16 years agoEAPI 2 is now supported.
Zac Medico [Sat, 27 Sep 2008 20:04:55 +0000 (20:04 -0000)]
EAPI 2 is now supported.

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

16 years agoMask packages with deprecated EAPIs in order to prevent them from being
Zac Medico [Sat, 27 Sep 2008 19:24:10 +0000 (19:24 -0000)]
Mask packages with deprecated EAPIs in order to prevent them from being
installed. Such packages will still behave normally if they are already
installed, but preventing new installation will remind people to update
the EAPIs in their overlays if necessary.

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

16 years agoIn the --depclean docs, there's no need to advise the user to use --oneshot
Zac Medico [Sat, 27 Sep 2008 05:55:10 +0000 (05:55 -0000)]
In the --depclean docs, there's no need to advise the user to use --oneshot
when updating @system @world since @system now has world-candidate set to
False by default.

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

16 years agoMake $PWD default to $PORTAGE_BUILDDIR since $WORKDIR is sometimes created
Zac Medico [Sat, 27 Sep 2008 00:08:42 +0000 (00:08 -0000)]
Make $PWD default to $PORTAGE_BUILDDIR since $WORKDIR is sometimes created
later.

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

16 years agoAdd PROPERTIES to the list of USE evaluated keys for the Packages index.
Zac Medico [Fri, 26 Sep 2008 23:00:01 +0000 (23:00 -0000)]
Add PROPERTIES to the list of USE evaluated keys for the Packages index.

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

16 years agoAdd PROPERTIES to all of the metadata caches.
Zac Medico [Fri, 26 Sep 2008 21:40:55 +0000 (21:40 -0000)]
Add PROPERTIES to all of the metadata caches.

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

16 years agoUpdate hardcoded auxdbkey_order attributes to include PROPERTIES.
Zac Medico [Fri, 26 Sep 2008 19:20:04 +0000 (19:20 -0000)]
Update hardcoded auxdbkey_order attributes to include PROPERTIES.

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

16 years agoBug #238766 - Revert the fetch() mirror:// behavior change from r11537 since v2.2_rc11
Zac Medico [Fri, 26 Sep 2008 15:00:03 +0000 (15:00 -0000)]
Bug #238766 - Revert the fetch() mirror:// behavior change from r11537 since
it wasn't actually needed to comply with PMS 9.2.8, and the change actuall
caused incorrect mirror fetching behavior.

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

16 years agoAdd back code removed in r11553 and fix logic to avoid IndexError. v2.2_rc10
Zac Medico [Fri, 26 Sep 2008 03:13:33 +0000 (03:13 -0000)]
Add back code removed in r11553 and fix logic to avoid IndexError.

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

16 years agoHandle possible CacheError inside mirror_cache().
Zac Medico [Fri, 26 Sep 2008 02:16:14 +0000 (02:16 -0000)]
Handle possible CacheError inside mirror_cache().

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

16 years agoDirect EOutput.eerror() and ewarn() output to stderr.
Zac Medico [Fri, 26 Sep 2008 01:48:20 +0000 (01:48 -0000)]
Direct EOutput.eerror() and ewarn() output to stderr.

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

16 years agoFix a potential IndexError inside display_preserved_libs().
Zac Medico [Fri, 26 Sep 2008 01:45:17 +0000 (01:45 -0000)]
Fix a potential IndexError inside display_preserved_libs().

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

16 years agoMake flat_hash write keys in alphabetical order.
Zac Medico [Fri, 26 Sep 2008 01:15:44 +0000 (01:15 -0000)]
Make flat_hash write keys in alphabetical order.

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

16 years agoRename the EAPI 2 docs and to indicate that they are no longer a draft, and
Zac Medico [Fri, 26 Sep 2008 00:16:29 +0000 (00:16 -0000)]
Rename the EAPI 2 docs and to indicate that they are no longer a draft, and
remove the EAPI 2_pre* docs.

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

16 years agoBump to EAPI 2.
Zac Medico [Fri, 26 Sep 2008 00:09:06 +0000 (00:09 -0000)]
Bump to EAPI 2.

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

16 years agoAdd PROPERTIES to portage.auxdbkeys since it's been approved by the council.
Zac Medico [Thu, 25 Sep 2008 23:42:13 +0000 (23:42 -0000)]
Add PROPERTIES to portage.auxdbkeys since it's been approved by the council.

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

16 years agoFix mirror_cache() so it won't silently swallow a KeyError if _mtime_ or
Zac Medico [Thu, 25 Sep 2008 23:29:37 +0000 (23:29 -0000)]
Fix mirror_cache() so it won't silently swallow a KeyError if _mtime_ or
_eclass_ happens to be missing from the cache data for some reason.

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

16 years agoEnsure that cache modules always return a dict containing the _eclasses_
Zac Medico [Thu, 25 Sep 2008 23:13:52 +0000 (23:13 -0000)]
Ensure that cache modules always return a dict containing the _eclasses_
key.

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

16 years agoFix message: s/One or packages/One or more packages/. Thanks to Marijn
Zac Medico [Thu, 25 Sep 2008 21:23:20 +0000 (21:23 -0000)]
Fix message: s/One or packages/One or more packages/. Thanks to Marijn
Schouten <hkBst@g.o> for reporting.

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

16 years agoUse echo -e when splitting lines in e* functions, for compatibility with
Zac Medico [Thu, 25 Sep 2008 18:58:38 +0000 (18:58 -0000)]
Use echo -e when splitting lines in e* functions, for compatibility with
previous behavior wrt \e escape codes such as `elog "\e[31m***\e[0m"` for
example. Thanks to Arfrever for finding this solution.

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

16 years agochange set expression syntax: operators now have a @ suffix (IOW: all operands must...
Marius Mauch [Thu, 25 Sep 2008 17:03:18 +0000 (17:03 -0000)]
change set expression syntax: operators now have a @ suffix (IOW: all operands must be prefixed with @) to maintain compability with existing set names containing hyphens

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

16 years agoimplement simple expression logic for apckage sets to generate unions, intersections...
Marius Mauch [Thu, 25 Sep 2008 16:37:06 +0000 (16:37 -0000)]
implement simple expression logic for apckage sets to generate unions, intersections and differences of two or more package sets

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

16 years agomove set expansion code into its own function
Marius Mauch [Thu, 25 Sep 2008 15:45:13 +0000 (15:45 -0000)]
move set expansion code into its own function

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

16 years agorelocate the post_emerge call so it gets called in more situations.
Marius Mauch [Thu, 25 Sep 2008 15:26:50 +0000 (15:26 -0000)]
relocate the post_emerge call so it gets called in more situations.

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

16 years agoAdd a new AgeSet class to select installed packages that have been installed more...
Marius Mauch [Thu, 25 Sep 2008 15:25:27 +0000 (15:25 -0000)]
Add a new AgeSet class to select installed packages that have been installed more/less than n days ago

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

16 years agoFix the case where all arguments are filtered out by
Zac Medico [Thu, 25 Sep 2008 13:30:33 +0000 (13:30 -0000)]
Fix the case where all arguments are filtered out by
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES, since otherwise 'set' was
called with no arguments which caused the environment to be
displayed on stdout.

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