On Mon, May 14, 2012 at 01:17:42AM +0200, Carsten Hey wrote:
> * Carsten Hey [2012-04-29 00:10 +0200]:
> > This untested but trivial patch fixes synaptic to be able to parse both
> > output formats by stripping the architecture suffix:
> >
> > --- a/common/raptoptions.cc
> > +++ b/common/raptoptions.cc
> > @@ -222,8 +222,8 @@ void RAPTOptions::rereadOrphaned()
> >        return;
> >     }
> >     while (fgets(buf, 254, fp) != NULL) {
> > -      //mvo: FIXME this sucks (remove newline at end)
> > -      buf[strlen(buf) - 1] = 0;
> > +      // remove newline at end and strip architecture suffix
> > +      buf[strcspn(buf, "\n:")] = '\0';
> >        //cout << "buf: " << buf << endl;
> >        setPackageOrphaned(buf, true);
> >     }
> 
> I uploaded a multiarch aware deborphan to delayed/8:
> 
>   Source: deborphan
>   Version: 1.7.28.7
>   Distribution: unstable
>   Delayed-Until: 2012-05-21 22:46:33
> 
> This will break synaptic's deborphan integration on multiarch enabled
> systems.
> 
> Drop me a mail if you want me to NMU above one line patch.

Thanks a bunch for this offer and sorry for my late reply, I was
traveling. I merged your fix into trunk and it will be part of the
next upload (that should happen soon, i.e. this week).

Cheers,
 Michael 
 
> Carsten
> 
> 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to