xbps-src: verify_rundeps: autoremove matched Add_dependency run lines.
This commit is contained in:
parent
d0871519a0
commit
cea71ae468
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue