summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* repoman: cleanup gpgsignv2.1.9.46Zac Medico2011-04-131-12/+23
|
* Update timestamps in headers of modified files.Zac Medico2011-04-136-6/+6
|
* doins: tweak $DISTDIR symlink handlingZac Medico2011-04-132-3/+4
| | | | | Only match stuff inside $PORTAGE_ACTUAL_DISTDIR/ so that we don't stray from PMS.
* doins: dereference abs symlinks to filesZac Medico2011-04-131-1/+7
| | | | | | | | | Our fake $DISTDIR contains symlinks that should not be reproduced inside $D. In order to ensure that things like dodoc "$DISTDIR"/foo.pdf work as expected, we dereference symlinked files that are referenced by absolute paths. Thanks to James Cloos <cloos@jhcloos.com> for reporting this issue which he observed with the sci-mathematics/minisat ebuild.
* 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-133-7/+11
| | | | | | | | | | | | | 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
|
* Support PORTAGE_GPG_SIGNING_COMMAND variable.Arfrever Frehtes Taifersar Arahesis2011-04-133-12/+22
|
* repoman: fix profiles.desc overlay pathZac Medico2011-04-131-1/+1
| | | | | Thanks to Alexey Shvetsov <alexxy@gentoo.org> for reporting this issue and testing the fix.
* Display: fix fetch restrict msg for RO_DISTDIRSZac Medico2011-04-132-1/+4
| | | | This will fix bug #361463.
* Minor improvements in gpgsign().Arfrever Frehtes Taifersar Arahesis2011-04-131-5/+4
| | | | repoman_settings["PORTAGE_GPG_DIR"] is always set.
* Simplify calculation of repoman_settings["PORTAGE_GPG_DIR"] in gpgsign().Arfrever Frehtes Taifersar Arahesis2011-04-131-5/+2
| | | | os.path.expanduser() works even when HOME environment variable is not set.
* chk_updated_info_files: handle --quietZac Medico2011-04-131-3/+5
| | | | This will fix bug #361257.
* Use os.path.expanduser() to simplify code.Arfrever Frehtes Taifersar Arahesis2011-04-131-4/+1
|
* 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.
* emerge-webrsync: drop lzma supportZac Medico2011-03-271-4/+2
| | | | | | | | The lzma snapshots have been replaced by xz snapshots, as discussed in the "RFC: Remove .lzma in favor of .xz portage snapshots" thread on the gentoo-dev ml: http://archives.gentoo.org/gentoo-dev/msg_7de1b57ce531fdf33d33b5b070006436.xml
* 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-263-4/+19
| | | | | | 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.
* Optimize ebuild.sh to cache preprocessing output.David James2011-03-261-8/+8
| | | | | | | | | | | | | Right now ebuild.sh runs preprocessing steps multiple times during the same build. It processes the same environment and produces the same output every time. This slows down the build unnecessarily. This optimization cuts build time for 50 binary packages with 16 jobs from 3m22 to 2m33 (33%). Change-Id: I72ac84cce2eb60d17736cc5f5343d4a858ec86f4 Review URL: http://codereview.chromium.org/6733008
* 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.
* portageq owners: list orphans via stderrZac Medico2011-03-261-5/+21
|
* 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-183-3/+3
|
* 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.
* ebuild-ipc: import errnoZac Medico2011-03-181-0/+1
|
* 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.
* ebuild-ipc: use non-blocking readZac Medico2011-03-181-13/+41
| | | | | | | | | | | | This makes it possible for the daemon to send a reply without blocking, thereby improving performance and also making it possible for the daemon to do a non-blocking write without a race condition. This reverts part of commit 81fc303212b8379219cf5d463c8717359b972dba, which probably didn't help portability anyway. Now, ebuild-ipc is using non-blocking read with os.read and EAGAIN handling, just like EbuildIpcDaemon since commit 7e5b81da12dd7bd59f6620840dc0d824e3f4d69a (known compatible with FreeBSD).
* AsynchronousLock: implement _cancelZac Medico2011-03-181-0/+8
|
* make.conf.5: fix "direcory" spellingZac Medico2011-03-182-2/+2
| | | | Thanks to Francesco Turco in bug #359273.
* dep_check: return errors as unicodeZac Medico2011-03-181-4/+5
| | | | | | | | | | | This should prevent the following error due to returning raw bytes, reported in forum thread #869281: File "pym/_emerge/BlockerDB.py", line 72, in findInstalledBlockers portage.writemsg("!!! %s/*DEPEND: %s\n" % \ (pkg_location, atoms), noiselevel=-1) UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 23: ordinal not in range(128)
* AsynchronousTask: add _cancel template methodZac Medico2011-03-187-17/+21
|
* Update Scheduler to protect against infinite loopDavid James2011-03-181-4/+2
| | | | | If we have running tasks, but we're not listening to these tasks, we're going to loop forever. So throw an exception in this case.
* Scheduler: tweak prefetcher cancellation logicZac Medico2011-03-184-7/+16
| | | | | This should prevent "TypeError: an integer is required" raised from waitpid when trying to cancel a prefetcher that never started.
* CompositeTask: handle unstarted terminated tasksZac Medico2011-03-183-6/+24
|