summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm-4.11.2/pythondeps.sh
blob: 083b174f1753bde1d8f6000473eed02217218b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

[ $# -ge 1 ] || {
    cat > /dev/null
    exit 0
}

case $1 in
-R|--requires)
    shift
    grep "/usr/\(lib[^/]*\|share\)/python[^/]*/" >/dev/null && echo "python"
    exit 0
    ;;
esac

exit 0