Skip to content

Commit

Permalink
add "eol" flag to product data
Browse files Browse the repository at this point in the history
to report "End Of Life" product date (FATE#316172)

- 3.1.5
  • Loading branch information
lslezak committed Mar 7, 2014
1 parent ab13ddf commit b16283a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/yast2-pkg-bindings-devel-doc.spec
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2-pkg-bindings-devel-doc
Version: 3.1.4
Version: 3.1.5
Release: 0
License: GPL-2.0
Group: Documentation/HTML
Expand Down
7 changes: 7 additions & 0 deletions package/yast2-pkg-bindings.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 7 09:16:05 UTC 2014 - lslezak@suse.cz

- add "eol" flag to product data to report "End Of Life" product
date (FATE#316172)
- 3.1.5

-------------------------------------------------------------------
Thu Feb 13 16:35:53 UTC 2014 - lslezak@suse.cz

Expand Down
4 changes: 2 additions & 2 deletions package/yast2-pkg-bindings.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-pkg-bindings
Version: 3.1.4
Version: 3.1.5
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand All @@ -30,7 +30,7 @@ BuildRequires: docbook-xsl-stylesheets
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: libxslt
BuildRequires: libzypp-devel >= 14.2.1
BuildRequires: libzypp-devel >= 14.12.0
BuildRequires: yast2-core-devel
BuildRequires: yast2-devtools >= 3.1.10

Expand Down
8 changes: 8 additions & 0 deletions src/Resolvable_Properties.cc
Expand Up @@ -74,6 +74,8 @@
+ "category"
+ "display_name"
+ "short_name"
+ "eol" (optional) -> integer: Unix time when the product reaches EndOfLife,
(i.e. is out of support)
+ "update_urls"
+ "flags"
+ "extra_urls"
Expand Down Expand Up @@ -318,6 +320,12 @@ YCPMap PkgFunctions::Resolvable2YCPMap(const zypp::PoolItem &item, const std::st
info->add(YCPString("short_name"), YCPString(product_summary));
}

zypp::Date eol = product->endOfLife();
if (eol > 0)
{
info->add(YCPString("eol"), YCPInteger(eol));
}

YCPList updateUrls(asYCPList(product->updateUrls()));
info->add(YCPString("update_urls"), updateUrls);

Expand Down

0 comments on commit b16283a

Please sign in to comment.