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
|
else
|
||||||
soname_list="${soname_list} ${f}"
|
soname_list="${soname_list} ${f}"
|
||||||
fi
|
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
|
if find_rundep ${_rdep}; then
|
||||||
Add_dependency run ${_rdep}
|
Add_dependency run ${_rdep}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue