Require debcargo 2.1.4 or later
Ximin Luo
5 years ago
32 | 32 | test -x "$DEBCARGO" || abort 1 "debcargo found but not executable: $DEBCARGO" |
33 | 33 | dcver=$($DEBCARGO --version | sed -ne 's/debcargo //p') |
34 | 34 | case $dcver in |
35 | 2.0.*|2.1.0*|2.1.1|2.1.1-*|2.1.2|2.1.2-*) abort 1 "unsupported debcargo version $dcver. try reinstalling with \`cargo install debcargo --force\`";; | |
35 | 2.0.*|2.1.0*|2.1.[123]|2.1.[123]-*) abort 1 "unsupported debcargo version $dcver. try reinstalling with \`cargo install debcargo --force\`";; | |
36 | 36 | 2.1.*) true;; |
37 | 37 | *) abort 1 "unsupported debcargo version: $dcver";; |
38 | 38 | esac |