Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/pkgbase-stage.lua
| Context not available. | |||||
| local ABI = assert(arg[5]) | local ABI = assert(arg[5]) | ||||
| -- pkgdb to use | -- pkgdb to use | ||||
| local PKGDB = assert(arg[6]) | local PKGDB = assert(arg[6]) | ||||
| -- PKG(1) needs OSVERSION defined together with -o ABI | |||||
| local OSVERSION = capture("pkg config OSVERSION") | |||||
| local pkg = "pkg -o ASSUME_ALWAYS_YES=yes -o IGNORE_OSVERSION=yes " .. | local pkg = "pkg -o ASSUME_ALWAYS_YES=yes -o IGNORE_OSVERSION=yes " .. | ||||
| "-o ABI=" .. ABI .. " " .. | "-o ABI=" .. ABI .. " -o OSVERSION=" .. OSVERSION .. " " .. | ||||
| "-o INSTALL_AS_USER=1 -o PKG_DBDIR=" .. PKGDB .. " -R " .. repo_dir .. " " | "-o INSTALL_AS_USER=1 -o PKG_DBDIR=" .. PKGDB .. " -R " .. repo_dir .. " " | ||||
| assert(os.execute(pkg .. "update")) | assert(os.execute(pkg .. "update")) | ||||
| Context not available. | |||||