From d0f560e778412c16cfd62b2dbe1ad024c3c77f4b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 3 May 2008 02:24:40 +0000 Subject: Delete the resume list(s) if there is an unsatisfied block. svn path=/main/trunk/; revision=10117 --- pym/_emerge/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 73fd3a2f8..f09d82105 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -7669,12 +7669,14 @@ def action_build(settings, trees, mtimedb, if show_spinner: print "\b\b... done!" + unsatisfied_block = False if success: mymergelist = mydepgraph.altlist() if mymergelist and \ (isinstance(mymergelist[-1], Blocker) and \ not mymergelist[-1].satisfied): if not fetchonly and not pretend: + unsatisfied_block = True mydepgraph.display( mydepgraph.altlist(reversed=tree), favorites=favorites) @@ -7682,11 +7684,11 @@ def action_build(settings, trees, mtimedb, print "!!! at the same time on the same system." if not quiet: show_blocker_docs_link() - return 1 if not success: mydepgraph.display_problems() + if unsatisfied_block or not success: # delete the current list and also the backup # since it's probably stale too. for k in ("resume", "resume_backup"): -- cgit v1.2.3-1-g7c22