diff --git a/pym/cl_profile.py b/pym/cl_profile.py index 8aca8a0..431f505 100644 --- a/pym/cl_profile.py +++ b/pym/cl_profile.py @@ -2411,10 +2411,6 @@ class profile(_file, _terms): self.setError(\ _("Can not decode file in UTF-8:") + " " + newFile) return False - if not self.fileIsUtf(oldFile): - self.setError(\ - _("Can not decode file in UTF-8:") + " " + oldFile) - return False # Вычисляем условные блоки self.newProfile = self.applyTermsProfile(self.newProfile, newFile) @@ -2430,6 +2426,12 @@ class profile(_file, _terms): copyFile) if not objHeadNew: return filesApply + if not (objHeadNew.params.has_key("link") and\ + objHeadNew.params.has_key("symbolic")): + if not self.fileIsUtf(oldFile): + self.setError(\ + _("Can not decode file in UTF-8:") + " " + oldFile) + return False self.newProfile = objHeadNew.body #if objHeadNew.fileType != "bin": #self.newProfile = self.applyTermsProfile(self.newProfile,