Example #1
0
    def _download_contrib(self, contribUri):
        manifest = contribUri.replace("contrib://", "")
        contrib = os.path.dirname(manifest)
        manifile = os.path.basename(manifest)
        cacheMap = context.jobconf.getFeature("cache")
        if cacheMap and 'downloads' in cacheMap:
            contribCachePath = cacheMap['downloads']
            contribCachePath = context.config.absPath(contribCachePath)
        else:
            contribCachePath = "cache-downloads"

        self._console.info("Checking network-based contrib: %s" % contribUri)
        self._console.indent()

        dloader = ContribLoader()
        (updatedP, revNo) = dloader.download(contrib, contribCachePath)

        if updatedP:
            self._console.info("downloaded contrib: %s" % contrib)
        else:
            self._console.debug("using cached version")
        self._console.outdent()

        manipath = os.path.join(contribCachePath, contrib, manifile)

        return manipath
Example #2
0
    def _download_contrib(self, contribUri):
        manifest = contribUri.replace("contrib://", "")
        contrib  = os.path.dirname(manifest)
        manifile = os.path.basename(manifest)
        cacheMap = context.jobconf.getFeature("cache")
        if cacheMap and 'downloads' in cacheMap:
            contribCachePath = cacheMap['downloads']
            contribCachePath = context.config.absPath(contribCachePath)
        else:
            contribCachePath = "cache-downloads"

        self._console.info("Checking network-based contrib: %s" % contribUri)
        self._console.indent()

        dloader = ContribLoader()
        (updatedP, revNo) = dloader.download(contrib, contribCachePath)

        if updatedP:
            self._console.info("downloaded contrib: %s" % contrib)
        else:
            self._console.debug("using cached version")
        self._console.outdent()

        manipath = os.path.join(contribCachePath, contrib, manifile)

        return manipath
Example #3
0
    def _download_contrib(self, libs, contrib, contribCache):

        self._console.info("Downloading contrib: %s" % contrib)
        self._console.indent()

        dloader = ContribLoader()
        dloader.download(contrib, contribCache)

        self._console.info("done")
        self._console.outdent()
        return
    def _download_contrib(self, libs, contrib, contribCache):

        self._console.info("Downloading contrib: %s" % contrib)
        self._console.indent()

        dloader = ContribLoader()
        dloader.download(contrib, contribCache)

        self._console.info("done")
        self._console.outdent()
        return
Example #5
0
    def _download_contrib(self, libs, contrib, contribCache):

        self._console.debug("Checking network-based contrib: %s" % contrib)
        self._console.indent()

        dloader = ContribLoader()
        (updatedP, revNo) = dloader.download(contrib, contribCache)

        if updatedP:
            self._console.info("downloaded contrib: %s" % contrib)
        else:
            self._console.debug("using cached version")
        self._console.outdent()
        return
Example #6
0
    def _download_contrib(self, libs, contrib, contribCache):

        self._console.debug("Checking network-based contrib: %s" % contrib)
        self._console.indent()

        dloader = ContribLoader()
        (updatedP, revNo) = dloader.download(contrib, contribCache)

        if updatedP:
            self._console.info("downloaded contrib: %s" % contrib)
        else:
            self._console.debug("using cached version")
        self._console.outdent()
        return
Example #7
0
    def _download_contrib(self, contribUri):
        cacheMap = context.jobconf.getFeature("cache")
        catalogBase = context.jobconf.getFeature("let/CONTRIB_CATALOG_BASEURL")
        if cacheMap and 'downloads' in cacheMap:
            contribCachePath = cacheMap['downloads']
            contribCachePath = context.config.absPath(contribCachePath)
        else:
            contribCachePath = "cache-downloads"
        self._console.info("Checking network-based contrib: %s" % contribUri)
        self._console.indent()

        dloader = ContribLoader(catalog_base_url=catalogBase)
        (updatedP, revNo, manipath) = dloader.download(contribUri, contribCachePath)

        if updatedP:
            self._console.info("downloaded contrib: %s" % contribUri)
        else:
            self._console.debug("using cached version")
        self._console.outdent()

        return manipath
    def _download_contrib(self, contribUri):
        cacheMap = context.jobconf.getFeature("cache")
        catalogBase = context.jobconf.getFeature("let/CONTRIB_CATALOG_BASEURL")
        if cacheMap and 'downloads' in cacheMap:
            contribCachePath = cacheMap['downloads']
            contribCachePath = context.config.absPath(contribCachePath)
        else:
            contribCachePath = "cache-downloads"
        self._console.info("Checking network-based contrib: %s" % contribUri)
        self._console.indent()

        dloader = ContribLoader(catalog_base_url=catalogBase)
        (updatedP, revNo, manipath) = dloader.download(contribUri,
                                                       contribCachePath)

        if updatedP:
            self._console.info("downloaded contrib: %s" % contribUri)
        else:
            self._console.debug("using cached version")
        self._console.outdent()

        return manipath