summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* depgraph: account for new-style virtual/libcZac Medico2011-05-041-71/+93
| | | | This will fix bug #364681.
* repoman: remove most old-style virtual checksZac Medico2011-05-041-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-05-042-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-05-041-3/+5
| | | | This will fix bug #365319.
* action_info: eliminate duplicate info_pkgs matchZac Medico2011-05-041-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-05-041-1/+1
|
* Move preinst/postinst_bsdflags from bash to pyDavid James2011-05-042-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-05-041-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-05-043-1/+18
| | | | This will fix bug #363137.
* emerge: fix indent for --binpkg-respect-use helpZac Medico2011-05-041-1/+1
|
* --autounmask: Don't change masked/forced flagsSebastian Luther2011-05-043-3/+36
| | | | This will fix bug #364701.
* expand_new_virt: don't traverse blockersZac Medico2011-05-041-0/+6
|
* expand_new_virt: validate EAPI, IUSE and USEZac Medico2011-05-041-4/+25
|
* expand_new_virt: eliminate cpv_getkeyZac Medico2011-05-041-2/+1
|
* expand_new_virt: use stack for recursionZac Medico2011-05-041-24/+25
|
* Fix a typo.Arfrever Frehtes Taifersar Arahesis2011-05-041-1/+1
|
* emerge --info: support new-style virtualsZac Medico2011-05-041-23/+62
| | | | This will fix bug #364673.
* repoman: deprecate more eclassesTomas Chvatal2011-05-041-0/+5
|
* Update timestamps in headers of modified files.Zac Medico2011-04-134-4/+4
|
* doins: tweak $DISTDIR symlink handlingZac Medico2011-04-131-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-131-0/+3
|
* extract_affecting_use: allow parens in atomsZac Medico2011-04-131-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-131-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-131-1/+1
|
* Scheduler: add more info in docstring commentsZac Medico2011-04-131-1/+7
| | | | This clarifies the purposes of _system_merge_started and _choose_pkg.
* Add force-mirror FEATURE.David James2011-04-132-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-131-1/+2
|
* Display: fix fetch restrict msg for RO_DISTDIRSZac Medico2011-04-132-1/+4
| | | | This will fix bug #361463.
* chk_updated_info_files: handle --quietZac Medico2011-04-131-3/+5
| | | | This will fix bug #361257.
* unmerge: fix lock/UnsupportedAPIException logicv2.1.9.45Zac Medico2011-03-271-1/+1
|
* 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.
* Update header timestamps for modified files.Zac Medico2011-03-264-4/+4
|
* 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
|
* unmerge: fix PORTAGE_BACKGROUND logicZac Medico2011-03-261-0/+7
|
* config: blacklist PORTAGE_BACKGROUND* varsZac Medico2011-03-261-1/+5
|
* env_update: remove sleep_for_mtime_granularityDavid James2011-03-261-11/+7
| | | | | | | | Instead of sleeping, use os.utime to avoid mtime ambiguity. Change-Id: I359ececca19b6be9f5997ac5c8fe6fea6ea49dd5 Review URL: http://codereview.chromium.org/6676150
* PollScheduler: tweak _unregister event cleanupZac Medico2011-03-261-5/+9
|
* PollScheduler: handle missing log directoryZac Medico2011-03-261-12/+23
| | | | | This can be triggered by AbstractPollTask._log_poll_exception(), as reported by Michael Haubenwallner <haubi@gentoo.org> for AIX.
* Update Portage to sync BlockerDB at init.David James2011-03-263-30/+25
| | | | | | | | | | | | Currently, Portage syncs the BlockerDB before every merge. This slows down merges considerably because it requires reading the entire vardb from disk. Since Portage doesn't merge conflicting packages anyway, we can optimize this by just reading the vardb at initialization and caching that. Change-Id: I6701926f022ef3aa2da10482fc8b09573ae24610 Review URL: http://codereview.chromium.org/6688037
* emerge: support [ y | n ] for --askZac Medico2011-03-262-3/+18
| | | | | | 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.
* get_dep_chain: handle InvalidDependStringZac Medico2011-03-261-2/+6
|
* chk_updated_cfg_files: fix whitespace in messageZac Medico2011-03-261-1/+2
| | | | Thanks to Dennis Schridde in bug #359681.
* emerge_main: add "args" parameter (sys.argv[1:])Zac Medico2011-03-261-7/+12
| | | | | Also, fix local portage.debug import so that "global portage" is not necessary.
* TaskSequence: also call CompositeTask._cancel()Zac Medico2011-03-261-0/+1
| | | | | | This is a regression from commit 363a7478a100495d2e8597bc6c6d2fdac94339e0 but it's usually not noticeable with Ctrl-C since SIGINT is propagated to nested processes.
* Update timestamps in headers of modified files.v2.1.9.44Zac Medico2011-03-182-2/+2
|
* CompositeTask: fix _wait for TASK_QUEUEDZac Medico2011-03-181-3/+19
| | | | | | | Though this case might never have been triggered, the logic was broken for cases in which self.cancelled was false and a task was queued. In this case we need to call back into the scheduler until the queued task is started or we are cancelled, whichever comes first.
* EbuildIpcDaemon: use non-blocking writeZac Medico2011-03-181-5/+24
| | | | | | | | | | | This prevents the Scheduler from hanging if the client is killed before we can send the reply, as reported by David James: http://codereview.chromium.org/6713003 This commit depends on ebuild-ipc (the client) opening the other side of this fifo before it sends its request, which has already been added in commit eff879ff0ce7dcc1ce68d5f16de1ec73051f8c18.
* AsynchronousLock: implement _cancelZac Medico2011-03-181-0/+8
|