This commit is contained in:
Jack L. Frost 2015-06-01 14:49:49 +03:00
parent 4654a86814
commit ed0cb21f51
1 changed files with 7 additions and 6 deletions

View File

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