From f7c6c4e5af001133e3eb0cc49c512ab636fb4a3d Mon Sep 17 00:00:00 2001 From: Papoteur Date: Fri, 20 Nov 2015 09:08:50 +0100 Subject: Reverse "not creating new line when checking" which was bugous --- mageiaSync/mageiasync.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mageiaSync/mageiasync.py b/mageiaSync/mageiasync.py index 792446d..84d5e85 100644 --- a/mageiaSync/mageiasync.py +++ b/mageiaSync/mageiasync.py @@ -505,8 +505,11 @@ class IsosViewer(QMainWindow, mageiaSyncUI.Ui_mainWindow): # Look for ISO in local list item=self.model.findItems(name,QtCore.Qt.MatchExactly,1)[0] except: - # Remote ISO is not yet in local directory. We pass. - break + # Remote ISO is not yet in local directory. We add it in localList and create the directory + self.localAdd(path,name,0) + basedir=QtCore.QDir(self.destination) + basedir.mkdir(path) + item=self.model.findItems(name,QtCore.Qt.MatchExactly,1)[0] row=self.model.indexFromItem(item).row() if self.location == "" : self.nameWithPath='rsync://'+self.user+'@bcd.mageia.org/isos/'+self.release+'/'+path -- cgit v1.2.1