smart should treat Recommends as apt does

Bug #268143 reported by Andreas Hasenack
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Landscape Server
Won't Fix
Undecided
Unassigned
Smart Package Manager
In Progress
Undecided
Unassigned
smart (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

apt-get in Intrepid tries to install Recommends by default. If a package listed in a Recommends dependency is not available, it is not treated as an error.

We should be careful to only do this where apt has the same behavior. So, for now, that means Intrepid only. Seems the best way, once it is supported by smart, is to enable/disable this feature in distro.py

Tags: patch
Revision history for this message
Anders F Björklund (afb) wrote :

Weak ("maybe") dependencies are also present in yum comps:

https://launchpad.net/~afb/smart/groups

The Depends equivalent there have type="mandatory", whereas
the Recommends equivalent has type="optional" instead. There's
also "conditional" that depends on which other packages and
selections have been made, and are sorta complex that way:

      <packagereq type="conditional" requires="openoffice.org-langpack-en">openoffice.org-core</packagereq>

Revision history for this message
Anders F Björklund (afb) wrote :

Sorry, Recommends would be type="default". The other type defaults to off instead.

Changed in landscape:
milestone: none → later
Revision history for this message
Anders F Björklund (afb) wrote :
tags: added: patch
Changed in smart:
milestone: none → 1.4.1
Revision history for this message
Anders F Björklund (afb) wrote :
Revision history for this message
Anders F Björklund (afb) wrote :

The "Requires(hint):" hints should use install-recommends config (like apt), not install-suggests as in the patch (wrong).

Some RPM configuration/implementation use "Suggests:" as an alias for "Requires(hint):", which is why it was confused.

Revision history for this message
Anders F Björklund (afb) wrote :

Postponing, until smart knows Recommends/Suggests. Adding as a Requires wasn't optimal...

Changed in smart:
milestone: 1.4.1 → none
Changed in smart:
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in smart (Ubuntu):
status: New → Confirmed
Thomas Herve (therve)
Changed in landscape:
status: New → Won't Fix
milestone: later → none
Changed in smart:
milestone: none → 1.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.