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>
This commit is contained in:
parent
9a6361d31f
commit
a24c323aba
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue