Modify

Ticket #719 (closed defect: worksforme)

Opened 14 years ago

Last modified 14 years ago

Yum support in the Packages plugin should call Yum to calculate dependencies

Reported by: David Strauss <[email protected]…> Owned by: desai
Priority: major Milestone: Bcfg2 1.0.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

Currently, the Yum support assumes the upstream repositories are all native Yum. This is not true for the Red Hat Network, which uses its own XMLRPC server. If the Packages plugin uses Yum's own "yum deplist", then it can be compatible with any Yum back-end.

Attachments

Change History

comment:1 Changed 14 years ago by David Strauss <[email protected]…>

Here's a rough draft of the basic idea, without proper support for unknown packages.

    def complete(self, metadata, packages, unknown, debug):
       	pkgstring = ' '.join(packages)
       	print pkgstring
        depstring = commands.getoutput('yum deplist -q ' + pkgstring  + '|grep "provider: "|sed "s/[ ]*provider: \([^\.]*\)\..*/\1/g"|sort|uniq')
        deparray = depstring.split('\n')
        return (deparray, set())

comment:2 Changed 14 years ago by David Strauss <[email protected]…>

The necessity of this issue is somewhat a result of the problems in bug #725.

comment:3 Changed 14 years ago by desai

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

The current version in trunk of Packages seems to fix these issues.

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.