Files
Lexi Winter 8e8d878562 packages: Make create-sets.sh more robust during release
Commit d1c176fedf made create-sets.sh exit when it encounters an
error, instead of creating an empty repository.  However, this turns
out to cause some issues:

1. A package not having any sets is considered an error, but during
   the release build, we stuff a 'pkg' package into the repository
   which doesn't have any sets, which causes a failure.  Avoid this
   by simply ignoring the pkg package.

2. No error was printed in this case, which made the problem hard
   to diagnose.  Add an explicit error message.

3. A similar problem occurred running on a repository which already
   contained sets, which is not usually done during the build, but
   is not necessarly an inappropriate thing to do.  Fix this one by
   ignoring set packages when looking for sets.

While here, fix another issue that might cause packages to be wrongly
skipped if the path to the repository contains a '-' character, since
we didn't strip the path before testing the package name.

PR:	294966
Fixes:	d1c176fedf ("packages: Make create-sets.sh more robust")
MFC after:	2 weeks
Reported by:	Alastair Hogge <[email protected]>
Reviewed by:	emaste
Sponsored by:	https://www.patreon.com/bsdivy
Differential Revision:	https://reviews.freebsd.org/D56792
2026-05-05 01:32:34 +01:00
..
2026-04-25 21:23:23 +02:00