Lines Matching +full:upload +full:- +full:dir

4 upload and remove packages.
7 #pylint: disable=missing-docstring
82 repo_run_command(repo, 'mkdir -p %s' % remote_path, cd=False)
93 'df -PB %d . | tail -1' % 10 ** 9).stdout.split()
118 cmd = 'find . -type f -atime +%s -exec rm -f {} \;' % older_than_days
138 curl_cmd_pattern = 'curl --connect-timeout 15 -s %s -o %s'
154 target: Optional string that should either be 'file' or 'dir'
157 if target == 'dir':
158 test_cmd = 'test -d %s'
160 test_cmd = 'test -e %s'
173 mktemp = 'mktemp -u /tmp/tmp.XXXXXX'
185 self.run_command('rm -rf %s' % dest_file_path)
210 self.run_command('rm -f %s' % dest_path)
244 upload_paths: The list of the upload of repositories to which
295 # Process the upload URLs
316 target: Optional string that should either be 'file' or 'dir'
319 if target == 'dir':
320 test_cmd = 'test -d %s'
322 test_cmd = 'test -e %s'
356 Clean up custom upload/download areas
401 lockfile_name = '.%s-%s-lock' % (name, pkg_type)
408 self._run_command('mkdir -p %s' % fetch_dir)
418 if (self.exists(install_dir, target='dir') and
426 self._run_command('rm -rf %s' % install_dir)
427 self._run_command('mkdir -p %s' % install_dir)
446 pkg_name : name of the package (ex: test-sleeptest.tar.bz2,
447 dep-gcc.tar.bz2, kernel.1-1.rpm)
456 # Check if the destination dir exists.
457 if not self.exists(os.path.dirname(dest_path), target='dir'):
513 raise error.PackageUploadError("Invalid Upload Path specified")
552 # upload the package
564 Upload a single file. Depending on the upload path, the appropriate
594 logging.error("Upload of %s to %s failed: %s", file_path,
600 Upload a full directory. Depending on the upload path, the appropriate
624 raise error.PackageUploadError("Upload of %s to %s failed: %s"
631 pkg_name : name of the package (ex: test-sleeptest.tar.bz2,
632 dep-gcc.tar.bz2)
649 # remove the package and upload the checksum file to the repos
664 utils.run("ssh %s 'rm -rf %s/%s'" % (hostline, remote_path,
757 # Check if the checksum has been pre-calculated.
824 Create a tar.bz2 file with the name 'pkg_name' say test-blah.tar.bz2.
830 cmd_list = ['tar', '-cf', temp_path, '-C', src_dir]
832 cmd_list.append('--use-compress-prog=pbzip2')
834 cmd_list.append('-j')
874 self._run_command('tar --no-same-owner -xjf %s -C %s' %
894 assert '-' not in pkg_type
895 return '%s-%s.tar.bz2' % (pkg_type, name)
907 match = re.search(r'^([^-]*)-(.*)\.tar\.bz2$', tarball_name)
952 curl_cmd_pattern = ('curl --connect-timeout 15 --retry 5 '
953 '--retry-delay 5 --fail -s %s -o %s')