2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix relative hostpath for mismatched build platform

Relative path was erroneously
resulting in the host system
being consulted rather than the target.
This commit is contained in:
Jarrod Johnson 2022-02-03 09:07:02 -05:00
parent 33761e8870
commit 4665fb96a2

View File

@ -908,6 +908,8 @@ def fingerprint_host_el(args, hostpath='/'):
import rpm
except ImportError:
return None
if hostpath[0] != '/':
hostpath = os.path.join(os.getcwd(), hostpath)
ts = rpm.TransactionSet(hostpath)
rpms = ts.dbMatch('provides', 'system-release')
for inf in rpms: