dnf package names

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

24
install
View file

@ -79,23 +79,25 @@ class Install(Thread):
import Crypto
except:
apt_packages += ' python3-crypto'
dnf_packages += ' python3-pyCrypto'
dnf_packages += ' python3-crypto'
if not has_bin('pdftocairo'):
apt_packages += ' poppler-utils'
dnf_packages += ' poppler-utils'
apt_packages = apt_packages.strip()
dnf_packages = dnf_packages.strip()
if has_bin('apt-get') and apt_packages:
print('You need additional packages: %s' % apt_packages)
print('run: sudo apt-get install ' + apt_packages)
self.failed = True
return
elif has_bin('dnf') and dnf_packages:
print('Installing additional packages: %s' % dnf_packages)
print('run: sudo dnf install ' + dnf_packages)
self.failed = True
return
if has_bin('apt-get'):
if apt_packages:
print('You need additional packages: %s' % apt_packages)
print('run: sudo apt-get install ' + apt_packages)
self.failed = True
return
elif has_bin('dnf'):
if dnf_packages:
print('Installing additional packages: %s' % dnf_packages)
print('run: sudo dnf install ' + dnf_packages)
self.failed = True
return
elif apt_packages:
print('You need to install Pillow, lxml and pyOpenSSL\ni.e. sudo pip3 install pillow lxml pyOpenSSL')
if 'poppler' in apt_packages: