mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Added lftp
This commit is contained in:
parent
63c05c86d1
commit
7d0f2364a0
1 changed files with 4 additions and 3 deletions
|
@ -47,14 +47,15 @@ class FormConfigs(Configs):
|
|||
|
||||
os.system('clear')
|
||||
|
||||
if code == 'help':
|
||||
self.help()
|
||||
|
||||
check: bool = self.check_configs(configs, tags)
|
||||
|
||||
if code == 'ok' and check:
|
||||
self.write_file(configs, tags)
|
||||
elif not check:
|
||||
self.edit()
|
||||
elif code == 'help':
|
||||
self.help()
|
||||
|
||||
def help(self) -> None:
|
||||
""" Load the configuration file on a text box. """
|
||||
|
@ -71,7 +72,7 @@ class FormConfigs(Configs):
|
|||
self.dialogbox.msgbox(f"\nError value for {key}. It must be 'true' or 'false'\n", height=7, width=60)
|
||||
return False
|
||||
|
||||
if key in ['DOWNLOADER'] and value not in ['wget', 'curl']:
|
||||
if key in ['DOWNLOADER'] and value not in ['wget', 'curl', 'lftp']:
|
||||
self.dialogbox.msgbox(f"\nError value for {key}. It must be 'wget' or 'curl'\n", height=7, width=60)
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue