mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: Fix compilation with older rpm that lacks RPMVSF_MASK_NOSIGNATURES
On RHEL 7 (rpm-devel-4.11.3-45.el7.x86_64):
rpm-c.c: In function ‘guestfs_int_daemon_rpm_start_iterator’:
rpm-c.c:97:44: error: ‘RPMVSF_MASK_NOSIGNATURES’ undeclared (first use in this function)
rpmtsSetVSFlags (ts, rpmtsVSFlags (ts) | RPMVSF_MASK_NOSIGNATURES);
^
rpm-c.c:97:44: note: each undeclared identifier is reported only once for each function it appears in
Fixes: commit aa6f8038f8
This commit is contained in:
@@ -93,8 +93,10 @@ guestfs_int_daemon_rpm_start_iterator (value unitv)
|
||||
|
||||
ts = rpmtsCreate ();
|
||||
|
||||
#ifdef RPMVSF_MASK_NOSIGNATURES
|
||||
/* Disable signature checking (RHBZ#2064182). */
|
||||
rpmtsSetVSFlags (ts, rpmtsVSFlags (ts) | RPMVSF_MASK_NOSIGNATURES);
|
||||
#endif
|
||||
|
||||
iter = rpmtsInitIterator (ts, RPMDBI_PACKAGES, NULL, 0);
|
||||
CAMLreturn (Val_unit);
|
||||
|
||||
Reference in New Issue
Block a user