X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ext%2Frepo_products.c;h=326f8fd56326af8d55504a4efb40dc3a70ca3ade;hb=f458102388250c8a1cbbfa8f18d27baa204c696c;hp=cb69c493cf81e6d3b40dbe12ba3381bc790756ed;hpb=8fcc0d8e03716077d1f2c2ca79fc622880a32196;p=platform%2Fupstream%2Flibsolv.git diff --git a/ext/repo_products.c b/ext/repo_products.c index cb69c49..326f8fd 100644 --- a/ext/repo_products.c +++ b/ext/repo_products.c @@ -376,12 +376,8 @@ endElement(void *userData, const char *name) repodata_set_str(pd->data, pd->handle, SOLVABLE_CPEID, pd->content); break; case STATE_ENDOFLIFE: - if (*pd->content) - { - time_t t = datestr2timestamp(pd->content); - if (t) - repodata_set_num(pd->data, pd->handle, PRODUCT_ENDOFLIFE, (unsigned long long)t); - } + /* FATE#320699: Support tri-state product-endoflife (tag absent, present but nodate(0), present + date) */ + repodata_set_num(pd->data, pd->handle, PRODUCT_ENDOFLIFE, (*pd->content ? datestr2timestamp(pd->content) : 0)); break; default: break;