]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- remove bashisms, support *scriptdir
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 27 Feb 2005 16:31:24 +0000 (16:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-pythondeps.patch -> 1.1

rpm-pythondeps.patch [new file with mode: 0644]

diff --git a/rpm-pythondeps.patch b/rpm-pythondeps.patch
new file mode 100644 (file)
index 0000000..f34f6dc
--- /dev/null
@@ -0,0 +1,23 @@
+--- rpm-4.4.1/scripts/pythondeps.sh.orig       2004-12-07 01:57:55.000000000 +0100
++++ rpm-4.4.1/scripts/pythondeps.sh    2005-02-27 17:35:52.860244432 +0100
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ [ $# -ge 1 ] || {
+     cat > /dev/null
+@@ -9,12 +9,12 @@
+ case $1 in
+ -P|--provides)
+     shift
+-    grep "/usr/bin/python\*\$" >& /dev/null && echo "python(abi) = ${PYVER}"
++    grep -q "/usr/bin/python\*\$" && echo "python(abi) = ${PYVER}"
+     exit 0
+     ;;
+ -R|--requires)
+     shift
+-    grep "/usr/lib[^/]*/python${PYVER}/" >& /dev/null && echo "python(abi) = ${PYVER}"
++    grep -q "/usr/\(lib[^/]*\|share\)/python${PYVER}/" && echo "python(abi) = ${PYVER}"
+     exit 0
+     ;;
+ esac
This page took 0.091418 seconds and 4 git commands to generate.