diff --git a/pym/cl_apply_template.py b/pym/cl_apply_template.py index 3e8ab94..e408f8e 100644 --- a/pym/cl_apply_template.py +++ b/pym/cl_apply_template.py @@ -136,6 +136,7 @@ subdirectories %s")%', '.join(dirsTemplates)) sectionsWork = map(lambda x: x.rpartition("-")[2], self.installProgs) dictPakkages = {} oldPymPath = "" + listIndex = [] for sectName in sectionsWork: realPath = "/usr/lib/calculate-2.2/calculate-%s"%sectName pymPath = os.path.join(realPath,"pym") @@ -196,10 +197,12 @@ subdirectories %s")%', '.join(dirsTemplates)) self.printERROR(errMess) return False if dirsFiles and dirsFiles[1]: + if not nameAndVerPkg in listIndex: + listIndex.append(nameAndVerPkg) dictPakkages[nameAndVerPkg] =\ sorted(list(set(dirsFiles[1]))) if dictPakkages: - for calcPkg in dictPakkages: + for calcPkg in listIndex: self.printWARNING(_("Package %s has changed files")%calcPkg+":") for nameF in dictPakkages[calcPkg]: nameFile = nameF