Re: conditional require

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

 



In similar situations I've used something like

Conflicts: package-doc < 6.0.0

On Mon, 2022-01-31 at 16:01 -0500, Steven A. Falco wrote:
> You just asked the same question that I did. :-)
> 
> I think the Obsoletes line is correct.  Once I get a ruling on that
> from the experts, I'll add it to the package.
> 
> 	Steve
> 
> On 1/31/22 03:58 PM, przemek klosowski via devel wrote:
> > During recent major version update, some files were moved from
> > <package>-doc to <package>, and as a result updates of <package>
> > fail due to a file conflict. Manual update of <package>-doc
> > resolves this, of course.
> > 
> > A simple solution would be to declare that <package>
> > 
> > Required: package-doc >= 6.0.0
> > 
> > but that would force the install of the docs package if it wasn't
> > already there.
> > 
> > Is there a way to declare a dependency only if the other package is
> > present/installed? Would
> > 
> > Obsoletes: package-doc < 6.0.0
> > 
> > be the right thing to do?

-- 
Ken Gaillot <kgaillot@xxxxxxxxxx>
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux