summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* depgraph: ignore unwanted virtualsZac Medico2011-05-011-2/+3
| | | | | This fixes an unwanted side-effect from commit 470871eeafa89a05486d4eb6f3f7626c1f813e4d.
* emerge: add --rebuild and --norebuild-atoms optsDavid James2011-05-0112-26/+317
| | | | | | | | | | | | | | | | | | | | | | | 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
* repoman: remove most old-style virtual checksZac Medico2011-05-011-1/+2
| | | | | | | | | PROVIDE virtuals have been banned from Gentoo's tree (see bug #365505), so these checks aren't needed anymore. The PROVIDE.syntax check is kept in the Package class since PROVIDE is still supported for backward compatibility, and therefore invalid syntax can still have negative effects. This check can be removed if/when backward compatibilty is completely dropped.
* depgraph: migrate implicit libc deps from SchedZac Medico2011-04-302-65/+65
| | | | | Now all the virtual/libc handling is done by the depgraph, which will be helpful when fixing bug #364681.
* emergelog: only set permission on creationZac Medico2011-04-291-3/+5
| | | | This will fix bug #365319.
* action_info: eliminate duplicate info_pkgs matchZac Medico2011-04-291-10/+21
| | | | | | | | | | Currently, sys-kernel/linux-headers is matched by both a plain sys-kernel/linux-headers atom and by the virtual/os-headers new-style virtual. For backward compatibility, we're going to have duplicates like this for at least a few months (see bug #364673, comment #5). Therefore, automatically eliminate duplicates in the display. Entries that include virtual provider info are preferred over those that do not.
* _postinst_bsdflags: apply to $ROOT, not $DZac Medico2011-04-281-1/+1
|
* Move preinst/postinst_bsdflags from bash to pyDavid James2011-04-282-15/+29
| | | | | | | | | | | | | Moving these commands from shell to Python helps avoid an unnecessary call to misc-functions.sh for the postinst_bsdflags. This improves performance. BUG=none TEST=Run emerge-x86-generic -eg --jobs=16 libchrome Change-Id: I0c2af50b4d2f7644cabac84fde7fe4d682010c69 Review URL: http://codereview.chromium.org/6676107
* 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-283-1/+18
| | | | This will fix bug #363137.
* emerge: fix indent for --binpkg-respect-use helpZac Medico2011-04-281-1/+1
|
* emerge: add --help for 3 new optionsZac Medico2011-04-271-0/+20
|
* emerge: add 3 new options similar to --excludeDavid James2011-04-272-40/+116
| | | | | | | | | | | | | | | | | | | | | | | 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
* --autounmask: Don't change masked/forced flagsSebastian Luther2011-04-273-2/+35
| | | | This will fix bug #364701.
* expand_new_virt: don't traverse blockersZac Medico2011-04-271-0/+6
|
* expand_new_virt: validate EAPI, IUSE and USEZac Medico2011-04-271-4/+25
|
* expand_new_virt: eliminate cpv_getkeyZac Medico2011-04-271-2/+1
|
* expand_new_virt: use stack for recursionZac Medico2011-04-261-24/+25
|
* Fix a typo.Arfrever Frehtes Taifersar Arahesis2011-04-261-1/+1
|
* emerge --info: support new-style virtualsZac Medico2011-04-261-23/+62
| | | | This will fix bug #364673.
* repoman: deprecate more eclassesTomas Chvatal2011-04-201-0/+5
|
* Update timestamps in headers of modified files.Zac Medico2011-04-133-3/+3
|
* doins: tweak $DISTDIR symlink handlingZac Medico2011-04-111-1/+1
| | | | | Only match stuff inside $PORTAGE_ACTUAL_DISTDIR/ so that we don't stray from PMS.
* extract_affecting_use: test bug #363073Zac Medico2011-04-111-0/+3
|
* extract_affecting_use: allow parens in atomsZac Medico2011-04-111-3/+5
| | | | | | | This fixes bug #363073 in which an InvalidDependString exception is erroneously triggered by atoms containing EAPI 4 USE dependency defaults. This case is very similar to bug #354003 which was fixed in commit 8735222b77e66850213e2aa6a7ea48e744ba0d4f.
* Remove unnecessary sync in Scheduler.py.David James2011-04-111-1/+1
| | | | | | | | | | | | | | If we are passed a fakevartree object, it should already be sync'd, so there is no need to sync it again here. This sync is only needed when we create a new FakeVartree, so I moved the sync to the right place to fix this. BUG=chromium-os:14035 TEST=Build a bunch of packages with this patch. Change-Id: I89d79cf946f4c0c27ad585ad7c88a41985260342 Review URL: http://codereview.chromium.org/6813084
* Fix a typo in a comment.Zac Medico2011-04-101-1/+1
|
* Scheduler: add more info in docstring commentsZac Medico2011-04-101-1/+7
| | | | This clarifies the purposes of _system_merge_started and _choose_pkg.
* Add force-mirror FEATURE.David James2011-04-072-7/+7
| | | | | | | | | | | | | force-mirror: Only fetch files from configured mirrors, ignoring SRC_URI, except when mirror is in the ebuild(5) RESTRICT variable. BUG=chromium-os:13221 TEST=Test that ebuilds now fail with FEATURES=force-mirror if files are not in the configured mirror. Change-Id: I8484d5af8dff97b431398030b33c024ff1295ba0 Review URL: http://codereview.chromium.org/6677171
* filter PORTAGE_GPG_SIGNING_COMMAND for ebuild envZac Medico2011-04-041-1/+2
|
* Display: fix fetch restrict msg for RO_DISTDIRSZac Medico2011-03-312-2/+5
| | | | This will fix bug #361463.
* chk_updated_info_files: handle --quietZac Medico2011-03-301-3/+5
| | | | This will fix bug #361257.
* display_merge: tweak background/logging logicv2.2.0_alpha29Zac Medico2011-03-271-3/+5
|
* dblink: rename 'buffer' var in _elog_processZac Medico2011-03-271-5/+5
| | | | Avoid name collision with built-in 'buffer' function.
* unmerge: fix lock/UnsupportedAPIException logicZac Medico2011-03-271-7/+12
|
* UnsupportedAPIException: handle unicode in EAPIZac Medico2011-03-272-4/+15
| | | | | Normally EAPI doesn't contain unicode, but as in bug #359675, it can contain practically anything if files in /var/db/pkg are corrupt.
* MergeProcess: add fallback setcpv callZac Medico2011-03-261-3/+19
| | | | | | | It's important that this metadata access happens in the parent process, since closing of file descriptors in the subprocess can prevent access to open database connections such as that used by the sqlite metadata cache module.
* MergeProcess: query blockers in the main processZac Medico2011-03-262-4/+8
| | | | | Metadata cache queries may not work for some databases from within a subprocess. For example, sqlite is known to misbehave.
* display_merge: pass through noiselevel argsZac Medico2011-03-261-1/+2
|
* Scheduler: pkg_to_replace beware old-style virtZac Medico2011-03-261-1/+2
|
* BlockerDB: add SLOT match in discardBlockerZac Medico2011-03-261-1/+3
|
* MergeListItem: inherit _poll and _waitZac Medico2011-03-261-8/+0
|
* MergeProcess: relocate portage reinstall codeZac Medico2011-03-262-61/+67
| | | | | This code goes inside _start since it needs to execute in the parent process.
* unmerge: fix PORTAGE_BACKGROUND logicZac Medico2011-03-262-5/+15
|
* Reoranize PackageMerge/MergeListItem interaction.Zac Medico2011-03-265-32/+22
|
* PackageMerge: call wait() for conformityZac Medico2011-03-251-2/+1
|
* Update header timestamps for modified files.Zac Medico2011-03-258-8/+8
|
* MergeProcess: call elog_process for replaced pkgsZac Medico2011-03-253-5/+8
|
* dblink: use self.mycpv in _elogZac Medico2011-03-251-2/+2
|
* MergeProcess: toggle vardbapi._pkgs_changedZac Medico2011-03-251-0/+1
|