index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-05 06:25:39 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-05 06:25:39 +0200 |
commit | eca654f372c4b10508121dc056d6c0939d4685b9 (patch) | |
tree | 24aa196fe505b5cf26b38a955caab887e6a38ee6 /bin/db-update | |
parent | 03cf05f8958768c659291bb4aeee7035b61812aa (diff) |
-rwxr-xr-x | bin/db-update | 13 |
diff --git a/bin/db-update b/bin/db-update index 8885c4a..6bdbf7e 100755 --- a/bin/db-update +++ b/bin/db-update @@ -26,6 +26,8 @@ usage() { >&2 echo ' Force movement of package with given id and move nothing else.' >&2 echo ' -h|--help:' >&2 echo ' Show this help and exit.' + >&2 echo ' -i|--ignore-insanity:' + >&2 echo ' Do not abort when insane.' >&2 echo ' -n|--no-action:' >&2 echo ' Only print what would be moved.' >&2 echo ' -p|--progressive:' @@ -38,9 +40,10 @@ usage() { } eval set -- "$( - getopt -o f:hnpw \ + getopt -o f:hinpw \ --long force \ --long help \ + --long ignore-insanity \ --long no-action \ --long progressive \ --long wait \ @@ -49,6 +52,7 @@ eval set -- "$( )" block_flag='-n' +ignore_insanity=false no_action=false progressive=false force_ids='' @@ -67,6 +71,9 @@ do -h|--help) usage 0 ;; + -i|--ignore-insanity) + ignore_insanity=true + ;; -n|--no-action) no_action=true ;; @@ -101,7 +108,9 @@ fi if [ -s "${work_dir}/build-master-sanity" ]; then >&2 echo 'Build master is not sane.' - exit + if ! ${ignore_insanity}; then + exit + fi fi if ! ${no_action}; then |