summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c5
1 files changed, 3 insertions, 2 deletions
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.