FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 10-20-2008, 12:21 PM
"Sandro Tosi"
 
Default Bug#502860: reportbug: Gets wrong maintainer for no longer installed packages

Hello Ansgar,

On Mon, Oct 20, 2008 at 13:23, Ansgar Burchardt <ansgar@2008.43-1.org> wrote:
> Reportbug sometimes looks up the wrong maintainer for packages that have
> been removed from the system.
>
> The output from "dpkg --print-avail" can be wrong if the package is no longer
> installed. Reportbug should not use this information for these packages. For
> example on my system I get this:

But isn't it a bug in dpkg then? I can feel like --print-avail should
print only "available" package, and nntp was no longer available on
your system. I can't think an easy way to fix this if not switching to
apt-cache or some other tool.

I'm open to suggestions, in particular from dpkg guys.

Cheers,
Sandro

--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 10-21-2008, 02:51 PM
"Sandro Tosi"
 
Default Bug#502860: reportbug: Gets wrong maintainer for no longer installed packages

retitle 502860 use python-apt instead of dpkg for pkgs info
thanks

On Mon, Oct 20, 2008 at 16:52, Raphael Hertzog <hertzog@debian.org> wrote:
> On Mon, 20 Oct 2008, Sandro Tosi wrote:
>> Hello Ansgar,
>>
>> On Mon, Oct 20, 2008 at 13:23, Ansgar Burchardt <ansgar@2008.43-1.org> wrote:
>> > Reportbug sometimes looks up the wrong maintainer for packages that have
>> > been removed from the system.
>> >
>> > The output from "dpkg --print-avail" can be wrong if the package is no longer
>> > installed. Reportbug should not use this information for these packages. For
>> > example on my system I get this:
>>
>> But isn't it a bug in dpkg then? I can feel like --print-avail should
>> print only "available" package, and nntp was no longer available on
>> your system. I can't think an easy way to fix this if not switching to
>> apt-cache or some other tool.
>
> Don't use "dpkg --print-avail" it reports only outdated information in
> most cases as the available file is only a left-over from dselect
> and as such it's almost guaranteed to not be up-to-date. There's a warning
> in the man page in the git repository documenting this limitation already.
>
> Use apt-cache is my suggestion.

Thanks Raphael for highlight this to me; maybe the best solution is to
replace all the code that "exec dpkg + parse output" to python-apt
(even if this interface really needs a better documentation than now)

Cheers,
Sandro

--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 10:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org