1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/lib/libalpm
Dan McGee 13235ba65a 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>
2011-06-30 11:51:49 -05:00
..
po po/: split into scripts/po/ and src/pacman/po/ 2011-06-23 22:50:01 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Make local_db_read() private to the local backend 2011-06-30 11:51:49 -05:00
add.h Rename pmhandle_t to alpm_handle_t 2011-06-28 14:04:00 +10:00
alpm_list.c Merge branch 'maint' 2011-06-01 12:13:49 -05:00
alpm_list.h Add new alpm_list_remove_item() function 2011-02-04 09:55:46 +10:00
alpm.c Merge remote-tracking branch 'allan/breakshit' 2011-06-30 10:37:08 -05:00
alpm.h Rename public functions with grp in their name 2011-06-29 15:46:49 +10:00
backup.c Fix a few warnings pointed out via clang scan-build 2011-06-30 11:51:36 -05:00
backup.h Rename pmbackup_t to alpm_backup_t 2011-06-28 23:28:23 +10:00
base64.c Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
base64.h Add base64 algorithms from PolarSSL to libalpm 2011-03-23 02:22:00 -05:00
be_local.c Make local_db_read() private to the local backend 2011-06-30 11:51:49 -05:00
be_package.c Rename pmbackup_t to alpm_backup_t 2011-06-28 23:28:23 +10:00
be_sync.c Rename pmpkg_t to alpm_pkg_t 2011-06-28 23:26:39 +10:00
conflict.c Fix a few warnings pointed out via clang scan-build 2011-06-30 11:51:36 -05:00
conflict.h Rename pmfileconflict_t to alpm_fileconflict_t 2011-06-28 23:28:23 +10:00
db.c Rename internal functions with grp in their name 2011-06-29 15:52:33 +10:00
db.h Make local_db_read() private to the local backend 2011-06-30 11:51:49 -05:00
delta.c Rename pmgraph_t to alpm_graph_t 2011-06-28 23:28:24 +10:00
delta.h Rename pmdelta_t to alpm_delta_t 2011-06-28 23:28:23 +10:00
deps.c Rename pmgraph_t to alpm_graph_t 2011-06-28 23:28:24 +10:00
deps.h Rename pmdepmissing_t to alpm_depmissing_t 2011-06-28 23:28:23 +10:00
diskspace.c Rename pmtrans_t to alpm_trans_t 2011-06-28 23:27:16 +10:00
diskspace.h Rename pmhandle_t to alpm_handle_t 2011-06-28 14:04:00 +10:00
dload.c Fix a few warnings pointed out via clang scan-build 2011-06-30 11:51:36 -05:00
dload.h Rename pmhandle_t to alpm_handle_t 2011-06-28 14:04:00 +10:00
error.c Rename pmerrno_t to alpm_errno_t 2011-06-28 23:28:24 +10:00
graph.c Rename pmgraph_t to alpm_graph_t 2011-06-28 23:28:24 +10:00
graph.h Rename pmgraph_t to alpm_graph_t 2011-06-28 23:28:24 +10:00
group.c Rename internal functions with grp in their name 2011-06-29 15:52:33 +10:00
group.h Rename internal functions with grp in their name 2011-06-29 15:52:33 +10:00
handle.c Use ignoregroup rather than ignoregrp in the handle 2011-06-29 16:00:25 +10:00
handle.h Use ignoregroup rather than ignoregrp in the handle 2011-06-29 16:00:25 +10:00
log.c Rename pmloglevel_t to alpm_loglevel_t 2011-06-28 23:28:24 +10:00
log.h Rename pmloglevel_t to alpm_loglevel_t 2011-06-28 23:28:24 +10:00
Makefile.am Allow conditional compilation with GPGME 2011-04-27 16:58:58 -05:00
md5.c libalpm md5: use larger and dynamic buffer 2010-09-02 10:33:21 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Make local_db_read() private to the local backend 2011-06-30 11:51:49 -05:00
package.h Make local_db_read() private to the local backend 2011-06-30 11:51:49 -05:00
pkghash.c Rename pmpkghash_t to alpm_pkghash_t 2011-06-28 23:28:24 +10:00
pkghash.h Rename pmpkghash_t to alpm_pkghash_t 2011-06-28 23:28:24 +10:00
remove.c Rename pmbackup_t to alpm_backup_t 2011-06-28 23:28:23 +10:00
remove.h Rename pmpkg_t to alpm_pkg_t 2011-06-28 23:26:39 +10:00
signing.c Rename pmpkg_t to alpm_pkg_t 2011-06-28 23:26:39 +10:00
signing.h Rename pmdb_t to alpm_db_t 2011-06-28 14:16:12 +10:00
sync.c Rename public functions with grp in their name 2011-06-29 15:46:49 +10:00
sync.h Rename pmhandle_t to alpm_handle_t 2011-06-28 14:04:00 +10:00
trans.c Rename pmtransflag_t to alpm_transflag_t 2011-06-28 23:28:24 +10:00
trans.h Rename pmtransstate_t to alpm_transstate_t 2011-06-28 23:28:24 +10:00
util.c Merge remote-tracking branch 'allan/breakshit' 2011-06-30 10:37:08 -05:00
util.h Rename pmpkg_t to alpm_pkg_t 2011-06-28 23:26:39 +10:00
version.c Style change: return(x) --> return x 2011-03-20 19:49:45 -05:00