From b258ca42d7a6fbe5338217cc1f7bcad5e2e5f0ad Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 15 May 2007 19:44:43 +0000 Subject: [PATCH] Merged from trunk 6534:6535 +------------------------------------------------------------------------+ | 6535 | For bug #178293, don't write digest-* files unnecessarily | | zmedico | when SRC_URI is empty. | +------------------------------------------------------------------------+ svn path=/main/branches/prefix/; revision=6539 --- pym/portage/manifest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py index 3405d7926..cd03dc293 100644 --- a/pym/portage/manifest.py +++ b/pym/portage/manifest.py @@ -238,8 +238,11 @@ class Manifest(object): f = open(dname, "r") old_data = self._parseDigests(f) f.close() - if len(old_data) == 1 and "DIST" in old_data: - new_data = self._getDigestData(distlist) + new_data = self._getDigestData(distlist) + if not old_data and not new_data: + # SRC_URI is empty + update_digest = False + elif len(old_data) == 1 and "DIST" in old_data: if "DIST" in new_data: for myfile in new_data["DIST"]: for hashname in \ -- 2.26.2