When checking build-deps, use the exact same version of the crate that is already packaged
Ximin Luo
5 years ago
12 | 12 | while read crate ver; do |
13 | 13 | pkgname="${crate//_/-}${ver:+-$ver}" |
14 | 14 | if shouldbuild "build/$pkgname/debian/changelog" "src/$pkgname/debian/changelog"; then |
15 | ./update.sh "$crate" $ver >&2 # TODO: no-overlay-write-back | |
15 | realver="$(sed -nre "s/.*Package .* (.*) from crates.io.*/\1/gp" src/$pkg/debian/changelog | head -n1)" | |
16 | REALVER="$realver" ./update.sh "$crate" $ver >&2 # TODO: no-overlay-write-back | |
16 | 17 | fi |
17 | 18 | if ( cd build && SOURCEONLY=1 ./build.sh "$crate" $ver >&2 ); then |
18 | 19 | ok=1 |