mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
PY-29471 Remove propagating of exit code in packaging_tool.py altogether
since the only place where it was actually used is launching pip, and the latter terminates the process with sys.exit() itself now thanks to runpy.run_module().
This commit is contained in:
@@ -101,7 +101,6 @@ def do_untar(name):
|
||||
|
||||
sys.stdout.write(directory_name+chr(10))
|
||||
sys.stdout.flush()
|
||||
return 0
|
||||
|
||||
|
||||
def mkdtemp_ifneeded():
|
||||
@@ -127,7 +126,6 @@ def main():
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
retcode = 0
|
||||
try:
|
||||
if len(sys.argv) < 2:
|
||||
usage()
|
||||
@@ -154,7 +152,7 @@ def main():
|
||||
if len(sys.argv) < 2:
|
||||
usage()
|
||||
name = sys.argv[2]
|
||||
retcode = do_untar(name)
|
||||
do_untar(name)
|
||||
elif cmd == 'uninstall':
|
||||
if len(sys.argv) < 2:
|
||||
usage()
|
||||
@@ -175,7 +173,7 @@ def main():
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
exit(ERROR_EXCEPTION)
|
||||
exit(retcode)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user