Date: Sun, 02 Jan 2022 17:06:40 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 245667] [feature request] ports-mgmt/pkg: Determine ports branch of active pkg repo Message-ID: <bug-245667-7788-eMdsHSuZBp@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-245667-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-245667-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245667 --- Comment #7 from Jason W. Bacon <jwb@freebsd.org> --- FYI, I recently made an improvement to auto-pkg-branch (part of sysutils/auto-admin) for quarterly packages. Rather than use today's date as it did before, it checks the time stamp on meta.txz: fetch -o $tmpfile http://pkg.freebsd.org/FreeBSD:$major:$arch/quarterly/meta.txz=20=20=20=20= =20=20=20=20 mod_time=3D$(ls -l -D '%Y-%m' $tmpfile | awk '{ print $6 }') This provides an account of when the packages were likely last updated rath= er than assume they're updated every quarter. In fact, quarterly packages for 13.0-RELEASE powerpc64 were never published for 2020Q4, so this improvement prevented my ports tree from being knocked out of sync with the package set. This is still a hack, though, since it's probably possible for meta.txz to = be touched without the packages actually being updated to the current quarter. It would be really nice if we had an officially supported method for determining the packages branch. --=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-245667-7788-eMdsHSuZBp>