From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QpwOt-0005Sh-BQ for garchives@archives.gentoo.org; Sun, 07 Aug 2011 05:59:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AD6221C035; Sun, 7 Aug 2011 05:59:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 54BC621C035 for ; Sun, 7 Aug 2011 05:59:41 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB6491B4047 for ; Sun, 7 Aug 2011 05:59:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id ED13780040 for ; Sun, 7 Aug 2011 05:59:39 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/package/ebuild/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/package/ebuild/fetch.py X-VCS-Directories: pym/portage/package/ebuild/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: a7abc7529df54ee300d56a7d33cc87b5af0e298b Date: Sun, 7 Aug 2011 05:59:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 1f02676d08d20478e1fd0e010e39fc13 commit: a7abc7529df54ee300d56a7d33cc87b5af0e298b Author: Zac Medico gentoo org> AuthorDate: Sun Aug 7 05:59:26 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Aug 7 05:59:26 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Da7abc752 fetch: handle non-essential statvfs failure --- pym/portage/package/ebuild/fetch.py | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/pym/portage/package/ebuild/fetch.py b/pym/portage/package/eb= uild/fetch.py index 2ae1fe8..5cbbf87 100644 --- a/pym/portage/package/ebuild/fetch.py +++ b/pym/portage/package/ebuild/fetch.py @@ -580,8 +580,17 @@ def fetch(myuris, mysettings, listonly=3D0, fetchonl= y=3D0, else: # check if there is enough space in DISTDIR to completely store myfil= e # overestimate the filesize so we aren't bitten by FS overhead + vfs_stat =3D None if size is not None and hasattr(os, "statvfs"): - vfs_stat =3D os.statvfs(mysettings["DISTDIR"]) + try: + vfs_stat =3D os.statvfs(mysettings["DISTDIR"]) + except OSError as e: + writemsg_level("!!! statvfs('%s'): %s\n" % + (mysettings["DISTDIR"], e), + noiselevel=3D-1, level=3Dlogging.ERROR) + del e + + if vfs_stat is not None: try: mysize =3D os.stat(myfile_path).st_size except OSError as e: