Logo Search packages:      
Sourcecode: zeroinstall-injector version File versions

def zeroinstall::injector::policy::Policy::usable_feeds (   self,
  iface 
)

Generator for C{iface.feeds} that are valid for our architecture.
@rtype: generator
@see: L{arch}

Definition at line 330 of file policy.py.

00330                                    :
            """Generator for C{iface.feeds} that are valid for our architecture.
            @rtype: generator
            @see: L{arch}"""
            if self.src and iface.uri == self.root:
                  # Note: when feeds are recursive, we'll need a better test for root here
                  machine_ranks = {'src': 1}
            else:
                  machine_ranks = arch.machine_ranks
                  
            for f in iface.feeds:
                  if f.os in arch.os_ranks and f.machine in machine_ranks:
                        yield f
                  else:
                        debug("Skipping '%s'; unsupported architecture %s-%s",
                              f, f.os, f.machine)
      
      def get_ranked_implementations(self, iface):


Generated by  Doxygen 1.6.0   Back to index