]> git.lyx.org Git - lyx.git/commitdiff
#11142 correct list of previous versions to check for user directory contents
authorStephan Witt <switt@lyx.org>
Sun, 13 May 2018 18:15:35 +0000 (20:15 +0200)
committerStephan Witt <switt@lyx.org>
Wed, 16 May 2018 05:18:38 +0000 (07:18 +0200)
LyX on Mac uses a user directory with version suffix. On change of the version suffix
the existence of the directories with previous versions is checked and the latest one
is used for a copy on first configure run.

For 2.3 the candidate list starts with 2.2 now as it should.

(cherry picked from commit 17c3617c49487977e5c46de20cb450952c68b03d)

lib/configure.py
status.23x

index a2b651e1c901a7fbe3ab58ff8cc2de47b5051255..627591298ae04634dccdafcea038e48e39af7f28 100644 (file)
@@ -163,14 +163,14 @@ def checkUpgrade():
         logger.info('Checking for upgrade from previous version.')
         parent = os.path.dirname(cwd)
         appname = basename[:(-len(version_suffix))]
-        for version in ['-2.1', '-2.0', '-1.6' ]:
+        for version in ['-2.2', '-2.1', '-2.0', '-1.6' ]:
             logger.debug('Checking for upgrade from previous version ' + version)
             previous = os.path.join(parent, appname + version)
             logger.debug('previous = ' + previous)
             if os.path.isdir( previous ):
                 logger.info('Found directory "%s".', previous)
                 copy_tree( previous, cwd, True )
-                logger.info('Content copied to directory "%s".', cwd)
+                logger.info('Content copied from directory "%s".', previous)
                 return
 
 
index 1b4acac92afe5f743689c78203924def6e03d73e..6bb13e67301433b1827912b33c3941178471e90b 100644 (file)
@@ -250,6 +250,8 @@ What's new
 
 - Fix horizontal alignment of some Box types on screen.
 
+- Correct list of previous versions to check for user directory contents
+  (bug 11142 on Mac).
 
 * INTERNALS