[client.text_smart] fix "smart inflate" tool

This commit is contained in:
Fabio Erculiani
2009-06-23 16:15:39 +02:00
parent e8226c8fa2
commit caeee757aa
+5 -2
View File
@@ -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