index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-11-22 22:44:50 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-22 22:44:50 +0100 |
commit | bfc69b2cd5b771b6483c6e9b95ea36f6f9d82cda (patch) | |
tree | 75d89e4b677256a61bfe87708ffbb203b3a1e038 /bin/build-packages | |
parent | ff14cb6fc84d96d65b1a7175a361bff605c86bf7 (diff) |
-rwxr-xr-x | bin/build-packages | 14 |
diff --git a/bin/build-packages b/bin/build-packages index bb1a5be..4f455b3 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -180,12 +180,22 @@ while [ "${count}" -ne 0 ]; do 0) [ ${count} -gt 0 ] && \ count=$((count-1)) + sub_pkgrel="${package##* }" + package="${package% *}" repository="${package##* }" package="${package% *}" mod_git_revision="${package##* }" package="${package% *}" git_revision="${package##* }" - package="${package% *}" + if [ "${git_revision}" = "${package}" ]; then + # build master did not tell us a sub_pkgrel + git_revision="${mod_git_revision}" + mod_git_revision="${repository}" + repository="${sub_pkgrel}" + sub_pkgrel='0' + else + package="${package% *}" + fi if [ "${git_revision##*-}" = 'HEAD' ]; then git_revision=$( @@ -233,7 +243,7 @@ while [ "${count}" -ne 0 ]; do tmp_dir=$(mktemp -d "${work_dir}/tmp.XXXXXX") trap bail_out EXIT - extract_source_directory "${git_repo}" "${git_revision}" "${mod_git_revision}" "${tmp_dir}" + extract_source_directory "${git_repo}" "${git_revision}" "${mod_git_revision}" "${tmp_dir}" "${sub_pkgrel}" cd "${tmp_dir}" success=false |