From 29cf26f9d7ed182ea84ddb8caead3cb0756c5a65 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Thu, 8 Nov 2007 19:23:45 +0000 Subject: Fix the return value of --info --- layman/action.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layman/action.py b/layman/action.py index d05fb1c..32802b7 100644 --- a/layman/action.py +++ b/layman/action.py @@ -289,6 +289,8 @@ class Info: def run(self): ''' Print information about the selected overlays.''' + result = 0 + for i in self.selection: overlay = self.rdb.select(i) @@ -304,7 +306,7 @@ class Info: OUT.warn('Overlay "' + i + '" does not exist!', 2) result = 1 - return 0 + return result #=============================================================================== # -- cgit v1.2.3-1-g7c22