summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Use AlarmSignal for timout handling in mod_mail_summary.finalize().Zac Medico2010-09-031-10/+6
|
* Make AlarmSignal._signal_handler() restore the default SIGALRMZac Medico2010-09-031-0/+1
| | | | handler.
* Use AlarmSignal for timeout handling in elog_process().Zac Medico2010-09-031-7/+6
|
* Fix breakage from previous commit.Zac Medico2010-09-031-6/+6
|
* Move AlarmSignal.unregister() call to a better place in action_sync().Zac Medico2010-09-031-2/+3
|
* Use AlarmSignal for alarm timeout in action_sync().Zac Medico2010-09-031-8/+5
|
* Make AlarmSignal.register() require a time parameter and pass it toZac Medico2010-09-031-1/+2
| | | | signal.alarm().
* Add AlarmSignal.register() and unregister() classmethods in order toZac Medico2010-09-031-1/+11
| | | | handle interaction with the signal module.
* Add a test case for intentionally short timeout with QueueScheduler.run().Zac Medico2010-09-031-1/+35
|
* Add support for a timeout argument to QueueScheduler.run() andZac Medico2010-09-034-11/+57
| | | | | use it in IpcDaemonTestCase to implement a 40 second timeout in test cases.
* Bug #335777 - Add a 40 second timeout in ebuild-ipc.py, so that if anZac Medico2010-09-031-0/+14
| | | | | orphan is left for any reason then it will exit with an error message instead of hanging indefinitely.
* Account for package.use.force/mask in previous commit.Zac Medico2010-09-031-2/+4
|
* autounmask: Don't print masked/forced flags in "required by" commentsSebastian Luther2010-09-031-0/+4
|
* Old "Change USE" message: Don't screw up if the highest version is masked ↵Sebastian Luther2010-09-031-7/+17
| | | | and parent changes exist
* Make emerge display a warning message if FEATURES contains keepworkZac Medico2010-09-031-0/+15
| | | | | or keeptemp since these features may confuse users and lead them to report invalid bugs.
* Fix whenago() to show times as integers instead of floats.v2.2_rc74Zac Medico2010-09-021-5/+5
|
* Add backward compatible config.pmaskdict and punmaskdict propertiesZac Medico2010-09-021-0/+8
| | | | | | that return copies of the corresponding MaskManager attributes. This is safe since MaskManager now stores the values in these dicts as immutable tuples.
* Make MaskManager use tuples for values inside _pmaskdict andZac Medico2010-09-021-0/+4
| | | | _punmaskdict.
* Implement ExtendedAtomDict.copy().Zac Medico2010-09-021-0/+6
|
* Bug #335620 - Add backward compatible config.virtuals and virts_pZac Medico2010-09-021-0/+14
| | | | properties, and trigger a DeprecationWarning if they are accessed.
* Filter more variables that don't need to end up in environment.bz2.Zac Medico2010-09-021-5/+9
|
* Fix breakage for python3 from trying to mix bytes and unicode inZac Medico2010-09-021-1/+1
| | | | load_default_config().
* Add a _SANDBOX_COMPAT_LEVEL constant which will be used to enableZac Medico2010-09-023-2/+8
| | | | a workaround for bug #288863 in the stable branch.
* Omit dotfiles in /usr/share/portage/config/sets (e.g. vim swapfiles).Michał Górny2010-09-021-1/+2
|
* Bug #248603 - Add a _ENABLE_REPO_NAME_WARN constant that's used toZac Medico2010-09-022-1/+5
| | | | | disable warnings about "missing repo_name entries" for the stable branch.
* Bug #335670 - Make copyright header in herdbase.py refer to "GPL 2 or later"Zac Medico2010-09-021-1/+1
| | | | instead of just GPL-2.
* Adjust EbuildIpcDaemon pickle read and write code in order to ensureZac Medico2010-09-022-4/+30
| | | | | atomc reading and writing of whole pickles. This should be the least error-prone approach, given the non-blocking nature of the streams.
* Bug #335642 - Also make show_masked_packages() display to stdout sinceZac Medico2010-09-011-2/+2
| | | | depgraph._show_unsatisfied_dep() calls it.
* Bug #335642 - Revert depgraph._show_unsatisfied_dep() to display toZac Medico2010-09-011-14/+14
| | | | | | | | | stdout, so that app-portage/autounmask continues to work. Note that depgraph.display_problems() temporarily overrides the stdout stream to point to stderr, so mask messages shown there continue to go to stderr. Maybe the emerge --autounmask will eventually make app-portage/autounmask obsolete, but for now we should support both approaches since emerge --autounmask is relatively experimental.
* Remove reference to nonexistent _unlock_builddir() method inv2.2_rc73Zac Medico2010-09-011-1/+0
| | | | EbuildPhase._env_extractor_exit().
* Add support to config.setcpv() for caching USE settings from builtZac Medico2010-09-013-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | packages, and use it for evaluating conditional USE deps in atoms passed via IPC to helpers like has_version and best_version. Since the pickled object that contains the IPC command will no longer contain USE, it should solve cases that have been reported in which large USE strings trigger poor handling of non-blocking read in pickle.load(): Traceback (most recent call last): File "/usr/bin/emerge", line 43, in <module> retval = emerge_main() File "/usr/lib64/portage/pym/_emerge/main.py", line 1649, in emerge_main myopts, myaction, myfiles, spinner) File "/usr/lib64/portage/pym/_emerge/actions.py", line 437, in action_build retval = mergetask.merge() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1033, in merge rval = self._merge() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1349, in _merge self._main_loop() File "/usr/lib64/portage/pym/_emerge/Scheduler.py", line 1498, in _main_loop self._poll_loop() File "/usr/lib64/portage/pym/_emerge/PollScheduler.py", line 139, in _poll_loop handler(f, event) File "/usr/lib64/portage/pym/_emerge/EbuildIpcDaemon.py", line 36, in _input_handler obj = pickle.load(self._files.pipe_in) File "/usr/lib64/python2.6/pickle.py", line 1370, in load return Unpickler(file).load() File "/usr/lib64/python2.6/pickle.py", line 858, in load dispatch[key](self) File "/usr/lib64/python2.6/pickle.py", line 1195, in load_setitem value = stack.pop() IndexError: pop from empty list
* Make atomic directory creation code in dblink.mergeme() use equivalentZac Medico2010-09-011-4/+16
| | | | error handling to portage.util.ensure_dirs().
* Add a note to the ensure_dirs() docstring about atomic directory creation.Zac Medico2010-09-011-1/+6
|
* Make ensure_dirs() use os.path.isdir() to verify that the directoryZac Medico2010-09-011-2/+3
| | | | exists when EISDIR is raised, since this is abnormal behavior.
* In ensure_dirs(), only call apply_permissions() when keyword argumentsZac Medico2010-09-011-2/+5
| | | | for it are given.
* Make more doebuild() commands exempt from _check_temp_dir().Zac Medico2010-09-011-2/+8
|
* In doebuild(), don't call _check_temp_dir() for pseudo-phases such asZac Medico2010-09-011-3/+5
| | | | 'manifest' and 'digest' that don't require a temp dir.
* In dblink.mergeme(), handle EISDIR which can be raised from mkdir callsZac Medico2010-08-312-2/+5
| | | | on FreeBSD (see bug #187518).
* Fix WorldSelectedSet._load2() to always return a list instead of aZac Medico2010-08-311-1/+1
| | | | | set for nonatoms so that we don't trigger 'TypeError: can only concatenate list (not "set") to list'.
* Fix depgraph._serialize_tasks() so that portage-9999 is always promotedZac Medico2010-08-311-1/+3
| | | | to the front of the merge list when it is reinstalled.
* Fix portage to create directories atomically in fast build.David James2010-08-311-9/+20
| | | | | | | | | | | | | | If multiple ebuild processes create the same directory, portage should not exit with an error message. Instead we should just be okay with the fact that another process created the directory. This is only necessary for fast build because we eliminate the giant lock that surrounds package merges. TEST=Create fresh chroot and do full build from source start to finish BUG=none Review URL: http://codereview.chromium.org/2998002
* Update portage to create directories atomically.David James2010-08-311-4/+4
| | | | | | | | | | | | | | | | | | | | | | | Portage should use the ensure_dirs function instead of os.makedirs to create directories, because this function ensures atomicity. It prevents failures when more than one process tries to create the same directory. This fixes a crash bug reported by msb: [...] File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3258, in _merge self.vartree.dbapi._bump_mtime(self.mycpv) File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 152, in _bump_mtime os.makedirs(catdir) File "/usr/lib64/portage/pym/portage/__init__.py", line 210, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) File "/usr/lib64/python2.6/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 17] File exists: '/home/msb/trunk/src/build/images/x86-generic/0.8.63.2010_08_03_1844-a1/rootfs//var/db/pkg/x11-proto' BUG=chromium-os:5366 TEST=build_packages && build_image Review URL: http://codereview.chromium.org/3113014
* Add comments about consumers of FakeVardbapi.getpath().Zac Medico2010-08-311-0/+4
|
* Simplify the vartree constructor usage in config.getvirtuals().Zac Medico2010-08-311-2/+1
|
* Use self.dbapi.getpath() to simplify code in vartree.get_provide().Zac Medico2010-08-311-1/+1
|
* Bug #335439 - Fix "AttributeError: 'vartree' object has no attributeZac Medico2010-08-311-1/+1
| | | | '_eroot'" in vartree.get_provide().
* When portage updates itself and the new version either inheritsZac Medico2010-08-313-5/+12
| | | | | | | | | git.eclass or has 9999 in its version, trigger the 'use copy of current sources for install, then restart portage' routine. This is required since with the live git portage-9999 ebuild we can't use the version to detect incompatible changes to ebuild.sh. This issue was noticed due to recent versions of ebuild.sh expecting PORTAGE_BZIP2_COMMAND to be set, causing incompatibility with installed portage-9999 instances.
* Fix ResolverPlayground.cleanup() to cleanup the portdbapi instance.Zac Medico2010-08-311-0/+3
|
* Show PORTAGE_BZIP2_COMMAND and PORTAGE_BUNZIP2_COMMAND in emerge --info,Zac Medico2010-08-301-1/+11
| | | | in case it triggers mysterious unpack() issues or something.
* Fix bugs in features_set._prune_overrides() and add another test case.Zac Medico2010-08-302-12/+19
|