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
|
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'):
|
||||||
print('You need additional packages: %s' % apt_packages)
|
if apt_packages:
|
||||||
print('run: sudo apt-get install ' + apt_packages)
|
print('You need additional packages: %s' % apt_packages)
|
||||||
self.failed = True
|
print('run: sudo apt-get install ' + apt_packages)
|
||||||
return
|
self.failed = True
|
||||||
elif has_bin('dnf') and dnf_packages:
|
return
|
||||||
print('Installing additional packages: %s' % dnf_packages)
|
elif has_bin('dnf'):
|
||||||
print('run: sudo dnf install ' + dnf_packages)
|
if dnf_packages:
|
||||||
self.failed = True
|
print('Installing additional packages: %s' % dnf_packages)
|
||||||
return
|
print('run: sudo dnf install ' + dnf_packages)
|
||||||
|
self.failed = True
|
||||||
|
return
|
||||||
elif apt_packages:
|
elif apt_packages:
|
||||||
print('You need to install Pillow, lxml and pyOpenSSL\ni.e. sudo pip3 install pillow lxml pyOpenSSL')
|
print('You need to install Pillow, lxml and pyOpenSSL\ni.e. sudo pip3 install pillow lxml pyOpenSSL')
|
||||||
if 'poppler' in apt_packages:
|
if 'poppler' in apt_packages:
|
||||||
|
|
Loading…
Reference in a new issue