Commit 5eeabb5f authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

rpmcs: avoid partial Req replacement

libudev -> libudev1 also matched libudev-devel. (Closes #5) Signed-off-by: 's avatarBoris Yumankulov <boria138@altlinux.org>
parent b5e0612d
......@@ -97,7 +97,7 @@ do_repls()
for n in `print_buildreq $i` ; do
toalt_pkgrepl $n || continue
ALLREPLRULES="$ALLREPLRULES
s|(.*Req.*)$REPLRULE1|\1$REPLRULE2|g"
s!(.*Req.*)$REPLRULE1( |,|}|\$)!\1$REPLRULE2\2!g"
[ -n "$VERBOSE" ] && echo "Replace '$REPLRULE1' with '$REPLRULE2'"
done
......@@ -105,7 +105,7 @@ do_repls()
for n in `print_pkgreq $i` ; do
toalt_pkgrepl $n || continue
ALLREPLRULES="$ALLREPLRULES
s|(.*Req.*)$REPLRULE1|\1$REPLRULE2|g"
s!(.*Req.*)$REPLRULE1( |,|}|\$)!\1$REPLRULE2\2!g"
[ -n "$VERBOSE" ] && echo "Replace '$REPLRULE1' with '$REPLRULE2'"
done
......
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