Implemented a little enhancement in the pip interface. eric7

Sun, 22 Dec 2024 14:15:44 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 22 Dec 2024 14:15:44 +0100
branch
eric7
changeset 11112
f96a04843ed4
parent 11111
aeb618432c59
child 11113
2e03383143e3
child 11114
d77b8e082ad5

Implemented a little enhancement in the pip interface.

src/eric7/PipInterface/Pip.py file | annotate | diff | comparison | revisions
--- a/src/eric7/PipInterface/Pip.py	Sat Dec 21 16:32:05 2024 +0100
+++ b/src/eric7/PipInterface/Pip.py	Sun Dec 22 14:15:44 2024 +0100
@@ -961,6 +961,7 @@
 
                 if callback:
                     if self.__outdatedProc is not None:
+                        self.__outdatedProc.finished.disconnect()
                         self.__outdatedProc.kill()  # end the process forcefully
                         self.__outdatedProc = None
 
@@ -972,10 +973,11 @@
                     proc.start(interpreter, args)
                     return None
 
-                proc = QProcess()
-                proc.start(interpreter, args)
-                if proc.waitForStarted(15000) and proc.waitForFinished(30000):
-                    packages = self.__extractOutdatedPackages(proc)
+                else:
+                    proc = QProcess()
+                    proc.start(interpreter, args)
+                    if proc.waitForStarted(15000) and proc.waitForFinished(30000):
+                        packages = self.__extractOutdatedPackages(proc)
 
         return packages
 

eric ide

mercurial