1
0
Fork 0
forked from mirrors/openup

Do not through an error when we check for old binpatches and no binpatch is installed.

This commit is contained in:
Antoine Jacoutot 2014-01-16 09:25:02 +01:00
commit 08928ff242

4
openup
View file

@ -155,8 +155,8 @@ check_openupd() {
# modify nor error out on installed files from newer release/binpatch) # modify nor error out on installed files from newer release/binpatch)
rm_old_bp() { rm_old_bp() {
local _bp local _bp
local _BPDB=$(ls -d /var/db/binpatch/{binpatch-,}[0-9]* |grep -v ${_REL}) local _BPDB=$(ls -d /var/db/binpatch/{binpatch-,}[0-9]* 2>/dev/null |grep -v ${_REL})
local _BPPKG=$(ls -d /var/db/pkg/binpatch* |grep -v binpatch${_REL_INT}) local _BPPKG=$(ls -d /var/db/pkg/binpatch* 2>/dev/null |grep -v binpatch${_REL_INT})
if [ -n "${_BPPKG}" -o -n "${_BPDB}" ]; then if [ -n "${_BPPKG}" -o -n "${_BPDB}" ]; then
pr_bigarrow "Removing old release binpatch entries" pr_bigarrow "Removing old release binpatch entries"
fi fi