示例#1
0
    def upload(self, pattern, package=None, remote_name=None,
               all_packages=False, force=False, confirm=False, retry=2,
               retry_wait=5, skip_upload=False, integrity_check=False,
               no_overwrite=None, query=None):
        """ Uploads a package recipe and the generated binary packages to a specified remote
        """

        recorder = UploadRecorder()

        if force and no_overwrite:
            exc = ConanException("'no_overwrite' argument cannot be used together with 'force'")
            recorder.error = True
            exc.info = recorder.get_info()
            raise exc

        uploader = CmdUpload(self._client_cache, self._user_io, self._remote_manager,
                             self._registry, self._loader)
        try:
            uploader.upload(recorder, pattern, package, all_packages, force, confirm, retry,
                            retry_wait, skip_upload, integrity_check, no_overwrite, remote_name,
                            query=query)
            return recorder.get_info()
        except ConanException as exc:
            recorder.error = True
            exc.info = recorder.get_info()
            raise
示例#2
0
 def upload(self, pattern, package=None, remote=None, all_packages=False, force=False,
            confirm=False, retry=2, retry_wait=5, skip_upload=False, integrity_check=False):
     """ Uploads a package recipe and the generated binary packages to a specified remote
     """
     uploader = CmdUpload(self._client_cache, self._user_io, self._manager._remote_manager,
                          self._manager._search_manager, remote)
     return uploader.upload(pattern, package, all_packages, force, confirm, retry,
                            retry_wait, skip_upload, integrity_check)
示例#3
0
    def upload(self, pattern, package=None, remote=None, all_packages=False, force=False,
               confirm=False, retry=2, retry_wait=5, skip_upload=False, integrity_check=False,
               no_overwrite=None):
        """ Uploads a package recipe and the generated binary packages to a specified remote
        """

        if force and no_overwrite:
            raise ConanException("'no_overwrite' argument cannot be used together with 'force'")

        uploader = CmdUpload(self._client_cache, self._user_io, self._remote_manager, remote, self.recorder)
        return uploader.upload(pattern, package, all_packages, force, confirm, retry, retry_wait,
                               skip_upload, integrity_check, no_overwrite)
示例#4
0
    def upload(self, pattern, package=None, remote_name=None, all_packages=False, confirm=False,
               retry=2, retry_wait=5, integrity_check=False, policy=None, query=None):
        """ Uploads a package recipe and the generated binary packages to a specified remote
        """

        recorder = UploadRecorder()
        uploader = CmdUpload(self._client_cache, self._user_io, self._remote_manager,
                             self._registry, self._loader, self._plugin_manager)
        try:
            uploader.upload(recorder, pattern, package, all_packages, confirm, retry,
                            retry_wait, integrity_check, policy, remote_name, query=query)
            return recorder.get_info()
        except ConanException as exc:
            recorder.error = True
            exc.info = recorder.get_info()
            raise