summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/main.py
Commit message (Collapse)AuthorAgeFilesLines
* Show action as --action in emerge.log arg list.Zac Medico2011-11-171-1/+1
|
* Show option arguments in emerge.log arg list.Zac Medico2011-11-171-1/+11
|
* Tweak emerge --quiet-build default handling.Zac Medico2011-11-161-3/+0
| | | | | Since --quiet-build is enabled be default, there's no need to have it in the options dict except when it is enabled.
* Enable emerge --quiet-build by default.v2.2.0_alpha74Zac Medico2011-11-111-1/+2
| | | | | | See discussion on the gentoo-dev mailing list: http://archives.gentoo.org/gentoo-dev/msg_4f0401066abe2dc04458a952ac2a17bd.xml
* Allow repository dependencies in command line arguments for --config and ↵Arfrever Frehtes Taifersar Arahesis2011-11-071-1/+1
| | | | --info actions.
* Add emerge --moo action for bug #389609.Zac Medico2011-11-061-16/+25
|
* Use any() instead of list(filter()).Zac Medico2011-10-281-1/+1
|
* Check for bytes instead of unicode in args.Zac Medico2011-10-281-2/+1
| | | | | | This simplifies the checks since the bytes type is available in all supported python versions, while the unicode type is only available in python2.
* Add emerge --check-news for bug #388233.Zac Medico2011-10-261-1/+14
|
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-14/+14
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* Skip global updates prior to sync (called after).Zac Medico2011-10-231-1/+2
|
* Add --binpkg-exclude optionSebastian Luther2011-10-161-4/+24
| | | | | This options disables creation of binary packages, no matter what enabled it in the first place. See bug 386903.
* Add emerge --dynamic-deps <y|n> option.Zac Medico2011-10-101-0/+6
| | | | | | | | | | | | | This makes it possible to disable the dynamic dependency updates that FakeVartree performs by default. WARNING: If --dynamic-deps is disabled, then it is necessary to ensure that an alternative method is used to handle package moves in dependencies of installed packages. Normally, this is handled by FEATURES="fixpackages", which is enabled by default and may be disabled via make.conf(5). Alternatively, in order to manually apply package moves, run `emaint --fix moveinst` after each emerge --sync operation (see emaint(1)).
* Tweak automatic --binpkg-respect-use behavior.Zac Medico2011-09-211-4/+5
| | | | | | | | If --binpkg-respect-use is not explicitly specified, we enable the behavior automatically (like requested in bug #297549), as long as it doesn't strongly conflict with other options that have been specified. Strongly conflicting options currently include --usepkgonly and --rebuilt-binaries.
* emerge: add --complete-graph-if-new-ver < y | n >Zac Medico2011-09-211-0/+7
| | | | | Trigger the --complete-graph behavior if an installed package version will change (upgrade or downgrade). This option is enabled by default.
* Point users to the man page instead of duplicating it in --helpSebastian Luther2011-09-211-2/+2
|
* autounmask: Add --autounmask-keep-masks optionSebastian Luther2011-09-191-0/+10
| | | | | | Disables creation of p.unmask entries to allow users to insist on their masks and hope for another conflict resolution (i.e. missed update). This fixes bug 372485.
* autounmask: Add --autounmask-unrestricted-atoms optionSebastian Luther2011-09-191-0/+10
| | | | | | | | The default behavior of --autounmask is now changed back to the original one, namely to use '=' operators. The --autounmask-unrestricted-atoms option allows the use of '>=' operators whenever possible. This addresses the issues raised in bugs 372405, 374331 and 379333.
* Join /var/log/emerge.log with EPREFIX.Zac Medico2011-09-031-1/+10
|
* Add FEATURES=clean-logs support.Zac Medico2011-08-311-2/+33
| | | | | | | Enable automatic execution of the command specified by the PORT_LOGDIR_CLEAN variable. The default PORT_LOGDIR_CLEAN setting will remove all files from PORT_LOGDIR that were last modified at least 7 days ago.
* Respect package.env buildpkg FEATURES settings.Zac Medico2011-08-301-3/+5
| | | | This will fix bug #318897.
* Improve the invalid profile msg (bug 379327).Mark Wagner2011-08-151-4/+4
|
* post_emerge: just return instead of sys.exit()Zac Medico2011-08-011-7/+1
|
* LinkageMapELF: add getOwners() method and use itZac Medico2011-07-221-1/+9
| | | | | | This preserves the owner information inside LinkageMap.rebuild() and uses it to implement a getOwners() method, which makes it possible to efficiently lookup owners of library providers and consumers.
* Make emerge --noreplace identical to --selective.Zac Medico2011-07-191-2/+1
| | | | | | This removes a very subtle difference in --noreplace package selection logic which is not very useful and triggers strange package selection choices in some cases, as reported in bug #375571.
* Use portage.subprocess_getstatusoutput() more.Zac Medico2011-07-121-5/+3
|
* --ask: show group warning before pretend promptZac Medico2011-06-041-2/+2
|
* emergelog: only enable when called by emergeZac Medico2011-06-031-9/+7
| | | | | | We disable emergelog by default, since it's called from dblink.merge() and we don't want that to trigger log writes unless it's really called via emerge.
* --ask: prompt for --pretend mode when necessaryZac Medico2011-06-031-2/+6
|
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-151-1/+1
|
* Implement --autounmask-writeSebastian Luther2011-05-151-0/+10
| | | | | Enabling this option together with --autounmask writes proposed changes to config files, honoring CONFIG_PROTECT.
* Use vardbapi.lock() where applicable.Zac Medico2011-05-141-2/+3
|
* Remove redundant pruneNonExisting() call.Zac Medico2011-05-061-1/+0
| | | | | | Since commit f36b9fa38b5268c2a5579db62acec026625f84a9, the PreservedLibsRegistry automatically prunes itself each time that it is loaded.
* emerge: replace --rebuild with finer grained optsDavid James2011-05-041-7/+40
| | | | | | | | | | | | | | | | | | | | | | Replace --rebuild option with --rebuild-if-* options. --rebuild-if-new-rev [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built, if the dependency is not already installed with the same version and revision. --rebuild-if-new-ver [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built, if the dependency is not already installed with the same version. Revision numbers are ignored. --rebuild-if-unbuilt [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built. Change-Id: Ia50c1702bfe1b98a8d1891740e7bbb045921a905 Review URL: http://gerrit.chromium.org/gerrit/280
* Add --rebuild-ignore flag.David James2011-05-031-0/+14
| | | | | | | | | A space separated list of package names or slot atoms. Emerge will not rebuild packages that depend on matching packages due to \fB\-\-rebuild\fR. Change-Id: Ia58fe632ed06c97a22413da0341d7f8da2d65ba8 Review URL: http://gerrit.chromium.org/gerrit/209
* emerge: rename --no*-atoms to --*-excludeZac Medico2011-05-021-8/+8
|
* emerge: add --rebuild and --norebuild-atoms optsDavid James2011-05-011-1/+28
| | | | | | | | | | | | | | | | | | | | | | | Rebuild when build-time/run-time deps are upgraded. If pkgA has been updated, and pkgB depends on pkgA at both build-time and run-time, pkgB needs to be rebuilt. This feature ensures that all packages are consistent when dependencies that are used at both runtime and build time are changed. This feature only rebuilds packages one layer deep. That means that if you upgrade libcros, for example, packages that depend directly on libcros will be rebuilt and reinstalled, but indirect dependencies will not be rebuilt. BUG=chromium-os:14296 TEST=Test whether packages rebuilding a bunch of packages. Change-Id: Idbc0532b4b1de28fd9e5a0abe3b7dbe1a3abd2c8 Review URL: http://codereview.chromium.org/6905107
* display_preserved_libs: load plib_registryZac Medico2011-04-281-1/+3
| | | | | | | Since commit 7535cabdf2fab76fc55df83643157613dfd66be9, the plib_registry is modified in a subprocess, and the parent process' copy can become stale because of this. Therefore, explicitly load it.
* emerge: add --misspell-suggestions=n optionZac Medico2011-04-281-0/+6
| | | | This will fix bug #363137.
* emerge: add 3 new options similar to --excludeDavid James2011-04-271-20/+58
| | | | | | | | | | | | | | | | | | | | | | | Add --nousepkg-atoms, --useoldpkg-atoms, and --reinstall-atoms flag to Portage reinstall-atoms accepts a space separated list of package names or slot atoms. Emerge will treat matching packages as if they are not installed, and reinstall them if necessary. useoldpkg-atoms accepts a space separated list of package names or slot atoms. Emerge will prefer matching binary packages over newer unbuilt packages. This is useful in case you want to request that a particular package won't be rebuilt from source. nousepkg-atoms accepts a space separated list of package names or slot atoms. Emerge will ignore matching binary packages. Change-Id: I0d73039c6a4cd63695b28ffc80215628e0e05c95 BUG=chromium-os:12507 TEST=Try out the flag Review URL: http://codereview.chromium.org/6577024
* chk_updated_info_files: handle --quietZac Medico2011-03-301-3/+5
| | | | This will fix bug #361257.
* emerge: support [ y | n ] for --askZac Medico2011-03-241-2/+15
| | | | | | This allows --ask to be enabled via EMERGE_DEFAULT_OPTS, and then temporarily disabled via the command-line. This may be useful for programs that call emerge non-interactively, as in bug #360233.
* emerge_main: add "args" parameter (sys.argv[1:])Zac Medico2011-03-201-7/+12
| | | | | Also, fix local portage.debug import so that "global portage" is not necessary.
* emerge: support [ y | n ] for --quietv2.2.0_alpha27Zac Medico2011-03-141-3/+26
| | | | | | This allows --quiet and --quiet-build to be enabled via EMERGE_DEFAULT_OPTS, and then temporarily disabled via the command- line.
* show_depclean_suggestion: use ewarn, not einfoZac Medico2011-02-211-1/+1
|
* post_emerge: suggest depclean after world updateZac Medico2011-02-211-0/+13
| | | | This is part of bug #354787.
* post_emerge: pass in more infoZac Medico2011-02-211-6/+15
| | | | | This makes it possible to do things like give special suggestions after world updates.
* emerge: warn to stderr if post_* hooks failZac Medico2011-02-181-5/+6
|
* emerge: support post_emerge hook like post_syncGokdeniz Karadag2011-02-181-0/+8
| | | | This will fix bug #355447.
* When killed by signal, return 128 + signum.Zac Medico2011-01-151-2/+2
| | | | | This is the same convention that bash uses for returncodes of processes that are killed by signals.