https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242709
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: [email protected]
Reporter: [email protected]
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... done.
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.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"