portage.git
16 years agoCentralize select.poll() event handling in MergeTask._schedule(). This will
Zac Medico [Sun, 29 Jun 2008 17:27:37 +0000 (17:27 -0000)]
Centralize select.poll() event handling in MergeTask._schedule(). This will
allow the parent process to handle output of multiple child processes
running in parllel.

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

16 years agoAdd EMERGE_FROM to the blacklisted vars in the config constructor.
Zac Medico [Sun, 29 Jun 2008 15:08:37 +0000 (15:08 -0000)]
Add EMERGE_FROM to the blacklisted vars in the config constructor.

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

16 years ago * Add "fd_pipes" and "returnpid" parameters to doebuild() and pass
Zac Medico [Sun, 29 Jun 2008 14:51:05 +0000 (14:51 -0000)]
 * Add "fd_pipes" and "returnpid" parameters to doebuild() and pass
   these into spawn calls, enabling ebuild processes to execute
   asynchronously.

 * Add a EbuildPhase class that's derived from the pty logging code
   inside portage.spawn().

 * Integrate post-phase code from spawnebuild() into EbuildBuild.execute()
   so that it still gets called even though doebuild() calls execute
   asynchronously.

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

16 years agoIn EbuildBuild.execute(), call doebuild() separately for each phase since
Zac Medico [Sun, 29 Jun 2008 09:38:16 +0000 (09:38 -0000)]
In EbuildBuild.execute(), call doebuild() separately for each phase since
it will be easier to add asynchronous support to doebuild() if it's called
this way.

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

16 years agoSplit out a _check_build_log() function from spawnebuild().
Zac Medico [Sun, 29 Jun 2008 08:50:36 +0000 (08:50 -0000)]
Split out a _check_build_log() function from spawnebuild().

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

16 years agoSplit out a _post_src_install_uid_fix() function from spawnebuild().
Zac Medico [Sun, 29 Jun 2008 08:23:17 +0000 (08:23 -0000)]
Split out a _post_src_install_uid_fix() function from spawnebuild().

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

16 years agoSplit out a _spawn_misc_sh() function from spawnebuild().
Zac Medico [Sun, 29 Jun 2008 08:09:58 +0000 (08:09 -0000)]
Split out a _spawn_misc_sh() function from spawnebuild().

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

16 years agoHandle invalid atoms inside depgraph._add_pkg_deps(), to avoid an
Zac Medico [Sun, 29 Jun 2008 06:46:13 +0000 (06:46 -0000)]
Handle invalid atoms inside depgraph._add_pkg_deps(), to avoid an
unhandled InvalidAtom exception from dep_expand() when matching
against the vardb.

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

16 years agoMove clean code, from the previous commit, from doebuild() to
Zac Medico [Sun, 29 Jun 2008 04:27:57 +0000 (04:27 -0000)]
Move clean code, from the previous commit, from doebuild() to
EbuildBuild.execute() where it fits better.

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

16 years agoInstead of calling the ebuild "clean" phase in MergeTask.merge(),
Zac Medico [Sun, 29 Jun 2008 03:13:17 +0000 (03:13 -0000)]
Instead of calling the ebuild "clean" phase in MergeTask.merge(),
move it inside doebuild() where it can be tied into the actionmap_deps
framework.

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

16 years agoSplit out an EbuildBuildDir class to handle locking of the build dir.
Zac Medico [Sun, 29 Jun 2008 01:43:13 +0000 (01:43 -0000)]
Split out an EbuildBuildDir class to handle locking of the build dir.

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

16 years agoHandle re.error exceptions raised from re.compile() when ACCEPT_CHOSTS
Zac Medico [Sat, 28 Jun 2008 23:54:43 +0000 (23:54 -0000)]
Handle re.error exceptions raised from re.compile() when ACCEPT_CHOSTS
is invalid. Thanks to solar for reporting.

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

16 years agoMake EbuildBinpkg delegate everything up to src_install() to
Zac Medico [Sat, 28 Jun 2008 23:32:58 +0000 (23:32 -0000)]
Make EbuildBinpkg delegate everything up to src_install() to
the EbuildBuild class.

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

16 years ago* Remove unused EbuildBuild.pretend attribute.
Zac Medico [Sat, 28 Jun 2008 22:38:51 +0000 (22:38 -0000)]
* Remove unused EbuildBuild.pretend attribute.
* Add TODO not about asynchronous execution.

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

16 years agoBug #229859 - Also add atom validation to match().
Zac Medico [Sat, 28 Jun 2008 22:14:25 +0000 (22:14 -0000)]
Bug #229859 - Also add atom validation to match().

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

16 years agoCopy portageq exit code validation from has_version() to best_version().
Zac Medico [Sat, 28 Jun 2008 21:58:02 +0000 (21:58 -0000)]
Copy portageq exit code validation from has_version() to best_version().

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

16 years agoBug #229859 - Make portageq check atom validity when has_version() and
Zac Medico [Sat, 28 Jun 2008 21:54:31 +0000 (21:54 -0000)]
Bug #229859 - Make portageq check atom validity when has_version() and
best_version() are called from inside the ebuild environment.

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

16 years agoUse the EbuildMerge class instead of portage.merge().
Zac Medico [Sat, 28 Jun 2008 09:16:08 +0000 (09:16 -0000)]
Use the EbuildMerge class instead of portage.merge().

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

16 years agoSplit out a PackageUninstall class.
Zac Medico [Sat, 28 Jun 2008 09:08:24 +0000 (09:08 -0000)]
Split out a PackageUninstall class.

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

16 years ago* Split out an EbuildBinpkg class.
Zac Medico [Sat, 28 Jun 2008 07:00:45 +0000 (07:00 -0000)]
* Split out an EbuildBinpkg class.
* Remove unused EbuildBuild.ldpath_mtimes attribute.

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

16 years agoSplit out an EbuildBuild class.
Zac Medico [Sat, 28 Jun 2008 06:10:23 +0000 (06:10 -0000)]
Split out an EbuildBuild class.

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

16 years agoFix typo.
Zac Medico [Sat, 28 Jun 2008 06:06:10 +0000 (06:06 -0000)]
Fix typo.

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

16 years agoSplit out an EbuildMerge class.
Zac Medico [Sat, 28 Jun 2008 05:24:13 +0000 (05:24 -0000)]
Split out an EbuildMerge class.

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

16 years ago * Split out a BinpkgMerge class.
Zac Medico [Sat, 28 Jun 2008 05:04:19 +0000 (05:04 -0000)]
 * Split out a BinpkgMerge class.
 * Fix typos in _get_hash_key() methods.

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

16 years agoSplit out a BinpkgFetcher class.
Zac Medico [Sat, 28 Jun 2008 04:20:53 +0000 (04:20 -0000)]
Split out a BinpkgFetcher class.

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

16 years agoSplit out an EbuildFetcher class.
Zac Medico [Sat, 28 Jun 2008 02:53:36 +0000 (02:53 -0000)]
Split out an EbuildFetcher class.

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

16 years agoSplit the MergeTask._merge() method into 3 smaller methods. The new
Zac Medico [Sat, 28 Jun 2008 01:45:14 +0000 (01:45 -0000)]
Split the MergeTask._merge() method into 3 smaller methods. The new
methods are _execute_task() and _post_merge().

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

16 years agoBug #226307 - Copy come code from depgraph._iter_atoms_for_pkg() that
Zac Medico [Sat, 28 Jun 2008 01:01:42 +0000 (01:01 -0000)]
Bug #226307 - Copy come code from depgraph._iter_atoms_for_pkg() that
was used to solve bug #218854, and use it inside unmerge() when
matching sets to packages.

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

16 years agoFix depgraph.break_refs() to work with DependencyArg instances (or anything
Zac Medico [Fri, 27 Jun 2008 23:42:29 +0000 (23:42 -0000)]
Fix depgraph.break_refs() to work with DependencyArg instances (or anything
else that may have a "root_config" attribute).

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

16 years agoRemove the MergeTask._blocker_db attribute since it can just be a
Zac Medico [Fri, 27 Jun 2008 23:34:55 +0000 (23:34 -0000)]
Remove the MergeTask._blocker_db attribute since it can just be a
local variable.

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

16 years agoBreak references from Package instances in the digraph before passing
Zac Medico [Fri, 27 Jun 2008 23:17:56 +0000 (23:17 -0000)]
Break references from Package instances in the digraph before passing
it into the MergeTask constructor.

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

16 years agoPass the digraph into the MergeTask constructor. It's currently unused
Zac Medico [Fri, 27 Jun 2008 22:53:08 +0000 (22:53 -0000)]
Pass the digraph into the MergeTask constructor. It's currently unused
but it will be useful for parallel scheduling.

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

16 years agoFix typo.
Zac Medico [Fri, 27 Jun 2008 22:44:01 +0000 (22:44 -0000)]
Fix typo.

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

16 years agoAdd documentation for the new --keep-going option.
Zac Medico [Fri, 27 Jun 2008 22:26:22 +0000 (22:26 -0000)]
Add documentation for the new --keep-going option.

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

16 years agoGenerate and log eerror messages for any packages that need to be dropped
Zac Medico [Fri, 27 Jun 2008 20:58:40 +0000 (20:58 -0000)]
Generate and log eerror messages for any packages that need to be dropped
due to unsatisfied dependencies when --keep-going is enabled.

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

16 years agoCall clear_caches() after the depgraph is out of scope, in MergeTask.merge().
Zac Medico [Fri, 27 Jun 2008 08:04:12 +0000 (08:04 -0000)]
Call clear_caches() after the depgraph is out of scope, in MergeTask.merge().

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

16 years agoBug #12768 - Add a --keep-going option. This uses the same resume_depgraph()
Zac Medico [Fri, 27 Jun 2008 07:49:57 +0000 (07:49 -0000)]
Bug #12768 - Add a --keep-going option. This uses the same resume_depgraph()
function that's called for emerge --resume operations. Given the remaining
tasks, depedencies are recalculated and any tasks with unsatisfied
dependencies are automatically dropped.

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

16 years agoUse bool() to simplify ObjectProxy.__nonzero__().
Zac Medico [Fri, 27 Jun 2008 06:44:29 +0000 (06:44 -0000)]
Use bool() to simplify ObjectProxy.__nonzero__().

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

16 years agoSplit the --skipfirst code into a resume_depgraph() function that will
Zac Medico [Fri, 27 Jun 2008 04:00:48 +0000 (04:00 -0000)]
Split the --skipfirst code into a resume_depgraph() function that will
be useful for implementing a --keep-going option (bug #12768).

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

16 years agoFor brevity, and consistency with pkgcore, rename "all-installed" to just
Zac Medico [Thu, 26 Jun 2008 22:05:00 +0000 (22:05 -0000)]
For brevity, and consistency with pkgcore, rename "all-installed" to just
"installed". Thanks to ferringb for the suggestion.

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

16 years agoCall use_reduce() with matchall=1 when checking depstrings. Otherwise it's
Zac Medico [Thu, 26 Jun 2008 21:36:17 +0000 (21:36 -0000)]
Call use_reduce() with matchall=1 when checking depstrings. Otherwise it's
possible for invalid deps to be ignored. Thanks to grobian for reporting.

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

16 years agoAdd "PATH" to the set of allowed pacakge metadata keys for the PackageIndex.
Zac Medico [Thu, 26 Jun 2008 21:16:04 +0000 (21:16 -0000)]
Add "PATH" to the set of allowed pacakge metadata keys for the PackageIndex.

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

16 years agoFix the PermissionDenied message for color.map.
Zac Medico [Thu, 26 Jun 2008 19:34:02 +0000 (19:34 -0000)]
Fix the PermissionDenied message for color.map.

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

16 years ago* Remove PORTAGE_LEGACY_GLOBALS hack for portage import since late
Zac Medico [Thu, 26 Jun 2008 19:28:29 +0000 (19:28 -0000)]
* Remove PORTAGE_LEGACY_GLOBALS hack for portage import since late
  initialization of portage.settings (via ObjectProxy) allows us
  to rely on being able to access the portage.exception namespace
  before portage.settings is initialized.

* Use portage.settings["ROOT"] instead of portage.root to avoid
  potential ObjectProxy compatibility issues.

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

16 years agoUse settings["ROOT"] at the beginning of env_update() to avoid breakage
Zac Medico [Thu, 26 Jun 2008 18:49:14 +0000 (18:49 -0000)]
Use settings["ROOT"] at the beginning of env_update() to avoid breakage
due to "root" being an ObjectProxy instance.

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

16 years agoHandle KeyError from aux_get() inside dbapi._iter_match_slot() and
Zac Medico [Thu, 26 Jun 2008 18:24:34 +0000 (18:24 -0000)]
Handle KeyError from aux_get() inside dbapi._iter_match_slot() and
_iter_match_use(). Thanks to grobian for reporting.

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

16 years agochange default name of EverythingSet to @all-installed (bug #229467)
Marius Mauch [Thu, 26 Jun 2008 17:11:52 +0000 (17:11 -0000)]
change default name of EverythingSet to @all-installed (bug #229467)

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

16 years agoAlso use a separate proxy type for portage.mtimedb since it's independent
Zac Medico [Thu, 26 Jun 2008 06:43:47 +0000 (06:43 -0000)]
Also use a separate proxy type for portage.mtimedb since it's independent
from the portdb and settings.

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

16 years agoUse a separate proxy type to trigger portage.portdb initialization separately
Zac Medico [Thu, 26 Jun 2008 06:01:30 +0000 (06:01 -0000)]
Use a separate proxy type to trigger portage.portdb initialization separately
from the rest of the legacy global variables. This can be useful since
sometimes the other variables are needed while the portdb is not.

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

16 years agoImplement lazy initialization of global "portdb", "settings" and other
Zac Medico [Thu, 26 Jun 2008 05:28:04 +0000 (05:28 -0000)]
Implement lazy initialization of global "portdb", "settings" and other
variables that pollute the portage module. This works by initializing
the global variables with dummy "proxy" objects that serve as a means
to trigger lazy initialization. As soon as the first attribute access
or method call occurs on one of the proxy objects, it causes all the
proxy objects to be replaced with the real ones.

It's possible for an unsupported attribute access or method call on a
proxy object to trigger an error, leading to breakage. However, hopefully
these such corner cases will negligible (only time will tell).

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

16 years agoMake PackageIndex use SlotDict for package metadata storage. The set of
Zac Medico [Thu, 26 Jun 2008 00:49:10 +0000 (00:49 -0000)]
Make PackageIndex use SlotDict for package metadata storage. The set of
allowed keys is passed into the PackageIndex constructor (normal dict
instances will be used if the set of keys is not passed in for some
reason). A SlotDict.allowed_keys attribute now provides access to a
frozenset of allowed keys.

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

16 years agoUse SlotDict where appropriate in binarytree._populate().
Zac Medico [Wed, 25 Jun 2008 23:10:28 +0000 (23:10 -0000)]
Use SlotDict where appropriate in binarytree._populate().

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

16 years agoFix typo.
Zac Medico [Wed, 25 Jun 2008 22:54:17 +0000 (22:54 -0000)]
Fix typo.

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

16 years agoAdd docstring to slot_dict_class().
Zac Medico [Wed, 25 Jun 2008 22:49:32 +0000 (22:49 -0000)]
Add docstring to slot_dict_class().

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

16 years agoFix typo.
Zac Medico [Wed, 25 Jun 2008 22:39:42 +0000 (22:39 -0000)]
Fix typo.

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

16 years agoFix KeyError constructor style.
Zac Medico [Wed, 25 Jun 2008 22:39:00 +0000 (22:39 -0000)]
Fix KeyError constructor style.

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

16 years agoFix indentation.
Zac Medico [Wed, 25 Jun 2008 22:37:43 +0000 (22:37 -0000)]
Fix indentation.

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

16 years agoAdd a generic portage.cache.mappings.slot_dict_class() function which
Zac Medico [Wed, 25 Jun 2008 22:36:19 +0000 (22:36 -0000)]
Add a generic portage.cache.mappings.slot_dict_class() function which
generates mapping classes that behave similar to a dict but store
values as object attributes that are allocated via __slots__. Instances
of these objects have a smaller memory footprint than a normal dict object.
These classes are used to reduce the memory footprint of the dbapi.aux_get()
caches and the Package.metadata attribute.

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

16 years agoSwap out the whole Package.root_config attribute inside depgraph.break_refs().
Zac Medico [Wed, 25 Jun 2008 20:47:38 +0000 (20:47 -0000)]
Swap out the whole Package.root_config attribute inside depgraph.break_refs().

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

16 years agoClarify EverythingSet.description a bit. Thanks to Necoro.
Zac Medico [Wed, 25 Jun 2008 20:08:35 +0000 (20:08 -0000)]
Clarify EverythingSet.description a bit. Thanks to Necoro.

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

16 years agoClarify EverythingSet.description a bit. Thanks to Necoro.
Zac Medico [Wed, 25 Jun 2008 20:06:11 +0000 (20:06 -0000)]
Clarify EverythingSet.description a bit. Thanks to Necoro.

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

16 years agoFix Atom -> str breakage in depgraph.saveNomergeFavorites(). Thanks to
Zac Medico [Wed, 25 Jun 2008 19:45:07 +0000 (19:45 -0000)]
Fix Atom -> str breakage in depgraph.saveNomergeFavorites(). Thanks to
grobian and darsiide.

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

16 years agoFix repoman breakage wrt _PackageMetadataWrapper._keys values.
Zac Medico [Wed, 25 Jun 2008 12:41:22 +0000 (12:41 -0000)]
Fix repoman breakage wrt _PackageMetadataWrapper._keys values.

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

16 years agoAfter the depgraph caches the vardb state in a FakeVartree, to make
Zac Medico [Wed, 25 Jun 2008 10:06:42 +0000 (10:06 -0000)]
After the depgraph caches the vardb state in a FakeVartree, to make
some room on the heap, clear the vardbapi caches.

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

16 years agoImplement __contains__, pop() and clear() for Package.metadata attributes.
Zac Medico [Wed, 25 Jun 2008 08:42:02 +0000 (08:42 -0000)]
Implement __contains__, pop() and clear() for Package.metadata attributes.

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

16 years agoUse os.listdir() instead of portage.listdir() to avoid needless caching
Zac Medico [Wed, 25 Jun 2008 07:49:58 +0000 (07:49 -0000)]
Use os.listdir() instead of portage.listdir() to avoid needless caching
of directories that only need to be listed once.

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

16 years agoMake clear_caches() call portage.dircache.clear().
Zac Medico [Wed, 25 Jun 2008 07:39:50 +0000 (07:39 -0000)]
Make clear_caches() call portage.dircache.clear().

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

16 years agoRemove the BlockerDB._blocker_cache attribute and just create new
Zac Medico [Wed, 25 Jun 2008 07:18:36 +0000 (07:18 -0000)]
Remove the BlockerDB._blocker_cache attribute and just create new
instances on demand instead of taking space on the heap.

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

16 years agoFor the Package.metadata attribute, only implement the dict interface
Zac Medico [Wed, 25 Jun 2008 06:38:15 +0000 (06:38 -0000)]
For the Package.metadata attribute, only implement the dict interface
instead of actually inheriting from dict. This slightly decreases the
memory footprint by defining __slots__ and storing items as object
attributes.

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

16 years agoBug #229069 - Before deleting the depgraph, break references pointing
Zac Medico [Wed, 25 Jun 2008 04:24:31 +0000 (04:24 -0000)]
Bug #229069 - Before deleting the depgraph, break references pointing
to the depgraph from Package instances in the merge list. This helps
reduce the heap size a lot.

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

16 years agoFix spelling of depgraph._complete_threshold.
Zac Medico [Tue, 24 Jun 2008 22:55:17 +0000 (22:55 -0000)]
Fix spelling of depgraph._complete_threshold.

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

16 years agoIf dep calculation time exceeds 20 seconds then automatically
Zac Medico [Tue, 24 Jun 2008 22:53:25 +0000 (22:53 -0000)]
If dep calculation time exceeds 20 seconds then automatically
enable "complete" mode since any performance difference is
not as likely to be noticed by the user after this much time
has passed.

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

16 years agoUse weakref.WeakValueDictionary to make cached Atom instances eligible for
Zac Medico [Tue, 24 Jun 2008 22:30:48 +0000 (22:30 -0000)]
Use weakref.WeakValueDictionary to make cached Atom instances eligible for
garbage collection when no strong references remain.

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

16 years agoBug #229233 - Fix Atom -> str breakage in the depgraph.display_problems()
Zac Medico [Tue, 24 Jun 2008 21:14:45 +0000 (21:14 -0000)]
Bug #229233 - Fix Atom -> str breakage in the depgraph.display_problems()
package.provided warning message.

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

16 years agoClear dbapi caches just after deleting the depgraph in action_build().
Zac Medico [Tue, 24 Jun 2008 05:52:48 +0000 (05:52 -0000)]
Clear dbapi caches just after deleting the depgraph in action_build().
This trims down the heap size by a few megs, for bug #229069.

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

16 years agoFix some remaining corner cases that cause bug #220341 to reappear
Zac Medico [Tue, 24 Jun 2008 01:00:47 +0000 (01:00 -0000)]
Fix some remaining corner cases that cause bug #220341 to reappear
intermittently. Thanks to pva for reporting.

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

16 years agoUse paths from portage.const instead of hardcoded versions.
Zac Medico [Mon, 23 Jun 2008 18:22:07 +0000 (18:22 -0000)]
Use paths from portage.const instead of hardcoded versions.
(branches/prefix r10765)

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

16 years agoBug #228977 - During dblink._preserve_libs() calls, cache results of
Zac Medico [Mon, 23 Jun 2008 10:00:12 +0000 (10:00 -0000)]
Bug #228977 - During dblink._preserve_libs() calls, cache results of
LinkageMap.findProviders(), LinkageMap.findConsumers(), and os.path.realpath()
calls in order to improve performance. This makes a huge difference in
performance for glibc upgrades since glibc provides so many libs to
check consumerge for.

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

16 years agoBug #228935 - Add a new "command not found" build log QA Notice. Thanks to
Zac Medico [Mon, 23 Jun 2008 02:40:38 +0000 (02:40 -0000)]
Bug #228935 - Add a new "command not found" build log QA Notice. Thanks to
Olivier Huber for the initial patch.

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

16 years agoBug #228977 - Protect against possible infinite loop in
Zac Medico [Mon, 23 Jun 2008 01:24:25 +0000 (01:24 -0000)]
Bug #228977 - Protect against possible infinite loop in
dblink._preserve_libs().

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

16 years agoBug #228939 - Fix display list interaction with --tree mode to prevent
Zac Medico [Sun, 22 Jun 2008 23:15:19 +0000 (23:15 -0000)]
Bug #228939 - Fix display list interaction with --tree mode to prevent
display of a duplicate list.

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

16 years agoFix broken path handling wrt $ROOT in LibraryConsumerSet.mapPathsToAtoms().
Zac Medico [Sun, 22 Jun 2008 04:04:50 +0000 (04:04 -0000)]
Fix broken path handling wrt $ROOT in LibraryConsumerSet.mapPathsToAtoms().

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

16 years agoFix Atom -> str breakage in depgraph._show_slot_collision_notice(). Thanks
Zac Medico [Sat, 21 Jun 2008 22:41:40 +0000 (22:41 -0000)]
Fix Atom -> str breakage in depgraph._show_slot_collision_notice(). Thanks
to Arfrever for reporting.

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

16 years agoImplement Atom.__cmp__() so that things like list.sort() work correctly
Zac Medico [Sat, 21 Jun 2008 22:22:59 +0000 (22:22 -0000)]
Implement Atom.__cmp__() so that things like list.sort() work correctly
for Atom instances.

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

16 years agoBug #228489 - Restore the "ci" alias for "commit" mode. Thanks to grobian
Zac Medico [Sat, 21 Jun 2008 17:11:54 +0000 (17:11 -0000)]
Bug #228489 - Restore the "ci" alias for "commit" mode. Thanks to grobian
for the patch.

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

16 years agoFix Atom -> str breakage in depgraph.display_problems().
Zac Medico [Sat, 21 Jun 2008 16:14:03 +0000 (16:14 -0000)]
Fix Atom -> str breakage in depgraph.display_problems().

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

16 years agoMake LibraryConsumerSet.mapPathsToAtoms() use the contents index for more
Zac Medico [Sat, 21 Jun 2008 14:58:13 +0000 (14:58 -0000)]
Make LibraryConsumerSet.mapPathsToAtoms() use the contents index for more
efficient owner lookups.

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

16 years agoFix implicit_pattern to match different quote character found in warnings
Zac Medico [Sat, 21 Jun 2008 11:58:44 +0000 (11:58 -0000)]
Fix implicit_pattern to match different quote character found in warnings
generated by gcc-4.3. Thanks to aballier for reporting with sample log.

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

16 years agoExclude calls to autoheader and makeinfo from the automake "maintainer mode"
Zac Medico [Sat, 21 Jun 2008 10:53:58 +0000 (10:53 -0000)]
Exclude calls to autoheader and makeinfo from the automake "maintainer mode"
check (filter some false positives). Thanks to Flameeyes.

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

16 years agoUse bash's built-in echo instead of the actual echo binary since it has
Zac Medico [Sat, 21 Jun 2008 09:26:53 +0000 (09:26 -0000)]
Use bash's built-in echo instead of the actual echo binary since it has
compatibility issues on FreeBSD systems. Thanks to aballier for reporting
the issue and testing this patch.

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

16 years agodrop old -i,--include-masked option #226429 by Tobias Klausmann
Mike Frysinger [Sat, 21 Jun 2008 05:18:26 +0000 (05:18 -0000)]
drop old -i,--include-masked option #226429 by Tobias Klausmann

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

16 years agoFix Atom -> str breakage in WorldSet.write().
Zac Medico [Fri, 20 Jun 2008 22:31:17 +0000 (22:31 -0000)]
Fix Atom -> str breakage in WorldSet.write().

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

16 years agoRemove unused Atom.string attribute.
Zac Medico [Fri, 20 Jun 2008 20:36:41 +0000 (20:36 -0000)]
Remove unused Atom.string attribute.

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

16 years agoAdd subversion support for repoman. (thanks grobian)
Zac Medico [Fri, 20 Jun 2008 19:43:33 +0000 (19:43 -0000)]
Add subversion support for repoman. (thanks grobian)

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

16 years agoBug #228595 - Use os.path.realpath() before comparing paths to those
Zac Medico [Fri, 20 Jun 2008 18:00:25 +0000 (18:00 -0000)]
Bug #228595 - Use os.path.realpath() before comparing paths to those
returned from portdbapi.getRepositoryPath() since those paths are
also cannonical.

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

16 years agoMake isvalidatom() use the Atom cache to avoid validating the same atom
Zac Medico [Fri, 20 Jun 2008 17:36:18 +0000 (17:36 -0000)]
Make isvalidatom() use the Atom cache to avoid validating the same atom
twice.

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

16 years agoMake Atom use str.__eq__ and __ne__ also.
Zac Medico [Fri, 20 Jun 2008 17:04:13 +0000 (17:04 -0000)]
Make Atom use str.__eq__ and __ne__ also.

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

16 years agoMake Atom use str.__hash__.
Zac Medico [Fri, 20 Jun 2008 16:59:56 +0000 (16:59 -0000)]
Make Atom use str.__hash__.

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

16 years agoMake the Atom cache dict private and add a docstring for _AtomCache.
Zac Medico [Fri, 20 Jun 2008 16:47:45 +0000 (16:47 -0000)]
Make the Atom cache dict private and add a docstring for _AtomCache.

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

16 years agoUse a metaclass to cache Atom instances transparently. This should improve
Zac Medico [Fri, 20 Jun 2008 16:18:46 +0000 (16:18 -0000)]
Use a metaclass to cache Atom instances transparently. This should improve
performance and conserve memory in cases when the same atom is more than
once.

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