Chunk browser question

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

Chunk browser question

Bill Schwab-2
Hello all,

Is there a simple way to use Ian's CB to preview the contents of a Dolphin
patch?  My goal is to preview the changes, in particular #queryPort and any
related changes.  I obtained the patches with LiveUpdate's open... command,
and saved the resulting text as a .st file.  The CB's view of the file is
analogous to a structured storage file - most of the payload is contained in
a single chunk called "evaluation".

So far, I have used the CB to open the patch file, copy the evaluation
chunk, paste that into a workspace and then save a new .st file that
_appears_ to be a valid patch file.  Is there a better way?

Have a good one,

Bill

--
Wilhelm K. Schwab, Ph.D.
[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Chunk browser question

Blair McGlashan
"Bill Schwab" <[hidden email]> wrote in message
news:c1gha5$k1s$[hidden email]...
> Hello all,
>
> Is there a simple way to use Ian's CB to preview the contents of a Dolphin
> patch?  My goal is to preview the changes, in particular #queryPort and
any
> related changes.  I obtained the patches with LiveUpdate's open...
command,
> and saved the resulting text as a .st file.  The CB's view of the file is
> analogous to a structured storage file - most of the payload is contained
in
> a single chunk called "evaluation".
>
> So far, I have used the CB to open the patch file, copy the evaluation
> chunk, paste that into a workspace and then save a new .st file that
> _appears_ to be a valid patch file.  Is there a better way?

Basically you need to skip the secure header chunks and then extract the
patches from the payload chunk. Something like the following should do it:

    f := FileStream read: path, 'pl3.st'.
    c := ChunkSourceFiler on: f.
    6 timesRepeat: [c nextChunk].
    (FileStream write: path, 'patch level 3.st') nextPutAll: c nextChunk;
close.
    f close.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: Chunk browser question

Ian Bartholomew-18
In reply to this post by Bill Schwab-2
Bill,

> Is there a simple way to use Ian's CB to preview the contents of a
> Dolphin patch?

There is now - thanks for the suggestion :-)

http://www.idb.me.uk/files/cb5i.zip  (19K)

A replacement ChunkBrowser that has an "Open Patch File" option on the
Files menu that, surprise surprise, opens a saved Dolphin patch file and
displays all the hunks therein.

--
Ian

Use the Reply-To address to contact me.
Mail sent to the From address is ignored.