xbps-src: speed up a bit check_installed_packages().
This commit is contained in:
parent
0eb0305682
commit
9cebc1a2d0
1 changed files with 8 additions and 1 deletions
|
@ -25,6 +25,12 @@
|
||||||
#
|
#
|
||||||
# Check installed package versions against the source packages repository.
|
# Check installed package versions against the source packages repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# A simple wrapper to speed it up a bit.
|
||||||
|
Add_dependency() {
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
check_installed_packages()
|
check_installed_packages()
|
||||||
{
|
{
|
||||||
local f lpkgn lpkgver rv srcpkgver
|
local f lpkgn lpkgver rv srcpkgver
|
||||||
|
@ -41,6 +47,7 @@ check_installed_packages()
|
||||||
. ${XBPS_SRCPKGDIR}/${lpkgn}/template
|
. ${XBPS_SRCPKGDIR}/${lpkgn}/template
|
||||||
if [ -r ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template ]; then
|
if [ -r ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template ]; then
|
||||||
unset revision
|
unset revision
|
||||||
|
sourcepkg=$pkgname
|
||||||
. ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template
|
. ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template
|
||||||
fi
|
fi
|
||||||
if [ -n "$revision" ]; then
|
if [ -n "$revision" ]; then
|
||||||
|
@ -53,7 +60,7 @@ check_installed_packages()
|
||||||
if [ $rv -eq 255 ]; then
|
if [ $rv -eq 255 ]; then
|
||||||
echo "[$XBPS_MASTERDIR] ${f} < ${srcpkgver} [srcpkgs]"
|
echo "[$XBPS_MASTERDIR] ${f} < ${srcpkgver} [srcpkgs]"
|
||||||
fi
|
fi
|
||||||
reset_tmpl_vars
|
unset pkgname version revision
|
||||||
done
|
done
|
||||||
msg_normal "done.\n"
|
msg_normal "done.\n"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue