File: check-vendored.sh

package info (click to toggle)
python-falcon 3.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,204 kB
  • sloc: python: 28,455; makefile: 184; sh: 139; javascript: 66
file content (17 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

# Fail on errors
set -e

_EXPECTED_VERSION_MIMEPARSE="1.6.0"

pip install --upgrade python-mimeparse

_VERSION_OUTPUT=$(pip show python-mimeparse | grep ^Version: )
if [[ $_VERSION_OUTPUT == "Version: $_EXPECTED_VERSION_MIMEPARSE" ]]; then
	echo "Latest version of python-mimeparse has not changed ($_EXPECTED_VERSION_MIMEPARSE)"
    exit 0
fi

echo "Latest version of python-mimeparse is newer than expected."
exit 1