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:
Michael DeHaan 2014-03-16 12:40:11 -05:00
commit 8d3e2fe79a

View file

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