[Pkg-octave-devel] Bug#693873: Bug#693873: octave-common: pkg ("list") not compatible with 'warning error Octave:str-to-num'

Thomas Weber tweber at debian.org
Wed Nov 21 13:08:28 UTC 2012


On Wed, Nov 21, 2012 at 11:11:38AM +0100, Marc Cromme wrote:
> Package: octave-common
> Version: 3.6.2-5
> Severity: normal
> Tags: upstream
> 
> Dear Maintainer,
> 
> It appears that the installation of the packages
> 
>   octave-java 1.2.8-6   amd64
>   octave-io   1.0.19-1  amd64

No, there is nothing specific to these packages. In fact, the problem
appears with no packages installed, at least for me:

octave:1> pkg list
no packages installed.
octave:2> warning error Octave:str-to-num
octave:3> pkg list
error: implicit conversion from string to real N-d array
error: type conversion failed for binary operator `=='
error: called from:
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 274, column 3
octave:3> pkg ("list")
error: implicit conversion from string to real N-d array
error: type conversion failed for binary operator `=='
error: called from:
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 274, column 3
octave:3> version
ans = 3.6.2
octave:4> ver
error: implicit conversion from string to real N-d array
error: type conversion failed for binary operator `=='
error: called from:
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 274, column 3
error:   /usr/share/octave/3.6.2/m/miscellaneous/ver.m at line 65,
column 5

> I did expect the code contained in the octave-common packages to support all kind of
> promotion from warnings to errors, as this helps developing clean code.

What I actually don't understand is that the normal code does not print
a warning, but then stops when promoting the warning to an error.

Anyway, I'm forwarding this to upstream.

	Thomas



More information about the Pkg-octave-devel mailing list