[Pkg-octave-devel] [RFU] octave-pkg-dev 0.5.8 [was :Re: postrm instead of prerm for packages with pkg.m]

Rafael Laboissiere rafael at debian.org
Sun Aug 3 07:38:58 UTC 2008


* Ólafur Jens Sigurðsson <ojsbug at gmail.com> [2008-08-03 02:00]:

> On Sat, Aug 02, 2008 at 10:43:54PM +0200, Thomas Weber wrote:
> > We currently call "pkg rebuild" in a prerm script for all octave-forge
> > packages. I think that must go into a postrm script:
> > 
> > The following is a package install-purge lifecycle. Note that Octave still
> > thinks the package is there at the end.
> > 
> > # octave --silent --eval "pkg list"
> > no packages installed.
> > 
> > # aptitude install octave-nan
> > ...
> > 
> > # octave --silent --eval "pkg list"
> > Package Name  | Version | Installation directory
> > --------------+---------+-----------------------
> >          nan *|   1.0.6 | /usr/share/octave/packages/nan-1.0.6
> > 
> > # aptitude purge octave-nan
> > ...
> > 
> > 
> > # octave --silent --eval "pkg list"
> > Package Name  | Version | Installation directory
> > --------------+---------+-----------------------
> >          nan  |   1.0.6 | /usr/share/octave/packages/nan-1.0.6
> > 
> > 
> > The package is still mentioned in octave_packages, but the files have been
> > removed.
> 
> Well spotted Thomas.
> 
> So how is this fixed? Just by listing postinst-octpkg in the
> debian/install file of octave-pkg-dev? Shouldn't that file contain the
> same as prerm-octpkg contains now? That is instead of 
> 
> if [ "$1" = configure ] ; then
> 
> it should read
> 
> case "$1" in
>     upgrade|remove|purge)

Fixed in SVN, as r2376.

It seems to work for me and I will upload the package soon but, please, test
it.

-- 
Rafael



More information about the Pkg-octave-devel mailing list