dnf package names
This commit is contained in:
parent
8b06842acc
commit
e21158443e
1 changed files with 13 additions and 11 deletions
24
install
24
install
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue