summaryrefslogtreecommitdiff
path: root/libappstream-builder/plugins
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-01-22 14:35:42 +0000
committerRichard Hughes <richard@hughsie.com>2016-01-22 15:03:05 +0000
commit85e06490b5fd94c8fae3cc5d7a0ff0ee9f73f316 (patch)
tree84d2d9cf57a148c756c2e9df1ae03186ba95e39b /libappstream-builder/plugins
parent9f2ed20432118a45edecc270cfa5de79f7f632be (diff)
downloadappstream-glib-85e06490b5fd94c8fae3cc5d7a0ff0ee9f73f316.tar.gz
trivial: Remove a warning for no recent upstream release
If the downstream has created an AppData file then the warning is useless.
Diffstat (limited to 'libappstream-builder/plugins')
-rw-r--r--libappstream-builder/plugins/asb-plugin-hardcoded.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-hardcoded.c b/libappstream-builder/plugins/asb-plugin-hardcoded.c
index 31750ad..d0c7181 100644
--- a/libappstream-builder/plugins/asb-plugin-hardcoded.c
+++ b/libappstream-builder/plugins/asb-plugin-hardcoded.c
@@ -98,13 +98,9 @@ asb_plugin_process_app (AsbPlugin *plugin,
GError **error)
{
const gchar *tmp;
- AsRelease *release;
GPtrArray *deps;
gchar **filelist;
- GPtrArray *releases;
guint i;
- gint64 secs;
- guint days;
/* add extra project groups */
if (g_strcmp0 (as_app_get_id (AS_APP (app)), "xfdashboard.desktop") == 0) {
@@ -184,21 +180,6 @@ asb_plugin_process_app (AsbPlugin *plugin,
}
}
- /* has there been no upstream version recently */
- if (releases->len > 0 &&
- as_app_get_id_kind (AS_APP (app)) == AS_ID_KIND_DESKTOP &&
- !asb_context_get_flag (plugin->ctx, ASB_CONTEXT_FLAG_IGNORE_DEAD_UPSTREAM)) {
- release = g_ptr_array_index (releases, 0);
- secs = (g_get_real_time () / G_USEC_PER_SEC) -
- as_release_get_timestamp (release);
- days = secs / (60 * 60 * 24);
- if (secs > 0 && days > 365 * 5) {
- asb_package_log (asb_app_get_package (app),
- ASB_PACKAGE_LOG_LEVEL_WARNING,
- "Dead upstream for > %i years", 5);
- }
- }
-
/* a ConsoleOnly category means we require AppData */
if (as_app_has_category (AS_APP(app), "ConsoleOnly")) {
asb_package_log (pkg,