Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #1053: sugar-dont-update-same-version-bundle.patch

File sugar-dont-update-same-version-bundle.patch, 0.7 KB (added by sascha_silbe, 4 years ago)

install bundle only if versions differ

  • src/jarabe/model/bundleregistry.py

    diff a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
    a b  
    377378        act = self.get_bundle(bundle.get_bundle_id()) 
    378379        if act is None: 
    379380            logging.warning('Activity not installed') 
     381        elif act.get_activity_version() == bundle.get_activity_version(): 
     382            logging.debug('No upgrade needed, same version already installed.') 
     383            return 
    380384        elif act.get_path().startswith(env.get_user_activities_path()): 
    381385            try: 
    382386                self.uninstall(bundle, force=True)