[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debbugs SOAP interface returns multiple package names separated with comma.



Hi,

> > These bug reports return package names in the following format:
> > 
> > xfonts-75dpi-transcoded,xfonts-75dpi
> > 
> > which apt-listbugs fails to understand.
> > 
> > This notation has been allowed in debbugs, but it has never been
> > supported too well in any of the interfaces.
> 
> It's actually supported in all of them; the underlying implementation
> is the following:
> 
> =head2 splitpackages
> 
>      splitpackages($pkgs)
> 
> Split a package string from the status file into a list of package names.
> 
> =cut
> 
> sub splitpackages {
>     my $pkgs = shift;
>     return unless defined $pkgs;
>     return map lc, split /[ \t?,()]+/, $pkgs;
> }
> 
> [It's in Debbugs/Status.am]

Either way, apt-listbugs is broken, so I need to fix it.  However, I
was expecting an array from debbug SOAP interface rather than a CSV
string.

I've been thinking over it for a day, and I guess it's fine as it is
if it's not going to change. I can translate it in debbugs SOAP
interface handler library.

regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project



Reply to: