xbps-src: verify_rundeps: autoremove matched Add_dependency run lines.

This commit is contained in:
Juan RP 2011-11-11 22:48:42 +01:00
parent d0871519a0
commit cea71ae468

View file

@ -123,6 +123,14 @@ verify_rundeps()
else
soname_list="${soname_list} ${f}"
fi
# Try to remove the line from template
if [ -f $XBPS_SRCPKGDIR/$pkgname/$pkgname.template ]; then
tmplf=$XBPS_SRCPKGDIR/$pkgname/$pkgname.template
else
tmplf=$XBPS_SRCPKGDIR/$pkgname/template
fi
sed -i "/^Add_dependency run ${_rdep}.*$/d" $tmplf
if find_rundep ${_rdep}; then
Add_dependency run ${_rdep}
fi