Changeset 37c9aa7 in tol
- Timestamp:
- May 9, 2012, 2:52:44 PM (14 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 9042aac
- Parents:
- 77a7024
- File:
-
- 1 edited
-
tol/stdlib/TolPackage/client.tol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/TolPackage/client.tol
r77a7024 r37c9aa7 69 69 70 70 //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// 71 Real LocalClean(Text package) 72 //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// 73 { 74 Real UninstallPackage( package ) 75 }; 76 77 //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// 71 78 Text LocalLastCompatible(Text package) 72 79 //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||// … … 137 144 // Se trata el hecho de que pueda haberse indicado la ruta del archivo 138 145 Text pattern = Replace(GetFileName(package), ".zip", ""); 139 Text parts = Tokenizer(pattern, ".")[3];140 Set parts := parts << For(1, 3-Card(parts), Text (Real i) { "*" });146 Set parts = Tokenizer(pattern, "."); 147 Set Append( parts, For( Card(parts) + 1, 3, Text (Real i) { "*" } ) ); 141 148 Text txtPattern = parts[1]<<"."<<parts[2]<<"."<<parts[3]; 142 149 Set dir = GetDir(_.localRoot)[2]; 143 150 Set sel = EvalSet(GetDir(_.localRoot)[2], Real (Text subdir) { 144 If(TextMatch(sub ,txtPattern), OSDirRemove(_.localRoot<<subdir), 0)151 If(TextMatch(subdir ,txtPattern), OSDirRemove(_.localRoot<<subdir), 0) 145 152 }); 146 153 If(Card(sel), SetSum(sel), 0)
Note: See TracChangeset
for help on using the changeset viewer.
