Changeset ed32db7 in tol
- Timestamp:
- Apr 16, 2015, 7:40:08 AM (12 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 98bcbd6
- Parents:
- f5c3010
- File:
-
- 1 edited
-
tol/stdlib/TolPackage/client.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/TolPackage/client.tol
rf5c3010 red32db7 108 108 Text Sub(package, 1, length-1), package); // Se elimina el punto final 109 109 @Catalog catalog = GetCatalog(?); 110 AvoidErr.NonDecAct(catalog::ObtainLastCompatible(packageWP)) 110 Text ans = AvoidErr.NonDecAct(catalog::ObtainLastCompatible(packageWP)); 111 // Es necesario devolver el identificador del paquete sin variante 112 // cuando se llama justo después de instalar un paquete. 113 If(_RemoteInstall.JustCalled, { 114 Real _RemoteInstall.JustCalled := False; 115 Real posN = TextFind(ans, "#"); 116 If(posN>0, { 117 Real posP = TextFind(ans, ".", posN); 118 TextSub(ans, 1, posN-1) + If(posP==0, "", TextSub(ans, posP, -1)) 119 }, ans) 120 }, ans) 111 121 }) 112 122 }; 113 123 114 124 //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// 125 Real _RemoteInstall.JustCalled = False; 126 //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// 115 127 Real RemoteInstall(Text repository, Text package, Real showError) 116 128 //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// 117 129 { 130 // Es necesario que el método LocalLastCompatible devuelva 131 // el identificador del paquete sin mostrar la variante 132 // cuando se llama justo después de instalar un paquete. 133 Real _RemoteInstall.JustCalled := True; 118 134 Real length = TextLength(package); 119 135 Text packageWP = If(Text Sub(package, length, length)==".",
Note: See TracChangeset
for help on using the changeset viewer.
