1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-10 03:25:01 -05:00
pacman/lib/libalpm
Nagy Gabor cb7337eb64 db->pkgcache_loaded and db->grpcache_loaded
Clearly the old code was more elegant (NULL cache indicated "not loaded"),
but it had some drawbacks, so from now on we indicate the state of caches
explicitly.

Old drawbacks:
When we had an empty database (unstable), libalpm called db_populate after
every pkgcache access, because NULL pkgcache indicated "not loaded" state.
This is not a common case, but the same situation can happen with grpcache,
which is more problematic: If the user had a custom repo with no groups,
grpcache was always NULL. (grpcache is also loaded per database.) Thus
every get_grpcache call induced a load_grpcache operation, so the benefits
of grpcache was completely lost.

Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-01-12 23:59:37 -06:00
..
po Update Czech translation 2009-01-05 19:06:39 -06:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Rename alpm_get_md5sum to alpm_compute_md5sum and alpm_dep_get_string to alpm_dep_compute_string 2009-01-12 23:59:30 -06:00
add.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm_list.c alpm_list_remove treat NULL needle as "nothing" 2008-07-17 20:20:13 -05:00
alpm_list.h Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
alpm.c Remove unnecessary header file, move one macro to util.c 2008-04-06 20:20:20 -05:00
alpm.h Rename alpm_get_md5sum to alpm_compute_md5sum and alpm_dep_get_string to alpm_dep_compute_string 2009-01-12 23:59:30 -06:00
backup.c memleak fix: ensure backup fname isn't lost if unused 2008-03-23 16:55:52 -05:00
backup.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
be_files.c Rename alpm_get_md5sum to alpm_compute_md5sum and alpm_dep_get_string to alpm_dep_compute_string 2009-01-12 23:59:30 -06:00
be_package.c Don't display filename on -Qip operation. 2008-06-04 16:25:31 -05:00
cache.c db->pkgcache_loaded and db->grpcache_loaded 2009-01-12 23:59:37 -06:00
cache.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
conflict.c Merge branch 'maint' 2008-10-12 21:36:45 -05:00
conflict.h New _alpm_conflict_dup function 2008-01-27 11:54:25 -06:00
db.c Merge branch 'maint' 2008-10-12 21:36:45 -05:00
db.h db->pkgcache_loaded and db->grpcache_loaded 2009-01-12 23:59:37 -06:00
delta.c Rename alpm_get_md5sum to alpm_compute_md5sum and alpm_dep_get_string to alpm_dep_compute_string 2009-01-12 23:59:30 -06:00
delta.h Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
deps.c Rename alpm_get_md5sum to alpm_compute_md5sum and alpm_dep_get_string to alpm_dep_compute_string 2009-01-12 23:59:30 -06:00
deps.h sync_addtarget rework 2008-07-13 09:16:55 -05:00
dload.c Remove libdownload support and fix libfetch one. 2009-01-12 22:40:15 -06:00
dload.h Remove unnecessary import in dload.h 2008-04-10 20:53:28 -05:00
error.c HoldPkg rework 2009-01-12 22:44:00 -06:00
graph.h Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
group.c Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
group.h Cleanup usages of alpm_list_find and alpm_list_remove. 2008-05-13 15:49:02 -05:00
handle.c HoldPkg rework 2009-01-12 22:44:00 -06:00
handle.h HoldPkg rework 2009-01-12 22:44:00 -06:00
log.c Remove unnecessary header file, move one macro to util.c 2008-04-06 20:20:20 -05:00
log.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
Makefile.am Refactor pkg_load/parse_descfile into a new backend file 2008-05-11 20:07:55 -05:00
md5.c libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
md5.h libalpm/md5: Fix license header 2008-06-03 21:31:31 -05:00
package.c Merge branch 'maint' 2008-10-12 21:36:45 -05:00
package.h Use correct C type for file sizes 2008-06-04 15:38:47 -05:00
remove.c HoldPkg rework 2009-01-12 22:44:00 -06:00
remove.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
sync.c -Qu rework 2008-10-31 19:46:13 -05:00
sync.h -Qu rework 2008-10-31 19:46:13 -05:00
trans.c -Qu rework 2008-10-31 19:46:13 -05:00
trans.h -Qu rework 2008-10-31 19:46:13 -05:00
util.c Rename alpm_get_md5sum to alpm_compute_md5sum and alpm_dep_get_string to alpm_dep_compute_string 2009-01-12 23:59:30 -06:00
util.h Remove unused strverscmp substitute 2008-07-24 22:16:28 -05:00