]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-pythondeps.patch
- added pythondeps patch (less bash deps, support *scriptdir)
[packages/rpm.git] / rpm-pythondeps.patch
CommitLineData
292b1677
JB
1--- rpm-4.4.1/scripts/pythondeps.sh.orig 2004-12-07 01:57:55.000000000 +0100
2+++ rpm-4.4.1/scripts/pythondeps.sh 2005-02-27 17:35:52.860244432 +0100
3@@ -1,4 +1,4 @@
4-#!/bin/bash
5+#!/bin/sh
6
7 [ $# -ge 1 ] || {
8 cat > /dev/null
9@@ -9,12 +9,12 @@
10 case $1 in
11 -P|--provides)
12 shift
13- grep "/usr/bin/python\*\$" >& /dev/null && echo "python(abi) = ${PYVER}"
14+ grep -q "/usr/bin/python\*\$" && echo "python(abi) = ${PYVER}"
15 exit 0
16 ;;
17 -R|--requires)
18 shift
19- grep "/usr/lib[^/]*/python${PYVER}/" >& /dev/null && echo "python(abi) = ${PYVER}"
20+ grep -q "/usr/\(lib[^/]*\|share\)/python${PYVER}/" && echo "python(abi) = ${PYVER}"
21 exit 0
22 ;;
23 esac
This page took 0.03385 seconds and 4 git commands to generate.