aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync/mageiasync.py
diff options
context:
space:
mode:
Diffstat (limited to 'mageiaSync/mageiasync.py')
-rw-r--r--mageiaSync/mageiasync.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py
index 9dc4c7b..3582e2a 100644
--- a/mageiaSync/mageiasync.py
+++ b/mageiaSync/mageiasync.py
@@ -447,11 +447,10 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
self.rd.chooseDir.setText(self.destination)
answer=self.rd.exec_()
if answer:
- returncode=mageiaSyncExt.rename(self.rd.chooseDir.text(),self.rd.oldRelease.text(),str(self.rd.newRelease.text()))
- if returncode==1:
- returnMsg="Error in renaming"
- else:
- returnMsg=self.tr("Success in renaming")
+ nbf, nbr = mageiaSyncExt.rename(self.rd.chooseDir.text(),\
+ self.rd.oldRelease.text(),str(self.rd.newRelease.text()),\
+ 0,0)
+ returnMsg=(self.tr("Renaming {0} files and {1} directories")).format(nbf, nbr)
self.lvMessage(returnMsg)
self.updateList()
self.rd.close()