Author: qboosh                       Date: Sun Feb 27 16:31:29 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- remove bashisms, support *scriptdir

---- Files affected:
SOURCES:
   rpm-pythondeps.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpm-pythondeps.patch
diff -u /dev/null SOURCES/rpm-pythondeps.patch:1.1
--- /dev/null   Sun Feb 27 17:31:29 2005
+++ SOURCES/rpm-pythondeps.patch        Sun Feb 27 17:31:24 2005
@@ -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
================================================================

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to