From 90a090767e87ab81c8fb8ffaa2d4bf9b2cf7570f Mon Sep 17 00:00:00 2001 From: Fabio Tranchitella Date: Wed, 16 Aug 2006 19:38:34 +0000 Subject: [PATCH] Undo changes if the hint is not successful. --- britney.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/britney.py b/britney.py index ee755bb..d6e9b97 100644 --- a/britney.py +++ b/britney.py @@ -2291,7 +2291,7 @@ class Britney: nuninst_end, extra = None, None else: if init: - (nuninst_end, extra) = self.iter_packages(init, selected, hint=True) + (nuninst_end, lundo) = self.iter_packages(init, selected, hint=True) else: nuninst_end = None (nuninst_end, extra) = self.iter_packages(upgrade_me, selected, nuninst=nuninst_end) if not self.is_nuninst_asgood_generous(self.nuninst_orig, nuninst_end): @@ -2315,7 +2315,7 @@ class Britney: else: if init: self.nuninst_orig = backup self.output_write("FAILED\n") - if not earlyabort: return + if not earlyabort and not init: return # undo all the changes for (undo, pkg, pkg_name, suite) in lundo: