File tree 3 files changed +14
-0
lines changed 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,11 @@ CommandLineParser::CommandLineParser()
285
285
cleanupUpdateOnly.setFlags (QCommandLineOption::HiddenFromHelp);
286
286
addOption (cleanupUpdateOnly);
287
287
288
+ // Migratiton option
289
+ addOption (QCommandLineOption (QStringList ()
290
+ << CommandLineOptions::scMigration,
291
+ QLatin1String (" Use migration option." )));
292
+
288
293
// Deprecated options
289
294
QCommandLineOption deprecatedUpdater (CommandLineOptions::scDeprecatedUpdater);
290
295
deprecatedUpdater.setFlags (QCommandLineOption::HiddenFromHelp);
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ static const QLatin1String scLogo("Logo");
178
178
static const QLatin1String scBackground (" Background" );
179
179
static const QLatin1String scPageListPixmap (" PageListPixmap" );
180
180
static const QLatin1String scAliasDefinitionsFile (" AliasDefinitionsFile" );
181
+ static const QLatin1String scMigrationFlag (" Migration" );
181
182
const char scRelocatable[] = " @RELOCATABLE_PATH@" ;
182
183
183
184
static const QStringList scMetaElements = {
@@ -312,6 +313,9 @@ static const QLatin1String scMaxConcurrentOperationsLong("max-concurrent-operati
312
313
static const QLatin1String scCleanupUpdate (" cleanup-update" );
313
314
static const QLatin1String scCleanupUpdateOnly (" cleanup-update-only" );
314
315
316
+ // Migratiton option
317
+ static const QLatin1String scMigration (" migration" );
318
+
315
319
// Deprecated options, provided only for backward compatibility
316
320
static const QLatin1String scDeprecatedUpdater (" updater" );
317
321
static const QLatin1String scDeprecatedCheckUpdates (" checkupdates" );
Original file line number Diff line number Diff line change @@ -339,6 +339,11 @@ class SDKApp : public T
339
339
340
340
}
341
341
342
+ // migration mode
343
+ if (m_parser.isSet (CommandLineOptions::scMigration)) {
344
+ m_core->setValue (QInstaller::scMigrationFlag, QLatin1String (" true" ));
345
+ }
346
+
342
347
if (m_parser.isSet (CommandLineOptions::scLocalCachePathLong)) {
343
348
const QString cachePath = m_parser.value (CommandLineOptions::scLocalCachePathLong);
344
349
if (cachePath.isEmpty ()) {
You can’t perform that action at this time.
0 commit comments