From 6a18bfee9b44df08261f17e417a355502cb58472 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 7 Feb 2010 08:05:11 +0100 Subject: [PATCH] [equo] check "equo smart" argv len --- client/text_smart.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/text_smart.py b/client/text_smart.py index 8e235ab93..78a653d49 100644 --- a/client/text_smart.py +++ b/client/text_smart.py @@ -51,6 +51,8 @@ def smart(options): else: newopts.append(opt) options = newopts + if not options: + return -10 rc = 0 @@ -564,4 +566,4 @@ int main() { entropy.tools.compress_tar_bz2(smartpath, pkgtmpdir) shutil.rmtree(pkgtmpdir,True) - return 0 \ No newline at end of file + return 0