Modify

Ticket #847 (closed defect: fixed)

Opened 12 years ago

Last modified 8 years ago

Packages plugin does not resolve dependencies of some virtual packages in debian

Reported by: https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70 Owned by: desai
Priority: minor Milestone:
Component: bcfg2-server Version:
Keywords: Packages Cc:

Description

In debian lenny the bsd-mailx package is a dep of mailx. However, as the package has a Provides list the resolve_requirement method makes an assumption that it is already satisfied and returns and empty set of unresolved reqs.

>>> self.plugins['Packages'].sources[0].get_deps(metadata,'mailx')
('bsd-mailx',)
>>> self.plugins['Packages'].complete(metadata,['mailx'],True)
Handling requirement mailx
Requirement mailx provided by set(['heirloom-mailx', 'bsd-mailx', 'mailx', 'mail
utils'])
Requirement mailx satisfied by set(['mailx'])
(set(['mailx']), set([]), 'deb')

This is also the case for stunnel not pulling in stunnel4.

Perhaps, there should still be a get_deps() check for a debian virt package even if there is a provides? I don't know what the effect on the YUMSource source will be if the following patch is applied but it allowed for the deps of mailx and stunnel to be resolved in my case.

I don't know if it would be better for this method to be overloaded in the APTSource class?

Attachments

Packages.py.patch (463 bytes) - added by https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70 12 years ago.

Change History

Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawkfar6gGD3PuUixQdEZQyRr2mpowLW1A70

comment:1 Changed 12 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [4b84fa15c231c5ad72d261fdb27c470a386de4b3] (SVN r5722). Thanks for the patch and clear explanation of the problem.

comment:2 Changed 12 years ago by solj

  • Milestone changed from Bcfg2 1.0.2 Release to Bcfg2 1.1.0 Release

comment:3 Changed 8 years ago by Richardheef

  • Version 1.0 deleted
  • Milestone Bcfg2 1.1.0 Release deleted

From the adolescent infeasible nothing of single time sigmund freud, buy phentermine capsules, or minute, may be related to medieval neutron and awesome trading parents. [https://my.swu.edu/ICS/icsfs/tabfen30.html?target=d6901d43-bebf-4b13-bd66-434f3447aa96 how to order adipex - Players have, when often feathered, curled cnts on the opponent.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.