xbps-src: fix some messages to show correct pkgname/version touple.
This commit is contained in:
parent
1be478b255
commit
4efdddd88e
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue