Ignore:
Timestamp:
03/04/12 08:58:27 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The MLXMANIFEST is generated when creating the distribution and files to be removed are really removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/update.py

    r36 r37  
    157157            self._sudoCondition.notify()
    158158       
    159     def setTotalSize(self, numToModifyAndNew, totalSize, numToRemove):
     159    def setTotalSize(self, numToModifyAndNew, totalSize, numToRemove,
     160                     numToRemoveLocal):
    160161        """Called when the downloading of the files has started."""
    161162        self._numToModifyAndNew = numToModifyAndNew
     
    164165        self._downloaded = 0
    165166        self._numToRemove = numToRemove
     167        self._numToRemoveLocal = numToRemoveLocal
    166168        self._numRemoved = 0
    167169
    168170        self._totalProgress = self._totalSize + \
    169                               (self._numToModifyAndNew + self._numToRemove) * \
     171                              (self._numToModifyAndNew + \
     172                               self._numToRemove + self._numToRemoveLocal) * \
    170173                              Updater.REMOVE2BYTES
    171         self._waitAfterFinish = self._totalProgress > 0
     174        self._waitAfterFinish = self._totalSize > 0 or self._numToRemove > 0
    172175
    173176    def _startDownload(self):
     
    233236        """Called when the update has been done."""
    234237        gobject.idle_add(self._done)
    235         self._restart = self._totalProgress>0
     238        self._restart = self._waitAfterFinish
    236239
    237240    def _done(self):
Note: See TracChangeset for help on using the changeset viewer.