Add RPM based distro support to claudia_launcher

This commit is contained in:
Daniel Sonck 2016-03-17 18:04:51 +01:00 committed by Filipe Coelho
parent 233e8c10cf
commit 0ecd439e32
1 changed files with 5 additions and 0 deletions

View File

@ -703,6 +703,11 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW):
if installed == "install":
pkglist.append(package.strip())
elif os.path.exists("/bin/rpm"):
pkg_out = getoutput("env LANG=C /bin/rpm -qa --qf \"%{NAME}\n\" 2>/dev/null").split("\n")
for package in pkg_out:
pkglist.append(package)
if not "bristol" in pkglist:
self.tabWidget.setTabEnabled(iTabBristol, False)