ugh
This commit is contained in:
parent
349df4af02
commit
0570c951a6
|
@ -9,13 +9,6 @@ build_pkg() {
|
||||||
package="$1"
|
package="$1"
|
||||||
repo="$2"
|
repo="$2"
|
||||||
|
|
||||||
[[ -d "${cfg_repos_dir}/${repo}" ]] || {
|
|
||||||
echo "Creating ${cfg_repos_dir}/${repo}"
|
|
||||||
mkdir -p "${cfg_repos_dir}/${repo}" || {
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo -n "Building ${repo}/${package}... "
|
echo -n "Building ${repo}/${package}... "
|
||||||
|
|
||||||
cd "/tmp/build-${package}"
|
cd "/tmp/build-${package}"
|
||||||
|
@ -26,10 +19,22 @@ main() {
|
||||||
source 'builder-chroot.cfg'
|
source 'builder-chroot.cfg'
|
||||||
|
|
||||||
package="$1"
|
package="$1"
|
||||||
repo_name="$2"
|
|
||||||
|
if [[ -d "/tmp/build-${package}/.spark.repo" ]]; then
|
||||||
|
repo_name=$( <"/tmp/build-${package}/.spark.repo" )
|
||||||
|
else
|
||||||
|
err "Repo not specified, not building package."
|
||||||
|
fi
|
||||||
|
|
||||||
build_pkg "$package" "$repo_name"
|
build_pkg "$package" "$repo_name"
|
||||||
|
|
||||||
|
if [[ ! -d "${cfg_repos_dir}/${repo_name}" ]]; then
|
||||||
|
echo "Creating ${cfg_repos_dir}/${repo}"
|
||||||
|
mkdir -p "${cfg_repos_dir}/${repo}" || {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
cd "${cfg_repos_dir}/${repo_name}"
|
cd "${cfg_repos_dir}/${repo_name}"
|
||||||
repo-add -n "${repo_name}.db.tar.gz" "$package"*.pkg.tar.xz
|
repo-add -n "${repo_name}.db.tar.gz" "$package"*.pkg.tar.xz
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user