mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Add host pubkeys to build root
This commit is contained in:
parent
a7d894007f
commit
6264dc1ed1
@ -440,7 +440,10 @@ class SuseHandler(OsHandler):
|
||||
|
||||
def prep_root(self, args):
|
||||
mkdirp(self.targpath)
|
||||
if not self.sources:
|
||||
if self.sources:
|
||||
addkeycmd = ['rpm', '--root', self.targpath, '--import'] + glob.glob('/usr/lib/rpm/gnupg/keys/*.asc')
|
||||
subprocess.check_call(addkeycmd)
|
||||
else:
|
||||
targzypp = os.path.join(self.targpath, 'etc/zypp')
|
||||
mkdirp(targzypp)
|
||||
shutil.copytree(
|
||||
|
Loading…
Reference in New Issue
Block a user