Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/signing.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-28 22:02:58 -0500
committerDan McGee <dan@archlinux.org>2011-06-30 11:51:49 -0500
commit13235ba65ab55d852dbdc0acabdc047442e74e28 (patch)
tree85adbf195f380908af76f9527e92bea451dcf0a9 /lib/libalpm/signing.c
parentb94e8ecd1fec4426baab8c90e7fc0d5583acdbef (diff)
Make local_db_read() private to the local backend
There is little need to expose the guts of this function even within the library. Make it static in be_local.c, and clean up a few other things since we know exactly where it is being called from: * Remove unnecessary origin checks in _cache_get_*() methods- if you are calling a cache method your package type will be correct. * Remove sanity checks within local_db_read() itself- packages will always have a name and version if they get this far, and the package object will never be NULL either. The one case calling this from outside the backend was in add.c, where we forced a full load of a package before we duplicated it. Move this concern elsewhere and have pkg_dup() always force a full package load via a new force_load() function on the operations callback struct. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/signing.c')
0 files changed, 0 insertions, 0 deletions