1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-16 06:15:08 -05:00

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:
Dan McGee 2008-01-08 13:29:41 -06:00
parent 9a6361d31f
commit a24c323aba
2 changed files with 3 additions and 3 deletions

View File

@ -1157,10 +1157,11 @@ int _alpm_pkg_istoonew(pmpkg_t *pkg)
ALPM_LOG_FUNC; ALPM_LOG_FUNC;
if (!handle->upgradedelay) if (!handle->upgradedelay) {
return 0; return 0;
}
time(&t); time(&t);
return((pkg->date + handle->upgradedelay) > t); return((pkg->builddate + handle->upgradedelay) > t);
} }
/** Test if a package should be ignored. /** Test if a package should be ignored.

View File

@ -61,7 +61,6 @@ struct __pmpkg_t {
unsigned long isize; unsigned long isize;
unsigned short scriptlet; unsigned short scriptlet;
unsigned short force; unsigned short force;
time_t date;
pmpkgreason_t reason; pmpkgreason_t reason;
alpm_list_t *licenses; alpm_list_t *licenses;
alpm_list_t *replaces; alpm_list_t *replaces;