This is an automated email from the ASF dual-hosted git repository.

tuhaihe pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new cd3c88f6e1e Fix gppkg error: 'SyncPackages' object has no attribute 
'ret'.
cd3c88f6e1e is described below

commit cd3c88f6e1e43f5d770360e7dfd31b6634810c9f
Author: woblerr <[email protected]>
AuthorDate: Sun May 3 00:34:07 2026 +0300

    Fix gppkg error: 'SyncPackages' object has no attribute 'ret'.
    
    The command `gppkg --clean` fails with the following error: "'SyncPackages' 
object has no attribute 'ret'".
    
    This occurs because `operations` was being passed positionally during the 
OperationWorkerPool initialization, which incorrectly bound it to the 
`should_stop` argument instead of `items` in the base WorkerPool class.
    
    The solution is to  pass `operations` as a keyword argument..
---
 gpMgmt/bin/gppylib/commands/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gpMgmt/bin/gppylib/commands/base.py 
b/gpMgmt/bin/gppylib/commands/base.py
index d455c6e2d13..e09dd40c061 100755
--- a/gpMgmt/bin/gppylib/commands/base.py
+++ b/gpMgmt/bin/gppylib/commands/base.py
@@ -230,7 +230,7 @@ class OperationWorkerPool(WorkerPool):
         if operations is not None:
             for operation in operations:
                 self._spoof_operation(operation)
-        super(OperationWorkerPool, self).__init__(numWorkers, operations)
+        super(OperationWorkerPool, self).__init__(numWorkers, items=operations)
 
     def check_results(self):
         raise NotImplementedError("OperationWorkerPool has no means of 
verifying success.")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to