Date: Wed, 18 Dec 2019 14:52:17 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 242709] freebsd-update updatesready always returns 2 Message-ID: <bug-242709-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242709 Bug ID: 242709 Summary: freebsd-update updatesready always returns 2 Product: Base System Version: 12.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: maxfiedler1988@gmail.com When running "freebsd-update fetch": Looking up update.FreeBSD.org mirrors... 3 mirrors found. Fetching metadata signature for 12.1-RELEASE from update1.freebsd.org... do= ne. Fetching metadata index... done. Inspecting system... done. Preparing to download files... done. The following files will be updated as part of updating to 12.1-RELEASE-p1: ... But when running "freebsd-update updatesready" the output is: No updates are available to install. The correct output should be "There are updates available to install." As far as I can tell the cause is the fact that the script is not using the full path for the compared files. When altering line 3345 in /usr/sbin/freebsd-update to the following: if ! [ -L ${WORKDIR}/${BDHASH}-install ]; then the check is successful and is reporting available updates. The only way for the script to run currently is from inside /var/db/freebsd-update/ as pwd. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242709-227>