Commit a7452487 authored by Vitaly Lipatov's avatar Vitaly Lipatov

tolocal_anyrepl: fix x86_64 Mandriva convert, add ArchLinux rules

parent 23b39442
......@@ -47,7 +47,17 @@ tolocal_anyrepl()
[ "$NEWRESULT" = "$GREP" ] && return 1
ALTPKGNAME=$GREP
TARGETPKGNAME="$NEWRESULT"
return 0
fi
if [ "$DISTRNAME" = "ArchLinux" ] ; then
local NEWRESULT=`echo $GREP | sed -e "s|^ *\(.*\)-devel *\$|\1|g" | tr "[A-Z]" "[a-z]"`
[ "$NEWRESULT" = "$GREP" ] && return 1
ALTPKGNAME=$GREP
TARGETPKGNAME="$NEWRESULT"
return 0
fi
return 1
}
......
......@@ -80,3 +80,17 @@ echo "Package:"
print_pkgrepl_list
echo "Group:"
print_grprepl_list
DISTRNAME=ArchLinux
PKGVENDOR=archlinux
PKGFORMAT=pkg.gz
DISTRVERSION=2011.08
echo "Replacement files for $PKGVENDOR/$DISTRVERSION (target $PKGFORMAT):"
print_pkgrepl_list
check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb
check_repl libX11 libx11
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