mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-05 08:46:20 +01:00
Fixed disable - enabled view
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
f02af7747d
commit
0b0d2620fb
1 changed files with 6 additions and 4 deletions
|
@ -63,7 +63,7 @@ Keys: SPACE select or deselect the highlighted repositories,
|
|||
TAB move focus
|
||||
ENTER press the focused button
|
||||
|
||||
Disabled <-------- REPOSITORIES -------> Enabled"""
|
||||
Disabled <---------------- REPOSITORIES ----------------> Enabled"""
|
||||
self.read_enabled()
|
||||
self.read_disabled()
|
||||
text, title, backtitle, status = keys, " Repositories ", "", False
|
||||
|
@ -104,7 +104,8 @@ Keys: SPACE select or deselect the highlighted repositories,
|
|||
"""Update repositories.conf file with enabled or disabled
|
||||
repositories
|
||||
"""
|
||||
with open(f"{self.meta.conf_path}{self.repositories_conf}", "w") as new_conf:
|
||||
with open(f"{self.meta.conf_path}"
|
||||
f"{self.repositories_conf}", "w") as new_conf:
|
||||
for line in self.conf.splitlines():
|
||||
line = line.lstrip()
|
||||
if self.tag in line:
|
||||
|
@ -139,5 +140,6 @@ Keys: SPACE select or deselect the highlighted repositories,
|
|||
self.msg.template(78)
|
||||
print(f"| {total_enabled}")
|
||||
self.msg.template(78)
|
||||
print(f"{self.grey}Total {len(self.selected)}/{len(self.enabled + self.disabled)} "
|
||||
f"repositories enabled.{self.endc}\n")
|
||||
print(f"{self.grey}Total {len(self.selected)}/"
|
||||
f"{len(self.enabled + self.disabled)} "
|
||||
f"repositories enabled.{self.endc}\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue