Commit 944ff741 authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent 067b51fc
...@@ -72,11 +72,11 @@ tolocal_anyrepl() ...@@ -72,11 +72,11 @@ tolocal_anyrepl()
for i in $@ ; do for i in $@ ; do
REPLRULE=`grep -v "^#" "$i" 2>/dev/null | grep -- "^ *$GREP *|" | sed -e "$WARULES" | head -n1` REPLRULE=`grep -v "^#" "$i" 2>/dev/null | grep -- "^ *$GREP *|" | sed -e "$WARULES" | head -n1`
# For broken rule # For broken rule
echo $REPLRULE | grep "|" >/dev/null || REPLRULE="" rhas "$REPLRULE" "|" || REPLRULE=""
#REPLRULE=`echo $REPLRULE | sed -r -e 's,|,!,g'` #REPLRULE=`echo $REPLRULE | sed -r -e 's,|,!,g'`
ALTPKGNAME=`echo $REPLRULE | cut -d"|" -f1 | sed -e "s|\+|\\\\\+|g"` ALTPKGNAME=`echo $REPLRULE | cut -d"|" -f1 | sed -e "s|\+|\\\\\+|g"`
TARGETPKGNAME=`echo $REPLRULE | cut -d"|" -f2 | sed -e "s|\+|\\\\\+|g"` TARGETPKGNAME=`echo $REPLRULE | cut -d"|" -f2 | sed -e "s|\+|\\\\\+|g"`
test -n "$REPLRULE" && TARGETPKGNAME=$(add_32bit_requires $TARGETPKGNAME) && return 0 test -n "$REPLRULE" && TARGETPKGNAME=$(add_32bit_requires "$TARGETPKGNAME") && return 0
done done
# Part of local hack # Part of local hack
...@@ -105,7 +105,7 @@ tolocal_anyrepl() ...@@ -105,7 +105,7 @@ tolocal_anyrepl()
FIXNEWRESULT=$(add_32bit_requires $NEWRESULT) FIXNEWRESULT=$(add_32bit_requires $NEWRESULT)
ALTPKGNAME=$GREP ALTPKGNAME="$GREP"
TARGETPKGNAME="$FIXNEWRESULT" TARGETPKGNAME="$FIXNEWRESULT"
# return if no chance to replace # return if no chance to replace
[ "$FIXNEWRESULT" = "$GREP" ] && return 1 [ "$FIXNEWRESULT" = "$GREP" ] && return 1
......
...@@ -99,7 +99,7 @@ check_repl libX11-devel libX11 ...@@ -99,7 +99,7 @@ check_repl libX11-devel libX11
############################# Fedora ########################## ############################# Fedora ##########################
DISTRNAME=Fedora DISTRNAME=Fedora
PKGVENDOR=fedora PKGVENDOR=fedora
DISTRVERSION=17 DISTRVERSION=21
BUILDARCH=x86_64 BUILDARCH=x86_64
PKGFORMAT=rpm PKGFORMAT=rpm
...@@ -118,5 +118,22 @@ check_repl fontconfig-devel "fontconfig-devel" ...@@ -118,5 +118,22 @@ check_repl fontconfig-devel "fontconfig-devel"
check_repl unknown-devel "unknown-devel" check_repl unknown-devel "unknown-devel"
check_repl rpm-build-compat rpm-build-altlinux-compat check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb1-devel check_repl libusb-devel libusbx-devel
############################# SUSE ##########################
BUILDNAME=wine
DISTRNAME=SUSE
PKGVENDOR=suse
DISTRVERSION=12.3
BUILDARCH=x86_64
PKGFORMAT=rpm
echo
echo "Replacement files for $PKGVENDOR/$DISTRVERSION (target $PKGFORMAT):"
print_pkgrepl_list
check_repl libgphoto2-devel "libgphoto2-devel"
check_repl libgphoto2-6 "libgphoto2-6-32bit"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment