From a24c323abadd7802a38d162a0015bbc4dc82f75d Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 8 Jan 2008 13:29:41 -0600 Subject: Remove unused date element from pmpkg_t struct We had an unused date element in the pmpkg_t struct (not builddate or installdate). Kill it off and fix the one function that was using it. Signed-off-by: Dan McGee --- lib/libalpm/package.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/package.c') diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 657de7da..1293ccff 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -1157,10 +1157,11 @@ int _alpm_pkg_istoonew(pmpkg_t *pkg) ALPM_LOG_FUNC; - if (!handle->upgradedelay) + if (!handle->upgradedelay) { return 0; + } time(&t); - return((pkg->date + handle->upgradedelay) > t); + return((pkg->builddate + handle->upgradedelay) > t); } /** Test if a package should be ignored. -- cgit v1.2.3-24-g4f1b