summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* Filter out some non-category directories in portdbapi.cp_all().Zac Medico2007-12-201-3/+5
| | | | svn path=/main/trunk/; revision=8993
* For simplicity and consistency, always use a regular expressionZac Medico2007-12-202-21/+11
| | | | | | for category validation instead of using a list. svn path=/main/trunk/; revision=8992
* Fix portdbapi.cp_list() so that it can cope with aZac Medico2007-12-203-2/+5
| | | | | | missing profile. svn path=/main/trunk/; revision=8990
* Make dep_zapdeps() fall back to installed packages in it'sZac Medico2007-12-201-1/+2
| | | | | | | | availability test in cases where the package does not appear to be masked. This solves dep selection preference issues when working without a portage tree. svn path=/main/trunk/; revision=8988
* Fix binarytree._update_pkgindex_header() so that it can copeZac Medico2007-12-201-4/+6
| | | | | | with a missing profile. svn path=/main/trunk/; revision=8985
* Make vartree.cpv_all() stop relying on having a categoriesZac Medico2007-12-201-2/+14
| | | | | | | list since it may not be available if there is no portage tree. svn path=/main/trunk/; revision=8982
* Enable emerge search actions for binary packages when there isZac Medico2007-12-201-19/+89
| | | | | | no portage tree available. svn path=/main/trunk/; revision=8980
* Fix a type: eclasses -> eclass.Zac Medico2007-12-201-1/+1
| | | | svn path=/main/trunk/; revision=8978
* Pass a valid phase into eerror so that it works.Zac Medico2007-12-201-1/+1
| | | | svn path=/main/trunk/; revision=8976
* Make binarytree.populate() stop relying on having a categoriesZac Medico2007-12-201-4/+2
| | | | | | list since it may not be available if there is no portage tree. svn path=/main/trunk/; revision=8975
* Convert messages about missing portage tree to debug levelZac Medico2007-12-201-2/+4
| | | | | | | warnings since quite often it's possible to function without a portage tree now. svn path=/main/trunk/; revision=8974
* Make some adjustments so that it's possible to install binaryZac Medico2007-12-204-16/+32
| | | | | | | | | | | | | | | | | | packages without having a portage tree: * Make portdbapi.aux_get() return early by raising a KeyError if it detects that there is no portage tree. * Move the ARCH and USERLAND sanity check to the last moment in doebuild() and only require these variables if an existing environment (such as environment.bz2) is unavailable. * Make the NewsManager constructor cope with a broken make.profile symlink. svn path=/main/trunk/; revision=8973
* Bug #202748 - When merging a binary package, only clean upZac Medico2007-12-201-1/+4
| | | | | | | temp files on success. Otherwise, leave the temp files intact for debugging purposes. svn path=/main/trunk/; revision=8971
* Whitespace only: remove extra indentation.Zac Medico2007-12-201-38/+37
| | | | svn path=/main/trunk/; revision=8969
* Always add ARCH to USE without relying on it being listedZac Medico2007-12-201-0/+2
| | | | | | in PORTAGE_ARCHLIST. svn path=/main/trunk/; revision=8967
* Keep filtered USE in the PORTAGE_USE variable to keepZac Medico2007-12-191-6/+6
| | | | | | | it separate from the global USE that's shown by emerge --info. svn path=/main/trunk/; revision=8963
* Trigger a config.regenerate() call inside setcpv() when theZac Medico2007-12-191-1/+7
| | | | | | | | | EBUILD_PHASE variable is defined. It's too expensive to do the regenerate() call every time. Do in when EBUILD_PHASE is defined since it's needed to create the filtered USE that environ() passes to the ebuild environment. svn path=/main/trunk/; revision=8961
* Store filtered USE for config.environ() calls in a specialZac Medico2007-12-181-3/+14
| | | | | | | attribute so that the normal global USE is still available for things like emerge --info output. svn path=/main/trunk/; revision=8959
* Fix USE filtering code so that it doesn't rely on config.setcpv()Zac Medico2007-12-181-2/+4
| | | | | | calling config.regenerate(). svn path=/main/trunk/; revision=8957
* Make special build and bootstrap flags into implicit membersZac Medico2007-12-181-0/+5
| | | | | | of IUSE so that stage builds will work again. svn path=/main/trunk/; revision=8955
* Display the merge list with blockers any time that there areZac Medico2007-12-181-4/+7
| | | | | | | blockers, instead of telling the user to try again with --pretend. svn path=/main/trunk/; revision=8953
* Include masked flags in PORTAGE_IUSE to avoid more false positivesZac Medico2007-12-181-3/+4
| | | | | | in the useq() IUSE check. svn path=/main/trunk/; revision=8949
* Create a PORTAGE_IUSE variable containing an egrep patternZac Medico2007-12-181-2/+13
| | | | | | | | for use by the QA check that's built into useq(). This allows the IUSE logic for this check to be isolated in the python code. svn path=/main/trunk/; revision=8945
* Bug #176467 - Filter out USE flags that aren't part of IUSE.Zac Medico2007-12-181-5/+35
| | | | | | | | | | | Some flags are considered to be implicit members of IUSE: * Flags derived from ARCH * Flags derived from USE_EXPAND_HIDDEN variables * Forced flags, such as those from {,package}use.force svn path=/main/trunk/; revision=8944
* Move the reusable ConsoleStyleFile and StyleWriter classes intoZac Medico2007-12-151-0/+52
| | | | | | the ouput module. svn path=/main/trunk/; revision=8934
* Add --buildpkgonly to the options lists that exempt fromZac Medico2007-12-131-2/+3
| | | | | | slot collisions and world file updates. svn path=/main/trunk/; revision=8917
* Use the BAD color class instead of hardcoded red.Zac Medico2007-12-131-1/+1
| | | | svn path=/main/trunk/; revision=8904
* Make portdbapi.visible() mask ebuilds that do not define SLOT.Zac Medico2007-12-131-0/+2
| | | | | | (branches/2.1.2 r8900) svn path=/main/trunk/; revision=8901
* Bug #201848 - Make the ebuild command reject ebuilds that do not defineZac Medico2007-12-131-1/+6
| | | | | | SLOT. svn path=/main/trunk/; revision=8895
* Bug #201848 - Mask ebuilds that do not define SLOT.Zac Medico2007-12-131-0/+4
| | | | svn path=/main/trunk/; revision=8894
* Bug #202036 - In case of blockers, bail out earlier so that laterZac Medico2007-12-131-19/+20
| | | | | | code can assume there are no blockers. svn path=/main/trunk/; revision=8889
* Instead of calling sys.exit when a ParseError occurs in the configZac Medico2007-12-112-62/+20
| | | | | | | | | constructor, raise a ParseError and make emerge and portageq handle the error. This way consumers of the portage api can handle the ParseError rather than have their application exit. Thanks to lxnay for reporting. svn path=/main/trunk/; revision=8884
* * Raise PermissionDenied from getconfig() when appropriate.Zac Medico2007-12-111-3/+5
| | | | | | | * When available, make getconfig() include an invalid token in a ParseError message. svn path=/main/trunk/; revision=8883
* * When installing a binary package, export the file name of the packageZac Medico2007-12-111-1/+8
| | | | | | | | | | | | | | as PORTAGE_BINPKG_FILE in order to give bashrc users an opportunity to do various things such as remove binary packages after they're installed. * Add a note in ebuild.sh explaining why hardcoded bash lists are needed for backward compatibility with <portage-2.1.4 since they assume that a newly installed version of ebuild.sh will work for pkg_postinst, pkg_prerm, and pkg_postrm when portage is upgrading itself. svn path=/main/trunk/; revision=8878
* Do an EBUILD_EXIT_STATUS_FILE sanity check in spawnebuild()Zac Medico2007-12-081-1/+10
| | | | | | where it spawns misc-functions.sh after the install phase. svn path=/main/trunk/; revision=8874
* Bug #189417 - Comment on how the whitelist and BASH_ENV are used toZac Medico2007-12-071-3/+8
| | | | | | prevent environment leakage. svn path=/main/trunk/; revision=8867
* Bug #189417 - Whitelist BASH_ENV since we need to have it set in orderZac Medico2007-12-071-1/+1
| | | | | | | to prevent sandbox from causing env leakage by sourcing /etc/profile via it's bashrc. svn path=/main/trunk/; revision=8866
* Bug #189417 - Explicitly whitelist any remaining variables that areZac Medico2007-12-071-14/+32
| | | | | | | | | | allowed to leak into the ebuild environment. Also, fix spawnebuild to properly filter the env when it spawns misc-functions.sh after the install phase. There is still some remaining leakage that seems to come from something in the ebuild environment sourcing /etc/profile. svn path=/main/trunk/; revision=8865
* Add a TODO note about remaining work for bug #189417.Zac Medico2007-12-071-0/+5
| | | | svn path=/main/trunk/; revision=8864
* Perform set argument validation in emerge_main() even forZac Medico2007-12-071-38/+38
| | | | | | values actions that need to expland sets themselves. svn path=/main/trunk/; revision=8863
* Remove automatic "system" and "world" set creation since we canZac Medico2007-12-071-9/+0
| | | | | | probably rely on having a complete config. svn path=/main/trunk/; revision=8862
* Bug #201506 - Make preprocess_ebuild_env() preserveZac Medico2007-12-061-1/+4
| | | | | | | | SANDBOX_{DENY,PREDICT,READ,WRITE} between all phases, except when the environment comes directly from environment.bz2. svn path=/main/trunk/; revision=8853
* Keep the RootConfig.sets attribute in sync with the SetConfig.Zac Medico2007-12-051-0/+1
| | | | svn path=/main/trunk/; revision=8850
* Make SetConfig.getSets() return a copy of the psets attributeZac Medico2007-12-052-2/+3
| | | | | | | instead of a direct reference. Fix the to stop relying on having the direct reference. svn path=/main/trunk/; revision=8849
* Show ? if the installed package is missing aZac Medico2007-12-051-5/+1
| | | | | | | | repository label. The stable version of portage creates these labels now, so false positives won't be as common as they used to be. svn path=/main/trunk/; revision=8846
* bootstrap.sh expects that the "system" set always exists, so createZac Medico2007-12-051-3/+14
| | | | | | it automatically if necessary. svn path=/main/trunk/; revision=8845
* In order to know exactly which atoms/sets should be added to theZac Medico2007-12-051-36/+43
| | | | | | | | world file, the depgraph performs set expansion later. It will get confused about where the atoms came from if it's not allowed to expand them itself. svn path=/main/trunk/; revision=8844
* fix another typoMarius Mauch2007-12-041-1/+1
| | | | svn path=/main/trunk/; revision=8841
* perform sanity checks for set configuration even if myaction is NoneMarius Mauch2007-12-042-6/+7
| | | | svn path=/main/trunk/; revision=8840
* Fix setconfig loader to use config files instead of hardcoded fallbacksMarius Mauch2007-12-042-51/+20
| | | | svn path=/main/trunk/; revision=8839