Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jul 2024 13:52:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 280275] ports-mgmt/pkg: Wrong exit code in periodic script 490.status-pkg-changes
Message-ID:  <bug-280275-32340-ntcBM7Q0xS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-280275-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-280275-32340@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280275

Andre Stoebe <andrestoebe@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #252044|0                           |1
        is obsolete|                            |

--- Comment #3 from Andre Stoebe <andrestoebe@gmail.com> ---
Created attachment 252045
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252045&action=edit
Second revised patch for 490.status-pkg-changes

Or even like this... probably best, because it doesn't overwrite the exit code
of pkg in case of error and both files being the same (for whatever reason).
Sorry for the spam. I'll stop now.

--- /usr/local/etc/periodic/daily/490.status-pkg-changes        2024-05-23
03:05:49.000000000 +0200
+++ 490.status-pkg-changes      2024-07-14 15:48:05.890146000 +0200
@@ -23,6 +23,7 @@
     if [ $? -eq 1 ]; then
        diff -U 0 $bak/${bak_file}2 $bak/${bak_file} | \
            grep '^[-+][^-+]' | sort -k 1.2
+       rc=1
     fi

     return $rc

-- 
You are receiving this mail because:
You are the assignee for the bug.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280275-32340-ntcBM7Q0xS>