aboutsummaryrefslogtreecommitdiff
path: root/release/scripts/pkgbase-stage.lua
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@freebsdfoundation.org>2025-07-24 08:43:33 +0000
committerEd Maste <emaste@FreeBSD.org>2025-09-25 12:35:54 +0000
commitf4f0308440d2321fa9172dab1029f16a70289e4e (patch)
tree143c79b7314e83586619850f055c1ad69a74ae4b /release/scripts/pkgbase-stage.lua
parenta15f2c5cc58f403407daf797a2e6963adffa6c2c (diff)
Diffstat (limited to 'release/scripts/pkgbase-stage.lua')
-rwxr-xr-xrelease/scripts/pkgbase-stage.lua18
1 files changed, 4 insertions, 14 deletions
diff --git a/release/scripts/pkgbase-stage.lua b/release/scripts/pkgbase-stage.lua
index 6845e0079b05..80de4ec80d20 100755
--- a/release/scripts/pkgbase-stage.lua
+++ b/release/scripts/pkgbase-stage.lua
@@ -81,28 +81,18 @@ local function main()
-- Determines package subset selected
local media = assert(arg[1])
assert(media == "disc" or media == "dvd")
- -- Local repository to fetch from
- local source = assert(arg[2])
+ -- Directory containing FreeBSD-base repository config
+ local repo_dir = assert(arg[2])
-- Directory to create new repository
local target = assert(arg[3])
- -- =hitespace separated list of all libcompat names (e.g. "32")
+ -- Whitespace separated list of all libcompat names (e.g. "32")
local all_libcompats = assert(arg[4])
-- ABI of repository
local ABI = assert(arg[5])
- assert(os.execute("mkdir -p pkgbase-repo-conf"))
- local f <close> = assert(io.open("pkgbase-repo-conf/FreeBSD-base.conf", "w"))
- assert(f:write(string.format([[
- FreeBSD-base: {
- url: "file://%s",
- enabled: yes
- }
- ]], source)))
- assert(f:close())
-
local pkg = "pkg -o ASSUME_ALWAYS_YES=yes -o IGNORE_OSVERSION=yes " ..
"-o ABI=" .. ABI .. " " ..
- "-o INSTALL_AS_USER=1 -o PKG_DBDIR=./pkgdb -R ./pkgbase-repo-conf "
+ "-o INSTALL_AS_USER=1 -o PKG_DBDIR=./pkgdb -R " .. repo_dir .. " "
assert(os.execute(pkg .. "update"))