Skip PORTAGE_TMPDIR write check for fetchonly.
authorZac Medico <zmedico@gentoo.org>
Mon, 10 Oct 2011 00:15:31 +0000 (17:15 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 10 Oct 2011 00:15:31 +0000 (17:15 -0700)
Bug #286201

pym/_emerge/EbuildBuild.py

index 2b0f41209ca91f2c17183c8529671a5d689ceb2a..012a1efc67bd5a1994cd195bd3484f515fdece58 100644 (file)
@@ -30,12 +30,13 @@ class EbuildBuild(CompositeTask):
                pkg = self.pkg
                settings = self.settings
 
-               rval = _check_temp_dir(settings)
-               if rval != os.EX_OK:
-                       self.returncode = rval
-                       self._current_task = None
-                       self.wait()
-                       return
+               if not self.opts.fetchonly:
+                       rval = _check_temp_dir(settings)
+                       if rval != os.EX_OK:
+                               self.returncode = rval
+                               self._current_task = None
+                               self.wait()
+                               return
 
                root_config = pkg.root_config
                tree = "porttree"