File: pre-build.sh

package info (click to toggle)
python-apt 3.0.0
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,064 kB
  • sloc: cpp: 10,310; python: 8,803; makefile: 94; sh: 17
file content (17 lines) | stat: -rwxr-xr-x 483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

echo "Running pre-commit check"
pre-commit run -a

dpkg-checkbuilddeps -d 'python3-debian, python3-feedparser'

echo "updating Ubuntu mirror list from launchpad"
if [ -n "$https_proxy" ]; then
    echo "disabling https_proxy as Python's urllib doesn't support it; see #94130"
    unset https_proxy
fi
utils/get_ubuntu_mirrors_from_lp.py > data/templates/ubuntu.mirrors

echo "updating Debian mirror list"
utils/get_debian_mirrors.py > data/templates/debian.mirrors