virt-viewer/build-aux/buildenv.py
Daniel P. Berrangé b2c072cf0b build: introduce meson build recipes
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-01-25 16:02:48 +00:00

13 lines
218 B
Python

#!/usr/bin/python3
import subprocess
rpms = subprocess.check_output(["rpm", "-qa"])
rpms = rpms.decode("utf-8").split("\n")
rpms.sort()
for rpm in rpms:
if rpm == "":
continue
print(rpm, end="\r\n")