diff options
Diffstat (limited to 'pym/_emerge/__init__.py')
-rw-r--r-- | pym/_emerge/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 3a5d82cec..3c2cf87c2 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -3167,6 +3167,12 @@ class Binpkg(CompositeTask): pkg_count = self.pkg_count if not self.opts.fetchonly: self._build_dir.lock() + try: + shutil.rmtree(self._build_dir.dir_path) + except EnvironmentError, e: + if e.errno != errno.ENOENT: + raise + del e portage.prepare_build_dirs(self.settings["ROOT"], self.settings, 1) fetcher = BinpkgFetcher(background=self.background, logfile=self.settings.get("PORTAGE_LOG_FILE"), pkg=self.pkg, |