File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
cls/SourceControl/Git/PullEventHandler Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ Parameter DESCRIPTION = "Does zpm ""load <repo root>""";
88/// Subclasses may override to customize behavior on pull.
99Method OnPull () As %Status
1010{
11- quit ##class (%ZPM.PackageManager ).Shell (" load " _..LocalRoot )
11+ set command = " load " _..LocalRoot
12+ quit $select (
13+ $$$comClassDefined(" %IPM.Main" ): ##class (%IPM.Main ).Shell (command ),
14+ 1 : ##class (%ZPM.PackageManager ).Shell (command )
15+ )
1216}
1317
14- }
18+ }
Original file line number Diff line number Diff line change @@ -13,10 +13,18 @@ Method OnPull() As %Status
1313 $$$QuitOnError(sc )
1414 set context = ##class (SourceControl.Git.PackageManagerContext ).ForInternalName (internalName )
1515 if $isobject (context .Package ) {
16- set sc = ##class (%ZPM.PackageManager ).Shell (" uninstall " _context .Package .Name )
16+ set command = " uninstall " _context .Package .Name
17+ set sc = $select (
18+ $$$comClassDefined(" %IPM.Main" ): ##class (%IPM.Main ).Shell (command ),
19+ 1 : ##class (%ZPM.PackageManager ).Shell (command )
20+ )
1721 $$$QuitOnError(sc )
1822 }
19- quit ##class (%ZPM.PackageManager ).Shell (" load " _..LocalRoot )
23+ set command = " load " _..LocalRoot
24+ quit $select (
25+ $$$comClassDefined(" %IPM.Main" ): ##class (%IPM.Main ).Shell (command ),
26+ 1 : ##class (%ZPM.PackageManager ).Shell (command )
27+ )
2028}
2129
2230}
You can’t perform that action at this time.
0 commit comments