X Tutup
Skip to content

Commit 1f93dc5

Browse files
author
Johan Brichau
committed
Fix package resolution for Slime exception
1 parent 1c55905 commit 1f93dc5

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

repository/Grease-Core.package/GRPackage.class/instance/resolveWith..st

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,16 @@ resolveWith: aDictionary
55
aDictionary at: each ifAbsent: [
66
"if Foo-Pharo-Bar fails try Foo-Pharo20-Bar and Foo-Pharo30-Bar"
77
(each indexOfSubCollection: '-Pharo-' startingAt: 1) ~= 0 ifTrue: [
8-
"try -Pharo40-"
9-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo40-') ifAbsent: [
10-
"try -Pharo50-"
11-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo50-') ifAbsent: [
12-
"try -Pharo60-"
13-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo60-') ifAbsent: [
14-
"try -Pharo70-"
15-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo70-') ifAbsent: [
16-
"try -Pharo90-"
17-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo90-') ifAbsent: [
18-
"try -Squeak-"
19-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak-') ifAbsent: [
20-
"try -Squeak5-"
21-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak5-') ifAbsent: [
22-
"try -Squeak6-"
23-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak6-') ifAbsent: [
24-
self error: self name printString , ' depends on unknown package ' , each printString ] ] ] ] ] ] ] ] ] ] ]
8+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo60-') ifAbsent: [
9+
"try -Pharo70-"
10+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo70-') ifAbsent: [
11+
"try -Pharo90-"
12+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo90-') ifAbsent: [
13+
"try -Squeak-"
14+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak-') ifAbsent: [
15+
"try -Squeak5-"
16+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak5-') ifAbsent: [
17+
"try -Squeak6-"
18+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak6-') ifAbsent: [
19+
aDictionary at: (each copyReplaceAll: 'Grease-Pharo-Slime' with: 'Grease-Slime') ifAbsent: [
20+
self error: self name printString , ' depends on unknown package ' , each printString ] ] ] ] ] ] ] ] ] ]

0 commit comments

Comments
 (0)
X Tutup