[epiphany] profile-migrator: Allow specifying --do-step-n <n> when n is the same as the last migration version



commit 392ca8e1d004e2377a8510fa4443b486670e5c16
Author: vanadiae <vanadiae35 gmail com>
Date:   Sun Dec 26 17:48:35 2021 +0100

    profile-migrator: Allow specifying --do-step-n <n> when n is the same as the last migration version
    
    Currently it's impossible to manually run the profile migrator to debug
    it with gdb using the --do-step-n <n> argument where n is the latest
    migration version, as the migrator refuses to run the migration when
    the latest migration version matches do_step_n. I don't see how that
    makes sense, so this commit drops this restriction.
    
    This shouldn't affect the normal course of migration as done by the
    main epiphany binary, as it already checks if the asked migration
    version matches the one in the .migrated file, in the
    ephy_profile_utils_do_migration () function.
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1052>

 src/profile-migrator/ephy-profile-migrator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/profile-migrator/ephy-profile-migrator.c b/src/profile-migrator/ephy-profile-migrator.c
index 12512c0a9..76c4a7b39 100644
--- a/src/profile-migrator/ephy-profile-migrator.c
+++ b/src/profile-migrator/ephy-profile-migrator.c
@@ -1487,7 +1487,7 @@ ephy_migrator (void)
     return TRUE;
 
   if (do_step_n != -1) {
-    if (do_step_n >= EPHY_PROFILE_MIGRATION_VERSION)
+    if (do_step_n > EPHY_PROFILE_MIGRATION_VERSION)
       return FALSE;
 
     if (do_step_n < 1) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]