X Tutup
Skip to content

Commit 55f34f4

Browse files
author
Johan Brichau
committed
fix resolveWith: older version package names are used in later Pharo versions
1 parent c4074b0 commit 55f34f4

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

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

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ 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 -Pharo70-"
9-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo70-') ifAbsent: [
10-
"try -Pharo90-"
11-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo90-') ifAbsent: [
12-
"try -Pharo100-"
13-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo100-') ifAbsent: [
14-
"try -Pharo110-"
15-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo100-') ifAbsent: [
16-
"try -Squeak-"
17-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak-') ifAbsent: [
18-
"try -Squeak5-"
19-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak5-') ifAbsent: [
20-
"try -Squeak6-"
21-
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak6-') ifAbsent: [
22-
"specific for Grease-Slime"
23-
aDictionary at: (each copyReplaceAll: 'Grease-Pharo-Slime' with: 'Grease-Slime') ifAbsent: [
24-
self error: self name printString , ' depends on unknown package ' , each printString ] ] ] ] ] ] ] ] ] ] ]
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 -Pharo100-"
19+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo100-') ifAbsent: [
20+
"try -Pharo110-"
21+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Pharo110-') ifAbsent: [
22+
"try -Squeak-"
23+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak-') ifAbsent: [
24+
"try -Squeak5-"
25+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak5-') ifAbsent: [
26+
"try -Squeak6-"
27+
aDictionary at: (each copyReplaceAll: '-Pharo-' with: '-Squeak6-') ifAbsent: [
28+
"specific for Grease-Slime"
29+
aDictionary at: (each copyReplaceAll: 'Grease-Pharo-Slime' with: 'Grease-Slime') ifAbsent: [
30+
self error: self name printString , ' depends on unknown package ' , each printString ] ] ] ] ] ] ] ] ] ] ] ] ] ]

0 commit comments

Comments
 (0)
X Tutup