Fix report msg Complete!

This commit is contained in:
Dimitris Zlatanidis 2015-06-13 04:21:11 +03:00
parent 4af641b7f5
commit d625bb0406

View file

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