When installing a new package and trying to run the tests a PackageNotAvailable exception will be signaled. This is because the PackageLoader not searchig for new star files. Use the PackageLoader>>#flush to reset the loadedDate (and root) to force a full rescan of available packages. --- ChangeLog | 4 ++++ scripts/Package.st | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 1d1b40d..2359417 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-02-02 Holger Hans Peter Freyther <[email protected]> + + * scripts/Package.st: Scan for new *.star files. + 2011-09-25 Holger Hans Peter Freyther <[email protected]> * kernel/File.st: Add a <category: 'text'> to the class. diff --git a/scripts/Package.st b/scripts/Package.st index e5b8dff..10dd92a 100644 --- a/scripts/Package.st +++ b/scripts/Package.st @@ -689,6 +689,9 @@ PackageCommand subclass: PkgInstall [ [ super run ] ensure: [ tmpDir isNil ifFalse: [ tmpDir all remove ] ]. + PackageLoader + flush; + refresh. (Command dryRun not and: [ self isOption: 'load' ]) ifTrue: [ ^self loadPackages ]. -- 1.7.9.1 _______________________________________________ help-smalltalk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-smalltalk
