[Bug 245667] [feature request] ports-mgmt/pkg: Determine ports branch of active pkg repo
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 02 Jan 2022 17:06:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245667 --- 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 mod_time=$(ls -l -D '%Y-%m' $tmpfile | awk '{ print $6 }') This provides an account of when the packages were likely last updated rather 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. -- You are receiving this mail because: You are the assignee for the bug.