index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-04 08:26:52 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-04 08:26:52 +0000 |
commit | 63000584b6442412dbcdf1dd867e09fbde404afe (patch) | |
tree | 5ac1028f9aaf0ff5a75d9d2144a9ecc337dc2211 /lib/libalpm/package.c | |
parent | b2da4b42344444dc22f1e5b01fb4cd09033adc1d (diff) |
-rw-r--r-- | lib/libalpm/package.c | 11 |
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 4c78fdaf..e93da71e 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -834,4 +834,15 @@ unsigned short SYMEXPORT alpm_pkg_has_scriptlet(pmpkg_t *pkg) return pkg->scriptlet; } +int _alpm_pkg_istoonew(pmpkg_t *pkg) +{ + time_t t; + + ALPM_LOG_FUNC; + + if (!handle->upgradedelay) + return 0; + time(&t); + return((pkg->date + handle->upgradedelay) > t); +} /* vim: set ts=2 sw=2 noet: */ |