diff options
author | Richard Hughes <richard@hughsie.com> | 2014-07-11 08:58:54 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-07-11 11:25:39 +0100 |
commit | 965801600e6ac8fb0afa3d09c33013ad282e0d05 (patch) | |
tree | d7d642413eb633768ec6307b8da6fafcbd65f110 | |
parent | 16e3ed99796804e094da433af1d417d06a2f3ed6 (diff) | |
download | appstream-glib-965801600e6ac8fb0afa3d09c33013ad282e0d05.tar.gz |
Allow old applications in the metadata if they have AppData
-rw-r--r-- | libappstream-builder/plugins/asb-plugin-hardcoded.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libappstream-builder/plugins/asb-plugin-hardcoded.c b/libappstream-builder/plugins/asb-plugin-hardcoded.c index eb497bf..5834ece 100644 --- a/libappstream-builder/plugins/asb-plugin-hardcoded.c +++ b/libappstream-builder/plugins/asb-plugin-hardcoded.c @@ -283,14 +283,8 @@ asb_plugin_process_app (AsbPlugin *plugin, as_release_get_timestamp (release); days = secs / (60 * 60 * 24); - /* this is just too old for us to care about */ - if (days > 365 * 10) { - asb_app_add_veto (app, "Dead upstream for %i years", - secs / (60 * 60 * 24 * 365)); - } - /* we need AppData if the app needs saving */ - else if (days > 365 * 5) { + if (days > 365 * 5) { asb_app_add_requires_appdata (app, "Dead upstream for > %i years", 5); } |