Fixing patch-yang-lib utility.
Change-Id: Ic1e578dc77aab1d6ab6dbd21ddd29546d4d0da1d
diff --git a/tools/dev/bin/patch-yang-libs b/tools/dev/bin/patch-yang-libs
index fbf091c..f4d6f03 100755
--- a/tools/dev/bin/patch-yang-libs
+++ b/tools/dev/bin/patch-yang-libs
@@ -23,6 +23,7 @@
for yl in $(egrep "onos-yang-.*$BVER" $ONOS_ROOT/lib/deps.json); do
n=$(echo $yl | cut -d\" -f2)
m=$(echo $yl | cut -d\" -f4)
+ m=${m/$BVER/$SVER}
j=$(find $YANG_TOOLS_ROOT -name $n-$SVER.jar)
s=yang/$(basename $j)
cp $j $ONOS_ROOT/lib/$s