mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-09 08:46:07 +01:00
Fixed: remove package when partial name is supplied #34
This commit is contained in:
parent
2345ce70e4
commit
25bc7ff837
1 changed files with 3 additions and 3 deletions
|
@ -141,10 +141,10 @@ class PackageManager(object):
|
||||||
self.meta.color["CYAN"], ", ".join(self.binary),
|
self.meta.color["CYAN"], ", ".join(self.binary),
|
||||||
self.meta.color["ENDC"]))
|
self.meta.color["ENDC"]))
|
||||||
for pkg in self.binary:
|
for pkg in self.binary:
|
||||||
pkgs = find_package(pkg + self.meta.sp, self.meta.pkg_path)
|
found = GetFromInstalled(pkg).name()
|
||||||
if pkgs:
|
if found == pkg:
|
||||||
print("[ {0}delete{1} ] --> {2}".format(
|
print("[ {0}delete{1} ] --> {2}".format(
|
||||||
self.meta.color["RED"], self.meta.color["ENDC"], pkgs[0]))
|
self.meta.color["RED"], self.meta.color["ENDC"], found))
|
||||||
removed.append(pkg)
|
removed.append(pkg)
|
||||||
else:
|
else:
|
||||||
Msg().pkg_not_found("", pkg, "Can't remove", "")
|
Msg().pkg_not_found("", pkg, "Can't remove", "")
|
||||||
|
|
Loading…
Add table
Reference in a new issue