This commit is contained in:
Jack L. Frost 2015-06-01 14:43:35 +03:00
parent b3dc3ad8b9
commit 072f768ebd

View File

@ -27,8 +27,6 @@ main() {
return 1 return 1
fi fi
build_pkg "$package" "$repo_name"
if [[ ! -d "${cfg_repos_dir}/${repo_name}" ]]; then if [[ ! -d "${cfg_repos_dir}/${repo_name}" ]]; then
echo "Creating ${cfg_repos_dir}/${repo}" echo "Creating ${cfg_repos_dir}/${repo}"
mkdir -p "${cfg_repos_dir}/${repo}" || { mkdir -p "${cfg_repos_dir}/${repo}" || {
@ -36,6 +34,8 @@ main() {
} }
fi fi
build_pkg "$package" "$repo_name"
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
} }