summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Leeds <matthew.leeds@endlessm.com>2018-01-29 00:29:39 -0800
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-09 11:24:41 +0000
commit1b8c6e5ce961cbf972d06537f8765965914ed242 (patch)
tree50a336dfa5aa19eec07b0eab7650f43d68b847e0
parent5ec98e788fa9b9faddb8326282d61492098796d0 (diff)
downloadflatpak-1b8c6e5ce961cbf972d06537f8765965914ed242.tar.gz
app: Add more debug output
Closes: #1352 Approved by: alexlarsson
-rw-r--r--app/flatpak-builtins-utils.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/flatpak-builtins-utils.c b/app/flatpak-builtins-utils.c
index e28c960f..5448934b 100644
--- a/app/flatpak-builtins-utils.c
+++ b/app/flatpak-builtins-utils.c
@@ -450,12 +450,22 @@ update_appstream (GPtrArray *dirs,
g_autoptr(GError) local_error = NULL;
g_autoptr(OstreeAsyncProgress) progress = NULL;
g_autoptr(GFile) ts_file = NULL;
+ g_autofree char *ts_file_path = NULL;
g_autofree char *subdir = NULL;
+ guint64 ts_file_age;
subdir = g_strdup_printf ("appstream/%s/%s/.timestamp", remotes[i], arch);
ts_file = g_file_resolve_relative_path (flatpak_dir_get_path (dir), subdir);
- if (get_file_age (ts_file) < ttl)
- continue;
+ ts_file_path = g_file_get_path (ts_file);
+ ts_file_age = get_file_age (ts_file);
+ if (ts_file_age < ttl)
+ {
+ g_debug ("%s age %" G_GUINT64_FORMAT " is less than ttl %" G_GUINT64_FORMAT, ts_file_path, ts_file_age, ttl);
+ continue;
+ }
+ else
+ g_debug ("%s age %" G_GUINT64_FORMAT " is greater than ttl %" G_GUINT64_FORMAT, ts_file_path, ts_file_age, ttl);
+
if (flatpak_dir_get_remote_disabled (dir, remotes[i]) ||
flatpak_dir_get_remote_noenumerate (dir, remotes[i]) ||