Lines Matching +full:generate +full:- +full:lockfile

8 #pylint: disable=missing-docstring
88 repo_run_command(repo, 'mkdir -p %s' % remote_path, cd=False)
99 'df -PB %d . | tail -1' % 10 ** 9).stdout.split()
124 cmd = 'find . -type f -atime +%s -exec rm -f {} \;' % older_than_days
144 curl_cmd_pattern = 'curl --connect-timeout 15 -s %s -o %s'
164 test_cmd = 'test -d %s'
166 test_cmd = 'test -e %s'
179 mktemp = 'mktemp -u /tmp/tmp.XXXXXX'
191 self.run_command('rm -rf %s' % dest_file_path)
216 self.run_command('rm -f %s' % dest_path)
326 test_cmd = 'test -d %s'
328 test_cmd = 'test -e %s'
407 lockfile_name = '.%s-%s-lock' % (name, pkg_type)
408 lockfile = open(os.path.join(self.pkgmgr_dir, lockfile_name), 'w')
412 fcntl.flock(lockfile, fcntl.LOCK_EX)
414 self._run_command('mkdir -p %s' % fetch_dir)
432 self._run_command('rm -rf %s' % install_dir)
433 self._run_command('mkdir -p %s' % install_dir)
443 fcntl.flock(lockfile, fcntl.LOCK_UN)
444 lockfile.close()
452 pkg_name : name of the package (ex: test-sleeptest.tar.bz2,
453 dep-gcc.tar.bz2, kernel.1-1.rpm)
637 pkg_name : name of the package (ex: test-sleeptest.tar.bz2,
638 dep-gcc.tar.bz2)
670 utils.run("ssh %s 'rm -rf %s/%s'" % (hostline, remote_path,
763 # Check if the checksum has been pre-calculated.
830 Create a tar.bz2 file with the name 'pkg_name' say test-blah.tar.bz2.
836 cmd_list = ['tar', '-cf', temp_path, '-C', src_dir]
838 cmd_list.append('--use-compress-prog=pbzip2')
840 cmd_list.append('-j')
880 self._run_command('tar --no-same-owner -xjf %s -C %s' %
900 assert '-' not in pkg_type
901 return '%s-%s.tar.bz2' % (pkg_type, name)
913 match = re.search(r'^([^-]*)-(.*)\.tar\.bz2$', tarball_name)
948 # Generate the group prefix.
958 curl_cmd_pattern = ('curl --connect-timeout 15 --retry 5 '
959 '--retry-delay 5 --fail -s %s -o %s')