+1

Package Upgrade exception

Artem Shoobovych 12 aastat tagasi 0

I encountered a problem when Sublime does not start if package upgrade failed for some reason. Fixed with this code at PackageSetup.py:


def upgrade(appdir, userdir, pristinedir, datadir, backupdir):

    packages = (glob.glob(appdir + "/*.sublime-package") +

    glob.glob(userdir + "/*.sublime-package"))

    for pkg in packages:

        try:

            upgradePackage(pkg, pristinedir, datadir, backupdir)

        except:

            pass