Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 05:00:55 +0000 (UTC)
From:      Glen Barber <gjb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r271943 - stable/10/release/scripts
Message-ID:  <201409220500.s8M50tjp032788@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Mon Sep 22 05:00:55 2014
New Revision: 271943
URL: http://svnweb.freebsd.org/changeset/base/271943

Log:
  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

Modified:
  stable/10/release/scripts/pkg-stage.sh
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/release/scripts/pkg-stage.sh
==============================================================================
--- stable/10/release/scripts/pkg-stage.sh	Mon Sep 22 01:17:48 2014	(r271942)
+++ stable/10/release/scripts/pkg-stage.sh	Mon Sep 22 05:00:55 2014	(r271943)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409220500.s8M50tjp032788>