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:
parent
33761e8870
commit
4665fb96a2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user