ProjectChecker.st
changeset 4372 d54a65e0fd4e
parent 4371 a5d2ba58a4af
child 4455 af2a675e0f32
--- a/ProjectChecker.st	Fri Oct 19 10:21:07 2018 +0200
+++ b/ProjectChecker.st	Fri Oct 19 18:07:26 2018 +0200
@@ -120,9 +120,16 @@
     methods := something.
 !
 
-package:packageId
+package:packageOrPackageId
     "Adds `packageId` to set of checked packages"
 
+    |packageId|
+
+    packageOrPackageId isBehavior ifTrue:[
+        packageId := packageOrPackageId package.
+    ] ifFalse:[    
+        packageId := packageOrPackageId.
+    ].
     (packages includes: packageId) ifFalse:[ 
         packages add: packageId 
     ].