2
0
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:
Jarrod Johnson 2021-09-01 16:17:34 -04:00
parent a7d894007f
commit 6264dc1ed1

View File

@ -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(