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

def zeroinstall::injector::policy::Policy::get_cached (   self,
  impl 
)

Check whether an implementation is available locally.
@type impl: model.Implementation
@rtype: bool

Definition at line 565 of file policy.py.

00565                                 :
            """Check whether an implementation is available locally.
            @type impl: model.Implementation
            @rtype: bool
            """
            if impl.id.startswith('/'):
                  return os.path.exists(impl.id)
            else:
                  try:
                        path = self.get_implementation_path(impl)
                        assert path
                        return True
                  except:
                        pass # OK
            return False
      
      def add_to_cache(self, source, data):


Generated by  Doxygen 1.6.0   Back to index