Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 241100 | Differences between
and this patch

Collapse All | Expand All

(-)main/trunk/pym/_emerge/__init__.py (+12 lines)
Lines 2279-2284 Link Here
2279
		self.env = fetch_env
2279
		self.env = fetch_env
2280
		SpawnProcess._start(self)
2280
		SpawnProcess._start(self)
2281
2281
2282
	def _pipe(self, fd_pipes):
2283
		"""When appropriate, use a pty so that fetcher progress bars,
2284
		like wget has, will work properly."""
2285
		if self.prefetch or self.background or not sys.stdout.isatty():
2286
			# When the output only goes to a log file,
2287
			# there's no point in creating a pty.
2288
			return os.pipe()
2289
		stdout_pipe = fd_pipes.get(1)
2290
		got_pty, master_fd, slave_fd = \
2291
			portage._create_pty_or_pipe(copy_term_size=stdout_pipe)
2292
		return (master_fd, slave_fd)
2293
2282
	def _clean_builddir(self):
2294
	def _clean_builddir(self):
2283
		"""Uses shutil.rmtree() rather than spawning a 'clean' phase. Disabled
2295
		"""Uses shutil.rmtree() rather than spawning a 'clean' phase. Disabled
2284
		by keepwork or keeptemp in FEATURES."""
2296
		by keepwork or keeptemp in FEATURES."""

Return to bug 241100