Updated code

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2020-02-05 20:14:17 +01:00
parent 6dba505b84
commit 1218e82b71
2 changed files with 4 additions and 4 deletions

View file

@ -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}")

View file

@ -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