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