[client.text_smart] fix "smart inflate" tool
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user