xbps-src: checkvers: simplify output to <pkgname> <version> <srcpkgversion>.
This commit is contained in:
parent
095b1c6a5e
commit
4e69289faf
1 changed files with 2 additions and 4 deletions
|
@ -35,9 +35,9 @@ check_installed_packages()
|
||||||
{
|
{
|
||||||
local f lpkgn lpkgver rv srcpkgver
|
local f lpkgn lpkgver rv srcpkgver
|
||||||
|
|
||||||
msg_normal "Checking for newer packages from srcpkgs, please wait...\n"
|
|
||||||
for f in $(${XBPS_BIN_CMD} list|awk '{print $1}'); do
|
for f in $(${XBPS_BIN_CMD} list|awk '{print $1}'); do
|
||||||
lpkgn=$(${XBPS_PKGDB_CMD} getpkgname ${f})
|
lpkgn=$(${XBPS_PKGDB_CMD} getpkgname ${f})
|
||||||
|
lpkgver=$(${XBPS_PKGDB_CMD} getpkgversion ${f})
|
||||||
|
|
||||||
if [ -r ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template ]; then
|
if [ -r ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template ]; then
|
||||||
. ${XBPS_SRCPKGDIR}/${lpkgn}/template
|
. ${XBPS_SRCPKGDIR}/${lpkgn}/template
|
||||||
|
@ -46,7 +46,6 @@ check_installed_packages()
|
||||||
. ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template
|
. ${XBPS_SRCPKGDIR}/${lpkgn}/${lpkgn}.template
|
||||||
else
|
else
|
||||||
if [ ! -r ${XBPS_SRCPKGDIR}/${lpkgn}/template ]; then
|
if [ ! -r ${XBPS_SRCPKGDIR}/${lpkgn}/template ]; then
|
||||||
msg_warn "Installed package ${f} not available as source pkg, skipping.\n"
|
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
. ${XBPS_SRCPKGDIR}/${lpkgn}/template
|
. ${XBPS_SRCPKGDIR}/${lpkgn}/template
|
||||||
|
@ -59,9 +58,8 @@ check_installed_packages()
|
||||||
${XBPS_CMPVER_CMD} ${f} ${srcpkgver}
|
${XBPS_CMPVER_CMD} ${f} ${srcpkgver}
|
||||||
rv=$?
|
rv=$?
|
||||||
if [ $rv -eq 255 ]; then
|
if [ $rv -eq 255 ]; then
|
||||||
echo "[$XBPS_MASTERDIR] ${f} < ${srcpkgver} [srcpkgs]"
|
echo "${lpkgn} ${lpkgver} ${version}"
|
||||||
fi
|
fi
|
||||||
unset pkgname version revision
|
unset pkgname version revision
|
||||||
done
|
done
|
||||||
msg_normal "done.\n"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue