Merge pull request #6323 from aresch/rpm_key_query_fix
Fix rpm_key on system with no gpg keys imported
This commit is contained in:
commit
8d3e2fe79a
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ class RpmKey:
|
|||
return stdout, stderr
|
||||
|
||||
def is_key_imported(self, keyid):
|
||||
stdout, stderr = self.execute_command([self.rpm, '-q', 'gpg-pubkey'])
|
||||
stdout, stderr = self.execute_command([self.rpm, '-qa', 'gpg-pubkey'])
|
||||
for line in stdout.splitlines():
|
||||
line = line.strip()
|
||||
if not line:
|
||||
|
|
Loading…
Reference in a new issue