From caeee757aa40559341544a199845e4a9ac80e7ae Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 23 Jun 2009 16:15:39 +0200 Subject: [PATCH] [client.text_smart] fix "smart inflate" tool --- client/text_smart.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/text_smart.py b/client/text_smart.py index 69302bfb0..f41f409d7 100644 --- a/client/text_smart.py +++ b/client/text_smart.py @@ -151,9 +151,12 @@ def CommonFlate(mytbz2s, action, savedir = None): savedir = etpConst['packagestmpdir'] for tbz2 in mytbz2s: - #print_info(brown(" * ")+darkred("Analyzing: ")+tbz2) + + valid_etp = True + if action == "deflate": + valid_etp = Equo.entropyTools.is_entropy_package_file(tbz2) if not (os.path.isfile(tbz2) and tbz2.endswith(etpConst['packagesext']) and \ - Equo.entropyTools.is_entropy_package_file(tbz2)): + valid_etp): print_error(darkred(" * ")+bold(tbz2)+red(" %s" % (_("is not a valid Entropy package"),))) return 1