summaryrefslogtreecommitdiff
path: root/bin/seed-build-list
diff options
context:
space:
mode:
Diffstat (limited to 'bin/seed-build-list')
-rwxr-xr-xbin/seed-build-list17
1 files changed, 12 insertions, 5 deletions
diff --git a/bin/seed-build-list b/bin/seed-build-list
index b79be3e..03cc611 100755
--- a/bin/seed-build-list
+++ b/bin/seed-build-list
@@ -7,9 +7,6 @@
# TODO: allow to filter by architecture
-# TODO: doesn't find packages if they were moved between community64 and
-# packages64
-
# shellcheck disable=SC2016
usage() {
>&2 echo ''
@@ -22,6 +19,8 @@ usage() {
>&2 echo ' dependencies that are not available from any real'
>&2 echo ' repository and which cannot be replaced by another,'
>&2 echo ' less stable version of the same package.'
+ >&2 echo ' -f|--force'
+ >&2 echo ' Do not exit if mysql_generate_package_metadata() failed.'
>&2 echo ' -h|--help:'
>&2 echo ' Show this help and exit.'
>&2 echo ' -i|--ignore $pkgbase:'
@@ -49,8 +48,9 @@ tmp_dir=$(mktemp -d 'tmp.seed-build-list.XXXXXXXXXX' --tmpdir)
trap "rm -rf --one-file-system '${tmp_dir:?}'" EXIT
eval set -- "$(
- getopt -o ahi:m:np:u:w \
+ getopt -o afhi:m:np:u:w \
--long auto \
+ --long force \
--long help \
--long ignore: \
--long mirror: \
@@ -65,6 +65,7 @@ eval set -- "$(
auto=false
update=true
wait_for_lock='-n'
+ignore_mysql_generate_package_metadata_errors=false
if [ -r "${base_dir}/conf/seed-ignore-packages" ]; then
sed 's/^/2\t/' "${base_dir}/conf/seed-ignore-packages" >> \
@@ -77,6 +78,9 @@ do
-a|--auto)
auto=true
;;
+ -f|--force)
+ ignore_mysql_generate_package_metadata_errors=true
+ ;;
-h|--help)
usage 0
;;
@@ -556,7 +560,10 @@ if ${update}; then
while read -r pkgbase git_rev mod_git_rev repo; do
printf '%s ' "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" | \
sed 's/ $/\n/'
- mysql_generate_package_metadata "${repository_ids__any_build_list}" "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}"
+ if ! mysql_generate_package_metadata "${repository_ids__any_build_list}" "${pkgbase}" "${git_rev}" "${mod_git_rev}" "${repo}" && \
+ ! ${ignore_mysql_generate_package_metadata_errors}; then
+ exit 2
+ fi
done < \
"${tmp_dir}/update-list"