summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-01-08 13:29:41 -0600
committerDan McGee <dan@archlinux.org>2008-01-08 13:29:41 -0600
commita24c323abadd7802a38d162a0015bbc4dc82f75d (patch)
treee3646bbc12fbe05c3a1fea163feb159e0eb0d490 /lib
parent9a6361d31f17e86028ec801525978ce7c802c860 (diff)
downloadpacman-a24c323abadd7802a38d162a0015bbc4dc82f75d.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/package.c5
-rw-r--r--lib/libalpm/package.h1
2 files changed, 3 insertions, 3 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.
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index 7ef41f9b..f818ae21 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -61,7 +61,6 @@ struct __pmpkg_t {
unsigned long isize;
unsigned short scriptlet;
unsigned short force;
- time_t date;
pmpkgreason_t reason;
alpm_list_t *licenses;
alpm_list_t *replaces;