Ticket #847 (closed defect: fixed)

Opened 13 years ago

Last modified 9 years ago

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

Reported by: Owned by: desai
Priority: minor Milestone:
Component: bcfg2-server Version:
Keywords: Packages Cc:


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')
>>> self.plugins['Packages'].complete(metadata,['mailx'],True)
Handling requirement mailx
Requirement mailx provided by set(['heirloom-mailx', 'bsd-mailx', 'mailx', 'mail
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 (463 bytes) - added by 13 years ago.

Change History

Changed 13 years ago by

comment:1 Changed 13 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 13 years ago by solj

  • Milestone changed from Bcfg2 1.0.2 Release to Bcfg2 1.1.0 Release

comment:3 Changed 9 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. [ 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.


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.