[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] [PATCH 3/3] package: Scan for new star files after the
From: |
Holger Hans Peter Freyther |
Subject: |
[Help-smalltalk] [PATCH 3/3] package: Scan for new star files after the installation |
Date: |
Wed, 7 Mar 2012 12:19:56 +0100 |
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 <address@hidden>
+
+ * scripts/Package.st: Scan for new *.star files.
+
2011-09-25 Holger Hans Peter Freyther <address@hidden>
* 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