This commit is contained in:
Jack L. Frost 2015-06-01 14:49:49 +03:00
parent 4654a86814
commit ed0cb21f51

View File

@ -19,13 +19,14 @@ main() {
source 'builder-chroot.cfg' source 'builder-chroot.cfg'
package="$1" package="$1"
repo_name="$2"
if [[ -f "/tmp/build-${package}/.spark.repo" ]]; then # if [[ -f "/tmp/build-${package}/.spark.repo" ]]; then
repo_name=$( <"/tmp/build-${package}/.spark.repo" ) # repo_name=$( <"/tmp/build-${package}/.spark.repo" )
else # else
err "Repo not specified, not building package." # err "Repo not specified, not building package."
return 1 # return 1
fi # fi
if [[ ! -d "${cfg_repos_dir}/${repo_name}" ]]; then if [[ ! -d "${cfg_repos_dir}/${repo_name}" ]]; then
echo "Creating ${cfg_repos_dir}/${repo_name}" echo "Creating ${cfg_repos_dir}/${repo_name}"