From 4a533ca0bddb1da47a228f80654572b61fb81a03 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 4 Jan 2010 06:40:57 +0000 Subject: [PATCH] Revert change. pisi can not decide which operation to return. --- ChangeLog | 4 ---- pisi/cli/history.py | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2bf6061..8b8a462f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,3 @@ -2009-12-31 Serdar Dalgıç - * pisi/cli/history.py: Do not give permission to takeback system to - the initial state which is always `pardus-cd repository is updated.` . - 2009-12-21 Gökçen Eraslan * pisi/actionsapi/cmaketools.py: Change CMake build type to RelWithDebInfo to get faster KDE packages. diff --git a/pisi/cli/history.py b/pisi/cli/history.py index cd929832..23742833 100644 --- a/pisi/cli/history.py +++ b/pisi/cli/history.py @@ -123,10 +123,7 @@ Lists previous operations.""") elif ctx.get_option('takeback'): opno = ctx.get_option('takeback') if opno != -1: - if opno == 1: - ctx.ui.error(_("You can not takeback your system to the initial state.")) - else: - self.takeback(opno) + self.takeback(opno) return self.redirect_output(self.print_history)