mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated code
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
6dba505b84
commit
1218e82b71
2 changed files with 4 additions and 4 deletions
|
@ -86,8 +86,8 @@ class Config:
|
|||
def reset(self):
|
||||
"""Reset slpkg.conf file with default values
|
||||
"""
|
||||
shutil.copy2(self.config_file + ".orig", self.config_file)
|
||||
if filecmp.cmp(self.config_file + ".orig", self.config_file):
|
||||
shutil.copy2(f"{self.config_file}.orig", self.config_file)
|
||||
if filecmp.cmp(f"{self.config_file}.orig", self.config_file):
|
||||
print(f"{self.green}The reset was done{self.endc}")
|
||||
else:
|
||||
print(f"{self.red}Reset failed{self.endc}")
|
||||
|
|
|
@ -407,10 +407,10 @@ class PackageManager:
|
|||
match_cache = match.lower()
|
||||
if ("--third-party" in flag and not self.binary and
|
||||
split_name not in slack_names):
|
||||
packages.append(match)
|
||||
packages.append(match)
|
||||
if ("--third-party" in flag and pkg_cache in match_cache and
|
||||
split_name not in slack_names):
|
||||
packages.append(match)
|
||||
packages.append(match)
|
||||
if pkg_cache in match_cache and not flag:
|
||||
packages.append(match)
|
||||
if ("--case-ins" in flag and "--third-party" not in flag and
|
||||
|
|
Loading…
Reference in a new issue