223
228
filePath = os.path.join(mainPath,nfiles[download.DEBFILENAME] )
225
230
if not utils.fileExist(filePath):
226
231
remotePath = self.conf[xmlfile.METHOD] + '://' + self.conf[xmlfile.HOST] + '/' + self.conf[xmlfile.DISTRIBUTION] + '/' + nfiles[download.FILENAME]
227
232
self.Packages = download.Download(remotePath, mainPath)
228
233
self.Packages.connect('download_status',self.on_downloadStatus)
229
234
self.Packages.download(True)
231
237
fraction = float((100 * float(nfiles[download.SIZE])) / self.totalsize)
232
238
self.on_downloadStatus(self.frmFetchRepo, nfiles[download.SIZE],float(nfiles[download.SIZE]), float(nfiles[download.SIZE]), float(fraction))