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

Re: Breaks: instead of Conflicts: for transitional packages



Lucas Nussbaum escreveu isso aí:
> On 19/06/11 at 19:59 -0700, Antonio Terceiro wrote:
> > Hello all,
> > 
> > These days I noticed that we are using Conflicts: instead of Breaks: in
> > our transitional packages, and we should change that. Among other
> > reasons, using Breaks: instead of Conflicts: makes it easier for the
> > package manager determinate a valid upgrade path. Using Breaks instead
> > of Conflicts for transitional packages is also mandated by the newest
> > version of the Debian policy, so that's the way to go.
> > 
> > I've just updated gen-ruby-trans-pkgs in gem2deb to do The Right Thing,
> > and will upload a new version of gem2deb soon.
> > 
> > Please double check your packages and make sure your new ruby-foo
> > `Breaks: libfoo-ruby, libfoo-ruby1.8` instead of Conflicts: (and make
> > sure that's a versioned Breaks: in the same way we have done until now
> > with versioned Conflicts:)
> 
> Hi,
> 
> Thanks for the change.
> 
> I'm wondering if we should implement a check for common mistakes (or old
> practices now considered bad practices) directly in gem2deb.
> This one is a candidate,
> and another one is the ruby1.8 | ruby-interpreter dependency.

lintian already catches both of them.

> We could display a warning for now, which I would use to find all
> affected packages by scanning the build logs, and then turn this into an
> error later.
> 
> What do you think?

My intuition is that this type of thing should be implemented in lintian
so that even packages that are not using gem2deb can be checked.

(for example, it's probable that ruby-gnome2 will *not* use gem2deb)

-- 
Antonio Terceiro <terceiro@softwarelivre.org>
http://softwarelivre.org/terceiro


Attachment: signature.asc
Description: Digital signature


Reply to: