From c8e9cf235f491ba5074ea99bfa787667a124e0c1 Mon Sep 17 00:00:00 2001 From: Tony George Date: Thu, 26 Jan 2017 13:56:38 +0530 Subject: [PATCH] v17.2 --- debian/changelog | 11 +++++++++++ src/Console/AppConsole.vala | 2 +- src/Core/Main.vala | 11 ++++++++--- src/Gtk/AppGtk.vala | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index bd003ac4..13c57c7c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,15 @@ +timeshift (17.2) trusty; urgency=medium + + * Use StackWidget for Settings window + + * Fixed: Hourly task was not created correctly + + * Settings: Updated messages in Schedule tab to avoid confusion + + -- Tony George Thu, 26 Jan 2016 10:00:00 +0530 + + timeshift (17.1) trusty; urgency=medium * Added support for BTRFS snapshots. There's a new tab in Settings diff --git a/src/Console/AppConsole.vala b/src/Console/AppConsole.vala index 61713468..34c7a969 100644 --- a/src/Console/AppConsole.vala +++ b/src/Console/AppConsole.vala @@ -38,7 +38,7 @@ using TeeJee.Misc; public Main App; public const string AppName = "Timeshift"; public const string AppShortName = "timeshift"; -public const string AppVersion = "17.1"; +public const string AppVersion = "17.2"; public const string AppAuthor = "Tony George"; public const string AppAuthorEmail = "teejeetech@gmail.com"; diff --git a/src/Core/Main.vala b/src/Core/Main.vala index d7aed01d..ef994a44 100644 --- a/src/Core/Main.vala +++ b/src/Core/Main.vala @@ -3805,6 +3805,8 @@ public class Main : GLib.Object{ if (live_system()) { return; } + // remove entries created by previous versions ----------- + string entry = "timeshift --backup"; int count = 0; @@ -3825,9 +3827,12 @@ public class Main : GLib.Object{ } } + CronTab.remove_script_file("timeshift-hourly", "hourly"); + + // start update --------------------------- + if (scheduled){ - //others - CronTab.remove_script_file("timeshift-hourly", "hourly"); + //hourly CronTab.add_script_file("timeshift-hourly", "d", "0 * * * * root timeshift --check", stop_cron_emails); //boot @@ -3839,7 +3844,7 @@ public class Main : GLib.Object{ } } else{ - CronTab.remove_script_file("timeshift-hourly", "hourly"); + CronTab.remove_script_file("timeshift-hourly", "d"); CronTab.remove_script_file("timeshift-boot", "d"); } } diff --git a/src/Gtk/AppGtk.vala b/src/Gtk/AppGtk.vala index 1763acfe..657346be 100644 --- a/src/Gtk/AppGtk.vala +++ b/src/Gtk/AppGtk.vala @@ -38,7 +38,7 @@ using TeeJee.Misc; public Main App; public const string AppName = "Timeshift"; public const string AppShortName = "timeshift"; -public const string AppVersion = "17.1"; +public const string AppVersion = "17.2"; public const string AppAuthor = "Tony George"; public const string AppAuthorEmail = "teejeetech@gmail.com";