diff options
author | gjb <gjb@FreeBSD.org> | 2014-09-19 17:23:44 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2014-09-19 17:23:44 +0000 |
commit | 463fa9651dc501210f7e1fa0984e64e7cc1c82e9 (patch) | |
tree | b0fe197cc3f8280bf6fb19af3545d8a866da3541 /release | |
parent | db0ea8d341c490aaa21dce2cf62468128b779b4f (diff) | |
download | FreeBSD-src-463fa9651dc501210f7e1fa0984e64e7cc1c82e9.zip FreeBSD-src-463fa9651dc501210f7e1fa0984e64e7cc1c82e9.tar.gz |
When populating the dvd/packages/ directory, create
a symlink to All/pkg-*.txz in the Latest/ directory.
This allows 'pkg bootstrap' to work out-of-box if
the REPOS_DIR environment is properly set.
Tested on: stable/10@r271848
MFC after: 3 days
X-MFC-10.1: yes
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rwxr-xr-x | release/scripts/pkg-stage.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/pkg-stage.sh b/release/scripts/pkg-stage.sh index 4a1ba19..0b99632 100755 --- a/release/scripts/pkg-stage.sh +++ b/release/scripts/pkg-stage.sh @@ -50,6 +50,12 @@ ${PKGCMD} -vv ${PKGCMD} update -f ${PKGCMD} fetch -o ${PKG_REPODIR} -d ${DVD_PACKAGES} +# Create the 'Latest/pkg.txz' symlink so 'pkg bootstrap' works +# using the on-disc packages. +mkdir -p ${PKG_REPODIR}/Latest +(cd ${PKG_REPODIR}/Latest && \ + ln -s ../All/$(${PKGCMD} rquery %n-%v pkg).txz pkg.txz) + ${PKGCMD} repo ${PKG_REPODIR} # Always exit '0', even if pkg(8) complains about conflicts. |