aboutsummaryrefslogtreecommitdiffstats
path: root/mageiaSync
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-02-28 22:23:47 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-02-28 22:23:47 +0100
commitea5e98a30bfa74387c1e990add9a2ec393bc6fa6 (patch)
treee961e8077ec35397430866c20ab5771d86ef3d94 /mageiaSync
parentaa40d66614bbe0ab6e39945e9482bd5f42f3acf7 (diff)
downloadMageiaSync-ea5e98a30bfa74387c1e990add9a2ec393bc6fa6.tar
MageiaSync-ea5e98a30bfa74387c1e990add9a2ec393bc6fa6.tar.gz
MageiaSync-ea5e98a30bfa74387c1e990add9a2ec393bc6fa6.tar.bz2
MageiaSync-ea5e98a30bfa74387c1e990add9a2ec393bc6fa6.tar.xz
MageiaSync-ea5e98a30bfa74387c1e990add9a2ec393bc6fa6.zip
Add updating lists after new params and renaming
Diffstat (limited to 'mageiaSync')
-rw-r--r--mageiaSync/mageiaSyncExt.py4
-rw-r--r--mageiaSync/mageiasync.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py
index 2bd2e87..bf1a825 100644
--- a/mageiaSync/mageiaSyncExt.py
+++ b/mageiaSync/mageiaSyncExt.py
@@ -135,9 +135,9 @@ class syncThread(QThread):
errorOccured=True
self.lvM.emit(self.tr("Starting rsync with ")+iso['nameWithPath'])
if self.bwl!=0:
- commande=['rsync','-avHP',"--bwlimit="+str(self.bwl), iso['nameWithPath'], iso['destination']]
+ commande=['rsync','-avP','--no-p','--modify-window=1',"--bwlimit="+str(self.bwl), iso['nameWithPath'], iso['destination']]
else:
- commande=['rsync','-avHP', iso['nameWithPath'], iso['destination']]
+ commande=['rsync','-avP','--no-p','--modify-window=1', iso['nameWithPath'], iso['destination']]
try:
if self.password != "":
envir = os.environ.copy()
diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py
index 23ba885..fe21035 100644
--- a/mageiaSync/mageiasync.py
+++ b/mageiaSync/mageiasync.py
@@ -305,6 +305,7 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
if self.location !="":
self.remoteDirLabel.setText(self.tr("Remote directory: ")+self.location)
+
def selectDestination(self):
# dialog box to select the destination (local directory)
directory = QFileDialog.getExistingDirectory(self, self.tr('Select a directory'),'~/')
@@ -378,6 +379,7 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
else:
returnMsg=self.tr("Success in renaming")
self.lvMessage(returnMsg)
+ self.updateList()
self.rd.close()
def prefs(self):
@@ -399,6 +401,7 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow):
params.setValue("destination",self.pd.selectDest.text())
params.setValue("bwl",str(self.pd.bwl.value()))
self.prefsInit()
+ self.updateList()
self.pd.close()