summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* For brevity, and consistency with pkgcore, rename "all-installed" to justZac Medico2008-06-261-1/+1
| | | | | | "installed". Thanks to ferringb for the suggestion. svn path=/main/trunk/; revision=10808
* Call use_reduce() with matchall=1 when checking depstrings. Otherwise it'sZac Medico2008-06-261-1/+1
| | | | | | possible for invalid deps to be ignored. Thanks to grobian for reporting. svn path=/main/trunk/; revision=10807
* Add "PATH" to the set of allowed pacakge metadata keys for the PackageIndex.Zac Medico2008-06-261-0/+1
| | | | svn path=/main/trunk/; revision=10806
* Fix the PermissionDenied message for color.map.Zac Medico2008-06-261-1/+4
| | | | svn path=/main/trunk/; revision=10805
* * Remove PORTAGE_LEGACY_GLOBALS hack for portage import since lateZac Medico2008-06-261-10/+2
| | | | | | | | | | | 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
* Use settings["ROOT"] at the beginning of env_update() to avoid breakageZac Medico2008-06-261-2/+2
| | | | | | due to "root" being an ObjectProxy instance. svn path=/main/trunk/; revision=10803
* Handle KeyError from aux_get() inside dbapi._iter_match_slot() andZac Medico2008-06-261-3/+9
| | | | | | _iter_match_use(). Thanks to grobian for reporting. svn path=/main/trunk/; revision=10802
* change default name of EverythingSet to @all-installed (bug #229467)Marius Mauch2008-06-261-1/+1
| | | | svn path=/main/trunk/; revision=10801
* Also use a separate proxy type for portage.mtimedb since it's independentZac Medico2008-06-261-7/+32
| | | | | | from the portdb and settings. svn path=/main/trunk/; revision=10800
* Use a separate proxy type to trigger portage.portdb initialization separatelyZac Medico2008-06-261-3/+16
| | | | | | | 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
* Implement lazy initialization of global "portdb", "settings" and otherZac Medico2008-06-262-1/+87
| | | | | | | | | | | | | | 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
* Make PackageIndex use SlotDict for package metadata storage. The set ofZac Medico2008-06-263-12/+45
| | | | | | | | | 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
* Use SlotDict where appropriate in binarytree._populate().Zac Medico2008-06-251-2/+2
| | | | svn path=/main/trunk/; revision=10796
* Fix typo.Zac Medico2008-06-251-1/+1
| | | | svn path=/main/trunk/; revision=10795
* Add docstring to slot_dict_class().Zac Medico2008-06-251-0/+11
| | | | svn path=/main/trunk/; revision=10794
* Fix typo.Zac Medico2008-06-251-1/+1
| | | | svn path=/main/trunk/; revision=10793
* Fix KeyError constructor style.Zac Medico2008-06-251-1/+1
| | | | svn path=/main/trunk/; revision=10792
* Fix indentation.Zac Medico2008-06-251-1/+1
| | | | svn path=/main/trunk/; revision=10791
* Add a generic portage.cache.mappings.slot_dict_class() function whichZac Medico2008-06-254-91/+151
| | | | | | | | | | 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
* Swap out the whole Package.root_config attribute inside depgraph.break_refs().Zac Medico2008-06-251-11/+8
| | | | svn path=/main/trunk/; revision=10789
* Clarify EverythingSet.description a bit. Thanks to Necoro.Zac Medico2008-06-251-1/+1
| | | | svn path=/main/trunk/; revision=10787
* Clarify EverythingSet.description a bit. Thanks to Necoro.Zac Medico2008-06-251-2/+3
| | | | svn path=/main/trunk/; revision=10786
* Fix Atom -> str breakage in depgraph.saveNomergeFavorites(). Thanks toZac Medico2008-06-251-1/+1
| | | | | | grobian and darsiide. svn path=/main/trunk/; revision=10785
* Fix repoman breakage wrt _PackageMetadataWrapper._keys values.Zac Medico2008-06-252-2/+7
| | | | svn path=/main/trunk/; revision=10783
* After the depgraph caches the vardb state in a FakeVartree, to makeZac Medico2008-06-252-3/+17
| | | | | | some room on the heap, clear the vardbapi caches. svn path=/main/trunk/; revision=10782
* Implement __contains__, pop() and clear() for Package.metadata attributes.Zac Medico2008-06-251-0/+23
| | | | svn path=/main/trunk/; revision=10780
* Use os.listdir() instead of portage.listdir() to avoid needless cachingZac Medico2008-06-251-2/+2
| | | | | | of directories that only need to be listed once. svn path=/main/trunk/; revision=10779
* Make clear_caches() call portage.dircache.clear().Zac Medico2008-06-251-0/+1
| | | | svn path=/main/trunk/; revision=10778
* Remove the BlockerDB._blocker_cache attribute and just create newZac Medico2008-06-251-4/+3
| | | | | | instances on demand instead of taking space on the heap. svn path=/main/trunk/; revision=10777
* For the Package.metadata attribute, only implement the dict interfaceZac Medico2008-06-252-58/+110
| | | | | | | | 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
* Bug #229069 - Before deleting the depgraph, break references pointingZac Medico2008-06-251-0/+34
| | | | | | | to the depgraph from Package instances in the merge list. This helps reduce the heap size a lot. svn path=/main/trunk/; revision=10775
* Fix spelling of depgraph._complete_threshold.Zac Medico2008-06-241-3/+3
| | | | svn path=/main/trunk/; revision=10774
* If dep calculation time exceeds 20 seconds then automaticallyZac Medico2008-06-241-5/+16
| | | | | | | | 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
* Use weakref.WeakValueDictionary to make cached Atom instances eligible forZac Medico2008-06-241-1/+2
| | | | | | garbage collection when no strong references remain. svn path=/main/trunk/; revision=10772
* Bug #229233 - Fix Atom -> str breakage in the depgraph.display_problems()Zac Medico2008-06-241-1/+1
| | | | | | package.provided warning message. svn path=/main/trunk/; revision=10771
* Clear dbapi caches just after deleting the depgraph in action_build().Zac Medico2008-06-241-0/+13
| | | | | | This trims down the heap size by a few megs, for bug #229069. svn path=/main/trunk/; revision=10769
* Fix some remaining corner cases that cause bug #220341 to reappearZac Medico2008-06-241-14/+15
| | | | | | intermittently. Thanks to pva for reporting. svn path=/main/trunk/; revision=10768
* Use paths from portage.const instead of hardcoded versions.Zac Medico2008-06-231-2/+2
| | | | | | (branches/prefix r10765) svn path=/main/trunk/; revision=10766
* Bug #228977 - During dblink._preserve_libs() calls, cache results ofZac Medico2008-06-231-12/+45
| | | | | | | | | 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
* Bug #228935 - Add a new "command not found" build log QA Notice. Thanks toZac Medico2008-06-231-0/+15
| | | | | | Olivier Huber for the initial patch. svn path=/main/trunk/; revision=10763
* Bug #228977 - Protect against possible infinite loop inZac Medico2008-06-231-2/+3
| | | | | | dblink._preserve_libs(). svn path=/main/trunk/; revision=10762
* Bug #228939 - Fix display list interaction with --tree mode to preventZac Medico2008-06-221-1/+4
| | | | | | display of a duplicate list. svn path=/main/trunk/; revision=10761
* Fix broken path handling wrt $ROOT in LibraryConsumerSet.mapPathsToAtoms().Zac Medico2008-06-221-3/+1
| | | | svn path=/main/trunk/; revision=10759
* Fix Atom -> str breakage in depgraph._show_slot_collision_notice(). ThanksZac Medico2008-06-211-1/+1
| | | | | | to Arfrever for reporting. svn path=/main/trunk/; revision=10758
* Implement Atom.__cmp__() so that things like list.sort() work correctlyZac Medico2008-06-211-0/+9
| | | | | | for Atom instances. svn path=/main/trunk/; revision=10757
* Bug #228489 - Restore the "ci" alias for "commit" mode. Thanks to grobianZac Medico2008-06-211-0/+4
| | | | | | for the patch. svn path=/main/trunk/; revision=10756
* Fix Atom -> str breakage in depgraph.display_problems().Zac Medico2008-06-211-1/+1
| | | | svn path=/main/trunk/; revision=10755
* Make LibraryConsumerSet.mapPathsToAtoms() use the contents index for moreZac Medico2008-06-211-14/+7
| | | | | | efficient owner lookups. svn path=/main/trunk/; revision=10754
* Fix implicit_pattern to match different quote character found in warningsZac Medico2008-06-211-1/+1
| | | | | | generated by gcc-4.3. Thanks to aballier for reporting with sample log. svn path=/main/trunk/; revision=10753
* Exclude calls to autoheader and makeinfo from the automake "maintainer mode"Zac Medico2008-06-211-1/+4
| | | | | | check (filter some false positives). Thanks to Flameeyes. svn path=/main/trunk/; revision=10752