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 1R41cP-0000Ka-Bf for garchives@archives.gentoo.org; Thu, 15 Sep 2011 02:24:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B5ED21C0B6; Thu, 15 Sep 2011 02:23:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F31B621C0B6 for ; Thu, 15 Sep 2011 02:23:53 +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 8C7BE1B4018 for ; Thu, 15 Sep 2011 02:23:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 90D2380042 for ; Thu, 15 Sep 2011 02:23:52 +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/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/manifest.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: d1f3fdfb943a9021d454c12b3418e44e5275ad69 Date: Thu, 15 Sep 2011 02:23:52 +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: 08f8d3410d75c3bed27c678cb962441a commit: d1f3fdfb943a9021d454c12b3418e44e5275ad69 Author: Zac Medico gentoo org> AuthorDate: Thu Sep 15 02:21:45 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Sep 15 02:21:45 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dd1f3fdfb Don't write empty (thin) Manifest files. With thin manifest, there's no need to have a Manifest file if there are no DIST entries. --- pym/portage/manifest.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py index 3f0aa93..32cc2c0 100644 --- a/pym/portage/manifest.py +++ b/pym/portage/manifest.py @@ -257,7 +257,10 @@ class Manifest(object): break except (IOError, OSError) as e: if e.errno =3D=3D errno.ENOENT: - pass + if not myentries: + # With thin manifest, there's no need to have + # a Manifest file if there are no DIST entries. + update_manifest =3D False else: raise if update_manifest: