Bug in PublishPundleDialog>>updateFiles

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
vam
Reply | Threaded
Open this post in threaded view
|

Bug in PublishPundleDialog>>updateFiles

vam
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Bug in PublishPundleDialog>>updateFiles

Niall Ross
It does indeed seem a classic case of modifying the iteration collection
in the iteration block.  AR 61154 created to fix it.

>I attached several files to bundle.
>Later, I want remove these files, but get exception in method
>PublishPundleDialog>>updateFiles.
>
>I analize code and:
>
>updateFiles
>
> | pundleModel fileDescriptions |
> pundleModel := self specList first dbPundle.
> fileDescriptions := pundleModel fileDescriptions.
> self fileList do:
> [:each |
> each publish ifTrue:
> [(fileDescriptions contains: [:eachFile | eachFile portableFilename
>asString = each name])
> ifTrue:
> [pundleModel removeFile: each name.
> pundleModel addFile: each name]
> ifFalse: [pundleModel addFile: each name]]].
> fileDescriptions := pundleModel fileDescriptions.   (!!!!! get collection.
>Need make copy of collection !!!!)
> fileDescriptions do:
> [:each |
> (self fileList contains: [:eachFile | eachFile name = each
>portableFilename asString]) ifFalse:
> [pundleModel removeFile: each portableFilename asString (!!! remove
>element from collection !!!)]]
>
>
>  
>


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc