Updated for diff command

This commit is contained in:
Dimitris Zlatanidis 2024-03-31 22:49:28 +03:00
parent 20f9e0e955
commit 53399ce4f7
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## slpkg - ChangeLog
### 5.0.3 - 31/03/2024
- Updated:
* Updated for slpkg_new-configs and (D)iff command (Thanks to Marav)
### 5.0.2 - 30/03/2024
- Updated:
* Updated for coding style

View file

@ -45,10 +45,10 @@ class NewConfigs:
def check(self) -> None:
""" Checks for .new files. """
print('\nChecking for NEW configuration files...')
print('Checking for NEW configuration files...\n')
if (self.slpkg_config_new.is_file() or self.blacklist_config_new.is_file()
or self.repositories_config_new.is_file()):
print('\nThere are NEW files:\n')
print('There are NEW files:\n')
if self.slpkg_config_new.is_file():
print(f"{self.bgreen:>12}{self.slpkg_config_new}{self.endc}")
@ -193,6 +193,7 @@ class NewConfigs:
print() # new line
if make.lower() == 'd':
self.diff_files(self.slpkg_config_new, self.slpkg_config)
self.prompt_slpkg_config()
if make.lower() == 'v':
self.vimdiff(self.slpkg_config_new, self.slpkg_config)
@ -213,6 +214,7 @@ class NewConfigs:
print() # new line
if make.lower() == 'd':
self.diff_files(self.repositories_config_new, self.repositories_config)
self.prompt_repositories_config()
if make.lower() == 'v':
self.vimdiff(self.repositories_config_new, self.repositories_config)
@ -233,6 +235,7 @@ class NewConfigs:
print() # new line
if make.lower() == 'd':
self.diff_files(self.blacklist_config_new, self.blacklist_config)
self.prompt_blacklist_config()
if make.lower() == 'v':
self.vimdiff(self.blacklist_config_new, self.blacklist_config)