Closed jkuczm closed 5 years ago
Tried to include both of these. I've only got a copy of 11.3 so we'll see what happens.
Now it works in all 10+ versions.
I forgot that while System`StringEndsQ
was introduced in version 10.1, but GeneralUtilities`StringEndsQ
exists in 10.0. Sorry for that. So whole If[! NameQ["StringEndsQ"], ...]
is not necessary, since Needs@"GeneralUtilities`"
loads version of StringEndsQ
.
@jkuczm Eh it doesn't hurt to have it I guess. It's just a dead code path. If you think this issue has run its course feel free to close it. If there's other stuff to discuss leave it open.
GeneralUtilities`
package is not loaded at startup in 10.0, 10.4 versions that I have. This doesn't prevent paclets from being installed, butGeneralUtilities`WithMessageHandler[Paclet[...], ...]
expression is returned instead ofPaclet[...]
expression as result ofPublicPacletInstall
call.Is there a reason not to include
Needs@"GeneralUtilities`"
somewhere insidePublicPacletInstall
package? I think it would solve this issue.StringEndsQ
was introduced in 10.1.StringEndsQ[loc, pacletFileName]
test used indownloadRawPacletsToo
prevents paclets from being installed in version 10.0. Using something likeStringMatchQ[loc, ___ ~~ pacletFileName ~~ EndOfString]
instead, should make it work.