class: PackageId
authorStefan Vogel <sv@exept.de>
Mon, 24 Aug 2015 14:57:16 +0200
changeset 18716 b34a563006e9
parent 18714 08183ed2c404
child 18717 f89688907327
child 18718 d615f1d3167c
class: PackageId changed: #packageIdString: No walkback if there is an empty package id.
PackageId.st
--- a/PackageId.st	Sun Aug 23 11:48:39 2015 +0200
+++ b/PackageId.st	Mon Aug 24 14:57:16 2015 +0200
@@ -165,11 +165,11 @@
 
     |components|
 
-    (aString includes:$:) ifFalse:[
+    (aString notEmptyOrNil and:[(aString includes:$:) not]) ifTrue:[
         "/ assume its a path
         components := aString asFilename components.
         self module:components first directory:((components copyFrom:2) asStringWith:$/).
-    ] ifTrue:[
+    ] ifFalse:[
         packageIdString := aString asSymbol.
     ]