mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Fix report msg Complete!
This commit is contained in:
parent
4af641b7f5
commit
d625bb0406
1 changed files with 6 additions and 2 deletions
|
@ -48,7 +48,9 @@ class PackageManager(object):
|
|||
try:
|
||||
subprocess.call("installpkg {0} {1}".format(flag, pkg),
|
||||
shell=True)
|
||||
print("Completed!\n")
|
||||
check = pkg[:-4].split("/")[-1]
|
||||
if os.path.isfile(self.meta.pkg_path + check):
|
||||
print("Completed!\n")
|
||||
except (subprocess.CalledProcessError, KeyboardInterrupt):
|
||||
self._not_found("Can't install", self.binary, pkg)
|
||||
|
||||
|
@ -59,7 +61,9 @@ class PackageManager(object):
|
|||
try:
|
||||
subprocess.call("upgradepkg {0} {1}".format(flag, pkg),
|
||||
shell=True)
|
||||
print("Completed!\n")
|
||||
check = pkg[:-4].split("/")[-1]
|
||||
if os.path.isfile(self.meta.pkg_path + check):
|
||||
print("Completed!\n")
|
||||
except (subprocess.CalledProcessError, KeyboardInterrupt):
|
||||
self._not_found("Can't upgrade", self.binary, pkg)
|
||||
|
||||
|
|
Loading…
Reference in a new issue