Пример #1
0
    def cleanup(self):
        log.debug('Beginning removal of old updates')

        filename = get_filename(self.name, self.version,
                                self.platform, self.easy_data)

        remove_previous_versions(self.update_folder, filename)
Пример #2
0
 def _cleanup(self, patch_manifest):
     # Remove old archives that were previously used to create patches
     if len(patch_manifest) < 1:
         return
     log.info('Cleaning up files directory')
     for p in patch_manifest:
         filename = os.path.basename(p['src'])
         directory = os.path.dirname(p['src'])
         remove_previous_versions(directory, filename)
Пример #3
0
 def _cleanup(patch_manifest):
     # Remove old archives that were previously used to create patches
     if len(patch_manifest) < 1:
         return
     log.info('Cleaning up stale files')
     for p in patch_manifest:
         filename = os.path.basename(p['src'])
         directory = os.path.dirname(p['src'])
         remove_previous_versions(directory, filename)
Пример #4
0
 def cleanup(self):
     log.debug('Beginning removal of old updates')
     remove_previous_versions(self.update_folder,
                              self.current_archive_filename)
Пример #5
0
 def cleanup(self):
     """Cleans up old update archives for this app or asset"""
     log.debug('Beginning removal of old updates')
     remove_previous_versions(self.update_folder,
                              self._current_archive_name)