Fix bcl uninstall target

This commit is contained in:
pancake 2016-05-24 03:29:30 +02:00
parent 99d3edd6e4
commit 5142640dab
2 changed files with 8 additions and 3 deletions

View File

@ -7,11 +7,12 @@ R2PM_INSTALL() {
#export PKG_CONFIG_PATH="${R2PM_PREFIX}/lib/pkgconfig"
./configure --prefix="${R2PM_PREFIX}" || exit 1
${MAKE} -C bcl || exit 1
${MAKE} -C bcl install R2PM_PLUGDIR=${R2PM_PLUGDIR} || exit 1
${MAKE} -C bcl install R2PM_PLUGDIR="${R2PM_PLUGDIR}" || exit 1
}
R2PM_UNINSTALL() {
${MAKE} -C bcl uninstall
rm ${R2PM_PLUGDIR}/*bcl* || exit 1
#${MAKE} -C bcl uninstall
}
R2PM_END

View File

@ -177,7 +177,11 @@ r2pm_uninstall() {
ACTION=Uninstall
. "${FILE}"
R2PM_UNINSTALL
R2PM_UNREGISTER
if [ $? = 0 ]; then
R2PM_UNREGISTER
else
echo Oops
fi
else
echo "Unable to find package template for $2." > /dev/stderr
echo "Use -uu to remove it from the database." > /dev/stderr