Changed files:
pearize.sh -> 1.52
add_epoch() {
local dep="$@"
local pkg="$1"
- local qual="$2"
local ver="$3"
- if [ "$pkg" == "php-pear-PEAR" ]; then
- pkg="php-pear-PEAR-core"
- fi
-
- case "$pkg" in
- php-pear-PEAR-core)
- ver=$(echo "$ver" | sed -e 's,1.4.0b1,1.4.0-0.b1,')
- ;;
- esac
-
- dep="$pkg $qual $ver"
-
# already have epoch
if [[ "$ver" = *:* ]]; then
echo "$dep"
echo "$requires" | while read tag dep; do
dep=$(add_epoch $dep)
if ! grep -q "^Requires:.*$dep" $preamble; then
+ dep=$(echo "$dep" | sed -e 's,php-pear-PEAR\b,php-pear-PEAR-core,')
sed -i -e "/^BuildRoot/iRequires:\t$dep" $spec
fi
done
else
echo "$spec: No diffs"
fi
-#exit 1