diff options
author | gjb <gjb@FreeBSD.org> | 2014-09-22 05:00:55 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2014-09-22 05:00:55 +0000 |
commit | e34350f59ec74f55b80fd526f6096848ef49b6d7 (patch) | |
tree | 60d2129bad8e4dbaa429ae89792093d1aac739b7 /release | |
parent | 0c6538f05f8cd68fc2d8fb8156c7aa95b58228db (diff) | |
download | FreeBSD-src-e34350f59ec74f55b80fd526f6096848ef49b6d7.zip FreeBSD-src-e34350f59ec74f55b80fd526f6096848ef49b6d7.tar.gz |
MFC r271876:
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.
Approved by: re (delphij)
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. |