pkgtools/pkg_rolling-replace: Revert unintended change

(Despite an explicit cvs diff of packages to review, ENOTENOUGHCOFFEE
lead to not carrying thatt to the commit.  Sorry for the noise.)
This commit is contained in:
gdt 2024-01-03 12:35:22 +00:00
parent 756550ec88
commit 967b410203
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
# $NetBSD: pkg_rolling-replace.sh,v 1.46 2024/01/03 12:32:59 gdt Exp $
# $NetBSD: pkg_rolling-replace.sh,v 1.47 2024/01/03 12:35:22 gdt Exp $
#<license>
# Copyright (c) 2006 BBN Technologies Corp. All rights reserved.
#
@ -162,7 +162,7 @@ check_packages_mismatched()
for word in $line; do
if [ "$(echo $word | egrep '^[^/]+-[0-9][^-/]*$')" ]; then
if [ -z "$opt_F" ]; then
sudo ${PKG_ADMIN} set mismatch=YES "$word" >/dev/null 2>&1 || {
${PKG_ADMIN} set mismatch=YES "$word" >/dev/null 2>&1 || {
if [ -z "$warned_once" ]; then
echo 1>&2 "$OPC WARNING: mismatch variable not set due to permissions;"
echo 1>&2 "$OPC mismatch status will not persist."