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,6 +48,8 @@ class PackageManager(object):
|
||||||
try:
|
try:
|
||||||
subprocess.call("installpkg {0} {1}".format(flag, pkg),
|
subprocess.call("installpkg {0} {1}".format(flag, pkg),
|
||||||
shell=True)
|
shell=True)
|
||||||
|
check = pkg[:-4].split("/")[-1]
|
||||||
|
if os.path.isfile(self.meta.pkg_path + check):
|
||||||
print("Completed!\n")
|
print("Completed!\n")
|
||||||
except (subprocess.CalledProcessError, KeyboardInterrupt):
|
except (subprocess.CalledProcessError, KeyboardInterrupt):
|
||||||
self._not_found("Can't install", self.binary, pkg)
|
self._not_found("Can't install", self.binary, pkg)
|
||||||
|
@ -59,6 +61,8 @@ class PackageManager(object):
|
||||||
try:
|
try:
|
||||||
subprocess.call("upgradepkg {0} {1}".format(flag, pkg),
|
subprocess.call("upgradepkg {0} {1}".format(flag, pkg),
|
||||||
shell=True)
|
shell=True)
|
||||||
|
check = pkg[:-4].split("/")[-1]
|
||||||
|
if os.path.isfile(self.meta.pkg_path + check):
|
||||||
print("Completed!\n")
|
print("Completed!\n")
|
||||||
except (subprocess.CalledProcessError, KeyboardInterrupt):
|
except (subprocess.CalledProcessError, KeyboardInterrupt):
|
||||||
self._not_found("Can't upgrade", self.binary, pkg)
|
self._not_found("Can't upgrade", self.binary, pkg)
|
||||||
|
|
Loading…
Reference in a new issue