dnf package names

This commit is contained in:
j 2016-02-06 12:35:08 +05:30
parent 8b06842acc
commit e21158443e

View file

@ -79,19 +79,21 @@ class Install(Thread):
import Crypto import Crypto
except: except:
apt_packages += ' python3-crypto' apt_packages += ' python3-crypto'
dnf_packages += ' python3-pyCrypto' dnf_packages += ' python3-crypto'
if not has_bin('pdftocairo'): if not has_bin('pdftocairo'):
apt_packages += ' poppler-utils' apt_packages += ' poppler-utils'
dnf_packages += ' poppler-utils' dnf_packages += ' poppler-utils'
apt_packages = apt_packages.strip() apt_packages = apt_packages.strip()
dnf_packages = dnf_packages.strip() dnf_packages = dnf_packages.strip()
if has_bin('apt-get') and apt_packages: if has_bin('apt-get'):
if apt_packages:
print('You need additional packages: %s' % apt_packages) print('You need additional packages: %s' % apt_packages)
print('run: sudo apt-get install ' + apt_packages) print('run: sudo apt-get install ' + apt_packages)
self.failed = True self.failed = True
return return
elif has_bin('dnf') and dnf_packages: elif has_bin('dnf'):
if dnf_packages:
print('Installing additional packages: %s' % dnf_packages) print('Installing additional packages: %s' % dnf_packages)
print('run: sudo dnf install ' + dnf_packages) print('run: sudo dnf install ' + dnf_packages)
self.failed = True self.failed = True