svn commit: r271876 - head/release/scripts

Glen Barber gjb at FreeBSD.org
Fri Sep 19 17:23:45 UTC 2014


Author: gjb
Date: Fri Sep 19 17:23:44 2014
New Revision: 271876
URL: http://svnweb.freebsd.org/changeset/base/271876

Log:
  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 at r271848
  MFC after:	3 days
  X-MFC-10.1:	yes
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/release/scripts/pkg-stage.sh

Modified: head/release/scripts/pkg-stage.sh
==============================================================================
--- head/release/scripts/pkg-stage.sh	Fri Sep 19 17:18:27 2014	(r271875)
+++ head/release/scripts/pkg-stage.sh	Fri Sep 19 17:23:44 2014	(r271876)
@@ -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.


More information about the svn-src-all mailing list