1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/src/util
Dan McGee db3b86e7f3 Do database signature checking at load time
This is the ideal place to do it as all clients should be checking the
return value and ensuring there are no errors. This is similar to
pkg_load().

We also add an additional step of validation after we download a new
database; a subsequent '-y' operation can potentially invalidate the
original check at registration time.

Note that this implementation is still a bit naive; if a signature is
invalid it is currently impossible to refresh and re-download the file
without manually deleting it first. Similarly, if one downloads a
database and the check fails, the database object is still there and can
be used. These shortcomings will be addressed in a future commit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-24 02:34:50 -05:00
..
.gitignore src/util: update .gitignore 2010-12-12 20:23:25 -06:00
cleanupdelta.c Do database signature checking at load time 2011-06-24 02:34:50 -05:00
Makefile.am pactree: rewrite in C 2010-12-12 20:21:15 -06:00
pactree.c Make pmdepend_t and pmdepmissing_t public 2011-06-16 11:57:33 -05:00
testdb.c Do database signature checking at load time 2011-06-24 02:34:50 -05:00
testpkg.c Move pm_errno onto the handle 2011-06-13 19:38:38 -05:00
vercmp.c Style change: return(x) --> return x 2011-03-20 19:49:45 -05:00