aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/65-python.t.sh
blob: 5c81d434959d77681c7ac732f129a1f04fc4a88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# sbopkglint test, must be sourced by sbopkglint (not run standalone).

# PKG, PRGNAM, VERSION, ARCH are set by sbopkglint. also the current
# directory is the root of the installed package tree.

#######################################################################
# check for badly-built python packages that end up named UNKNOWN.
# at some point there will probably be more python checks added here.

find usr/lib*/python* -type d -a -name 'UNKNOWN*' 2>/dev/null > .badpython.$$
if [ -s .badpython.$$ ]; then
	warn "invalid/broken Python module(s): $(cat .badpython.$$)"
fi
rm -f .badpython.$$