Aladdin - Scala Bugtracking
[#732] project: distribution priority: medium category: bug
submitter assigned to status date submitted
Nikolay Lex fixed 2006-09-05 11:17:20.0
subject [contrib #181] fsc can prevent sbaz from removing packages
code
sbaz remove <packagename>

when fsc is active.
what happened
sbaz reports successful removal of package, but the .jar files may still remain.  fsc has the JAR files in the l\
ib directory locked down because it is active, preventing them from being updated or removed.
what expected sbaz might have to request that fsc shut down before it executes its changes. it could also test for fsc and refuse to do any update operations if fsc is active.
[back to overview]
Changes of this bug report
Nikolay  edited on  2006-09-05 11:19:25.0
I guess the problem is on Wndows only. Unixes allow you to delete an open file. But nevertheless, this should be fixed.
Lex  edited on  2006-09-19 16:03:44.0
Maybe fsc should be shut down before doing a removal, but there is also a more general problem. If the file removal fails, then sbaz should surely stop and report an error. Additionally, after this happens, sbaz needs to keep track of the fact that a package is halfway removed. All of this applies for installing packages, too, although a halfway installed package can mostly just be ignored.
Lex  edited on  2006-09-21 17:43:57.0
I have modified sbaz to abort if it is removing a package and runs into this kind of error. This is sufficiently better behavior to call it "fixed". Ideally, sbaz would track partially installed/uninstalled packages, but that requires a significant amount of design and code. Also, I would toss in an "fsc -shutdown" somewhere, except that this command is slow if there is not actually a server running. Once that is fixed, sbaz could easily call it.