Skip to content

Commit

Permalink
Merge pull request #465 from intersystems/fix-464
Browse files Browse the repository at this point in the history
fix: install zpm 0.9+ in current namespace
  • Loading branch information
isc-tleavitt authored Apr 25, 2024
2 parents 88220c8 + b2a93db commit 401589e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/%ZPM/PackageManager.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1543,10 +1543,6 @@ ClassMethod Install(ByRef pCommandInfo) [ Internal ]
}
If (tModuleName = "") {
Quit $$$OK
}
If (tModuleName = "zpm") {
New $Namespace
Set $Namespace="%SYS"
}
If tRegistry = "" {
Set tServer = ##class(%ZPM.PackageManager.Client.RemoteServerDefinition).DeploymentServerOpen(1,,.tSC)
Expand Down Expand Up @@ -1601,6 +1597,11 @@ ClassMethod Install(ByRef pCommandInfo) [ Internal ]
$$$ThrowStatus($$$ERROR($$$GeneralError, "Deployed package '" _ tModuleName _ "' " _ tResult.VersionString _ " not supported on this platform " _ platformVersion _ "."))
}
}
If (tModuleName = "zpm") && (tResult.VersionString < 0.9) {
// Pre-%IPM, install zpm in %SYS.
New $Namespace
Set $Namespace="%SYS"
}
$$$ThrowOnError(##class(%ZPM.PackageManager.Developer.Utils).LoadQualifiedReference(tResult, .tParams))
}
} Else {
Expand Down Expand Up @@ -2534,4 +2535,3 @@ ClassMethod DisplayModules(ByRef pList, pNumbered As %Boolean = 0, pWithNamespac
}

}

0 comments on commit 401589e

Please sign in to comment.