diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2021-01-05 01:36:08 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-01-08 15:14:56 +0100 |
commit | 027d76b9f504c61878f0e78bf04847e60f90013c (patch) | |
tree | 6ec4cb68c6951f0e222880711fd4ea760f3e4691 /lib/libalpm/be_local.c | |
parent | 4472ce55d7e45fdd8cb6c0213a76128fa826a31e (diff) | |
download | pacman-027d76b9f504c61878f0e78bf04847e60f90013c.tar.gz pacman-027d76b9f504c61878f0e78bf04847e60f90013c.tar.xz |
libalpm: introduce get_sync_pkg_ops() helper
Currently default_pkg_ops is accessed in two different ways.
There is get_file_pkg_ops (in be_package.c) creating a local once-off
'tweaked' copy. As well as load_pkg_for_entry (be_sync.c) which modifies
in-place and uses default_pkg_ops.
This seems rather misleading and fragile approach. Introduce a helper
for the second use-case so that default_pkg_ops is handled consistently
and essentially remains unchanged throughout.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_local.c')
0 files changed, 0 insertions, 0 deletions