diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-03 22:33:47 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2012-09-04 02:37:15 +0800 |
commit | 1afb0171665b4234ceb57f073a0834b6dc3e005d (patch) | |
tree | 75f16b2d1f9320a4c1aae49c6d5dff026d3a05ff /lib/ephy-profile-utils.c | |
parent | 55ffe5b0442e58a42a5812c749359a3f22a489d1 (diff) | |
download | gsoc2013-epiphany-1afb0171665b4234ceb57f073a0834b6dc3e005d.tar gsoc2013-epiphany-1afb0171665b4234ceb57f073a0834b6dc3e005d.tar.gz gsoc2013-epiphany-1afb0171665b4234ceb57f073a0834b6dc3e005d.tar.bz2 gsoc2013-epiphany-1afb0171665b4234ceb57f073a0834b6dc3e005d.tar.lz gsoc2013-epiphany-1afb0171665b4234ceb57f073a0834b6dc3e005d.tar.xz gsoc2013-epiphany-1afb0171665b4234ceb57f073a0834b6dc3e005d.tar.zst gsoc2013-epiphany-1afb0171665b4234ceb57f073a0834b6dc3e005d.zip |
ephy-profile-migrator: allow running migration in non-default profile directories
This is necessary since we add new columns to the history database in
step 8 of migration. However, non-default profile directories don't
have a .migrated file right now but, since up to step 7 it was
possible to use these profiles without migration, it is safe to assume
that a non-default profile without a .migrated file can be migrated
starting from step 8.
https://bugzilla.gnome.org/show_bug.cgi?id=681679
Diffstat (limited to 'lib/ephy-profile-utils.c')
-rw-r--r-- | lib/ephy-profile-utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ephy-profile-utils.c b/lib/ephy-profile-utils.c index 829d68925..58abfff61 100644 --- a/lib/ephy-profile-utils.c +++ b/lib/ephy-profile-utils.c @@ -51,6 +51,14 @@ ephy_profile_utils_get_migration_version () if (result != 1) latest = 0; + } else if (ephy_dot_dir_is_default () == FALSE) { + /* Since version 8, we need to migrate also profile directories + other than the default one. Profiles in such directories work + perfectly fine without going through the first 7 migration + steps, so it is safe to assume that any non-default profile + directory without a migration file can be migrated starting + from the step 8. */ + latest = 7; } g_free (migrated_file); |