summaryrefslogtreecommitdiff
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* portage.const: toggle constants for stable branchZac Medico2013-06-181-3/+3
|
* RepoConfigLoader: main-repo priority before sortv2.2.0_alpha181Zac Medico2013-06-181-8/+7
|
* Add cross-prefix supportRuud Koolen2013-06-1810-55/+36
| | | | | | | | | | | | | | | | | | | | | | | | | This patch series adds support for using a portage installed in one prefix to build packages with a different prefix. The current portage has a single EPREFIX variable specifying both the prefix of the portage installation, and the prefix of the packages portage is building. This patch series splits it into two parts: the portage.const.EPREFIX variable specifying the prefix of the portage installation, used for constructing the PATH as well as the paths to files belonging to a portage installation itself rather than a target root; and the EPREFIX setting in config instances, specifying the prefix of the to-be-built packages and being used for almost everything else. The EPREFIX config setting defaults to const.EPREFIX, but can be overridden by the EPREFIX environment variable, as well as the emerge --prefix option. This allows one to install systems with different prefixes using `EPREFIX=/foo emerge @system`, though some unrelated changes need to happen elsewhere first in order to make that a reality. Ruud Koolen (3): Distinguish between portage prefix and package prefix Based GLOBAL_CONFIG_PATH and DEPCACHE_PATH on portage prefix Pick up EPREFIX environment variable
* RepoConfigLoader: fix main-repo priority defaultZac Medico2013-06-181-11/+20
| | | | | This ensures that the main-repo default priority is set to -1000 in all cases where it's appropriate.
* RepoConfigLoader: delete repo if location missingZac Medico2013-06-181-2/+10
|
* RootConfig.update: call delattr when appropriateZac Medico2013-06-181-1/+4
|
* RootConfig: mtimedb AttributeError, bug #473710Zac Medico2013-06-181-1/+5
|
* action_build: remove useless --ask autocleanZac Medico2013-06-161-2/+0
| | | | | | This autoclean invocation would should have no effect anyway, unless the vdb happens to be in an inconsistent state due to a previously interrupted emerge (relatively rare).
* Show blocker parents for non slot-conflict pkgs.v2.2.0_alpha180Zac Medico2013-06-151-5/+16
| | | | | | | | Show parents for packages involved in blocker conflicts but not directly involved in slot conflicts, since this information may be helpful for troubleshooting blocker conflicts. This information had been hidded when there were unrelated simultaneous slot conflicts, since commit 77b651300731ec007cd535a83b8ee9a898602783.
* run_action: use emerge_config attrs, not localsZac Medico2013-06-153-162/+189
|
* Show unevaluated atom in blocker parent display.Zac Medico2013-06-141-1/+8
|
* emerge --autounmask-write: chk_updated_cfg_filesZac Medico2013-06-131-1/+5
| | | | | Instead of suggesting to call dispatch-conf, call chk_updated_cfg_files in order to display a config update message when appropriate.
* _emerge_config: simplify __getitem__Zac Medico2013-06-091-7/+1
|
* _emerge_config: implement __iter__Zac Medico2013-06-091-0/+5
|
* dep_check: remove redundant list copyZac Medico2013-06-091-2/+2
| | | | | There's no need to copy the list before calling dep_wordreduce, since dep_wordreduce copies the list internally.
* emerge_main: call portdbapi destructorsv2.2.0_alpha179Zac Medico2013-06-081-1/+8
|
* match_from_list: =* op with revision, bug #467826Zac Medico2013-06-082-6/+33
|
* emerge_main: hold large objects in emerge_configZac Medico2013-06-082-23/+51
| | | | | | | | | This allows emerge_main to avoid having direct local references to large local objects (like "settings" and "trees"), making it easier to ensure that stale objects can be garbage collected when other functions refresh the config with calls to load_emerge_config(). This will be much more flexible than the "gc_locals" approach that was introduce in commit e9fd283aedf54e2effc73f4157524fe9a26993c0.
* emerge --metadata/regen: flush portdbapi cacheZac Medico2013-06-082-0/+3
|
* close_portdbapi_caches: portage.db atexit hookZac Medico2013-06-082-4/+36
| | | | | | | The python interpreter does _not_ guarantee that destructors are called for objects that remain when the interpreter exits, so we use an atexit hook to call destructors for any global portdbapi instances that may have been constructed.
* porttree._dummy_list: fix infinite recursionZac Medico2013-06-071-1/+1
|
* _iter_match_use: construct _pkg_str instancesv2.2.0_alpha178Zac Medico2013-06-071-8/+11
| | | | Now _match_use does not have to construct them itself.
* cache/template.py: call self.sync() from __del__Zac Medico2013-06-074-51/+31
| | | | | | | | This allows portdbapi.portdbapi_instances to be eliminated, which is nice because we no longer has to be so careful to avoid memory leaks involving this variable. It was not just annoying for portage internals, but also for any API consumers that needed to create/destroy many portdbapi instances.
* portage.dbapi.dbapi._match_use(): Use ↵Arfrever Frehtes Taifersar Arahesis2013-06-071-23/+17
| | | | | | | | | | _emerge.Package.Package._iuse.get_real_flag(). It fixes support for USE aliases in: best_version has_version emerge --keep-going emerge --resume
* portage.package.ebuild._config.UseManager.UseManager.getUseAliases(): Accept ↵Arfrever Frehtes Taifersar Arahesis2013-06-071-1/+1
| | | | pkg argument of type str.
* treewalk: skip CHOST warning for binary packagesZac Medico2013-06-021-1/+4
| | | | | | The CHOST of a binary package does not necessarily match the make.conf setting, especially if ACCEPT_CHOSTS is configured to match other CHOST values.
* depgraph.display(): handle reverse for --treeZac Medico2013-05-314-22/+21
| | | | | | | This factors --tree logic out of the calling code, and allows optimization of _show_merge_list to use reference comparison instead of == comparison. Also, deprecate the unused depgraph.altlist() "reversed" parameter, due to builtin name collision.
* depgraph: tuple display list, avoid copiesZac Medico2013-05-312-7/+14
| | | | | TODO: Optimize _show_merge_list to use reference comparison more instead of == comparison.
* depgraph: buidpkgonly error earlier, bug #471910Zac Medico2013-05-312-26/+24
|
* repoman: deprecate mono.eclass, bug #471184Zac Medico2013-05-241-0/+1
|
* _find_bad_atoms: use insert_category_into_atomZac Medico2013-05-241-5/+10
| | | | This shares/aligns logic with is_valid_package_atom.
* Atom: handle invalid */foo-version wildcardZac Medico2013-05-242-3/+8
| | | | | | | Before, a wildcard atom could be treated as valid even though it specified a version without an operator, as reported at here: https://forums.gentoo.org/viewtopic-p-7314746.html#7314746
* repoman: check for deprecated EAPIs, bug #470670v2.2.0_alpha177Zac Medico2013-05-231-1/+14
| | | | | | This adds support for repo.eapi.banned (fatal) and repo.eapi.deprecated (warning) checks which are controlled by eapis-banned and eapis-deprecated settings in a repository's metadata/layout.conf.
* fetch: correctly handle file name without schemeZac Medico2013-05-232-2/+22
| | | | | | Before, the file name would be passed directly to FETCHCOMMAND as though it were a valid URI. Now, FETCHCOMMAND will only be called when there is a valid URI or a mirror to try.
* EMERGE_DEFAULT_OPTS: shlex for embedded quotesZac Medico2013-05-191-1/+2
|
* test_getconfig: sync FETCHCOMMAND_SFTP/SSHv2.2.0_alpha176Zac Medico2013-05-181-2/+2
|
* Support PORTAGE_SSH_OPTS, bug #470002.Zac Medico2013-05-186-17/+72
| | | | | | | Additional ssh options to be used when portage executes ssh or sftp. This variable supports use of embedded quote characters to quote whitespace or special shell characters within arguments (embedded quotes must be escaped in make.conf settings).
* JobStatusDisplay: fix tigetstr for pypy-2.0_beta2Zac Medico2013-05-181-1/+2
| | | | This will fix bug #470258.
* EbuildBuild: don't digest if fetch failedZac Medico2013-05-181-1/+1
|
* Fix emerge --fetch --digest for bug #470238.Zac Medico2013-05-182-3/+10
|
* doebuild: fix emerge --fetchonly FEATURES=digestZac Medico2013-05-181-13/+8
| | | | | This removes obsolete parallel-fetch code which is no longer needed, since EbuildFetcher no longer calls doebuild.
* PORTAGE_BINHOST: sftp with FETCHCOMMAND_SFTPZac Medico2013-05-161-14/+4
| | | | | Do not generate the sftp command for downloading the Packages file, and simply use the FETCHCOMMAND_SFTP setting.
* PORTAGE_BINHOST: https FETCHCOMMAND, bug #469888Zac Medico2013-05-151-9/+29
| | | | | Don't use urlopen for https, since it doesn't support certificate/hostname verification (bug #469888).
* env_update: ensure_dirs, encode filenameZac Medico2013-05-131-4/+4
|
* env-update: change prelink to use /etc/prelink.conf.d/portage.confMike Frysinger2013-05-121-23/+38
| | | | | | | | | | | | | Newer prelinks can support /etc/prelink.conf.d/ files. So that prelink can install /etc/prelink.conf and manage it itself, have env-update only write /etc/prelink.conf.d/portage.conf instead of clobbering the main /etc/prelink.conf file. This should be backwards compatible as portage will conditionally change /etc/prelink.conf to use the new /etc/prelink.conf.d/ too. URL: http://bugs.gentoo.org/266855 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* binarytree: evaluate RESTRICT conditionalsZac Medico2013-05-061-1/+1
|
* binarytree: index RESTRICT, for ACCEPT_RESTRICTZac Medico2013-05-061-1/+1
|
* Support ACCEPT_RESTRICT for bug #467622.v2.2.0_alpha174Zac Medico2013-05-027-4/+117
|
* _getMissingProperties: remove || supportZac Medico2013-05-021-35/+2
| | | | PROPERTIES is not allowed to contain ||, according to PMS.
* Silence embedded profile warning for bug #467142.Zac Medico2013-05-021-4/+14
|