xbps-src: fix some messages to show correct pkgname/version touple.

This commit is contained in:
Juan RP 2011-10-26 16:59:28 +02:00
parent 1be478b255
commit 4efdddd88e

View file

@ -218,11 +218,11 @@ remove_pkg()
set_tmpl_common_vars
pkg="${subpkg}-${version}"
if [ -d "$XBPS_DESTDIR/${pkg}" ]; then
msg_normal "${pkgver}: removing files from destdir...\n"
msg_normal "${pkg}: removing files from destdir...\n"
rm -rf "$XBPS_DESTDIR/${pkg}"
found=1
else
msg_warn "${pkgver}: not installed in destdir!\n"
msg_warn "${pkg}: not installed in destdir!\n"
fi
# Remove leftover files in $wrksrc.
if [ -f "${wrksrc}/.xbps_do_install_${subpkg}_done" ]; then
@ -233,7 +233,7 @@ remove_pkg()
pkg="${pkgname}-${version}"
if [ -d "$XBPS_DESTDIR/${pkg}" ]; then
msg_normal "${pkgver}: removing files from destdir...\n"
msg_normal "${pkg}: removing files from destdir...\n"
rm -rf "$XBPS_DESTDIR/${pkg}"
found=1
fi
@ -246,7 +246,7 @@ remove_pkg()
if [ -n "$found" ]; then
return 0
else
msg_warn "${pkgver}: not installed in destdir!\n"
msg_warn "${pkg}: not installed in destdir!\n"
fi
fi