Donot install package if segment list is empty.
This commit fixed the regresstion introduced by commit
WorkerPool: Error out if numWorkers is 0 or less.
Details in
@@ -862,9 +862,10 @@ class InstallPackage(Operation):
# distribute package to segments
srcFile = self.gppkg.abspath
dstFile = os.path.join(GPHOME, self.gppkg.pkg)
- GpScp(srcFile, dstFile, self.segment_host_list).run()
# install package on segments
+ if self.segment_host_list:
+ GpScp(srcFile, dstFile, self.segment_host_list).run()
HostOperation(InstallPackageLocally(dstFile), self.segment_host_list).run()
# install package on standby
