Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2014 17:00:23 +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: r266658 - stable/10/release/scripts
Message-ID:  <201405251700.s4PH0N03054473@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gjb
Date: Sun May 25 17:00:22 2014
New Revision: 266658
URL: http://svnweb.freebsd.org/changeset/base/266658

Log:
  MFC r266553, r266554:
  
  r266553:
    Add forward-compatibility glue with pkg-1.3:
     - Use ASSUME_ALWAYS_YES=YES instead of ASSUME_ALWAYS_YES=1
       since pkg-1.3 expects "yes" or "true" values.
     - Before exporting PKG_ABI, strip extra characters from what
       is parsed from 'pkg -vv'.  This causes problems further down
       when creating the packages directory for inclusion on the
       dvd1.iso.  Previously PKG_ABI would be 'freebsd:9:x86:64',
       but now is '"freebsd:9:x86:64";' in pkg-1.3.
  
  r266554:
    Disable the main FreeBSD pkg(7) repositories in the dvd
    repository configuration to avoid fetching from upstream
    in case there may be conflicts.
  
  Sponsored by:	The FreeBSD Foundation

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

Modified: stable/10/release/scripts/FreeBSD_install_cdrom.conf
==============================================================================
--- stable/10/release/scripts/FreeBSD_install_cdrom.conf	Sun May 25 16:48:12 2014	(r266657)
+++ stable/10/release/scripts/FreeBSD_install_cdrom.conf	Sun May 25 17:00:22 2014	(r266658)
@@ -10,3 +10,7 @@ FreeBSD_install_cdrom: {
   enabled: yes
 }
 
+FreeBSD: {
+  enabled: no
+}
+

Modified: stable/10/release/scripts/pkg-stage.sh
==============================================================================
--- stable/10/release/scripts/pkg-stage.sh	Sun May 25 16:48:12 2014	(r266657)
+++ stable/10/release/scripts/pkg-stage.sh	Sun May 25 17:00:22 2014	(r266658)
@@ -5,7 +5,7 @@
 
 set -e
 
-export ASSUME_ALWAYS_YES=1
+export ASSUME_ALWAYS_YES="YES"
 export PKG_DBDIR="/tmp/pkg"
 export PERMISSIVE="YES"
 export REPO_AUTOUPDATE="NO"
@@ -40,7 +40,10 @@ if [ ! -x /usr/local/sbin/pkg ]; then
 	/usr/bin/make -C /usr/ports/ports-mgmt/pkg install clean
 fi
 
-export PKG_ABI=$(pkg -vv | grep ^ABI | awk '{print $3}')
+PKG_ABI=$(pkg -vv | grep ^ABI | awk '{print $3}')
+PKG_ABI="${PKG_ABI%\";}"
+PKG_ABI="${PKG_ABI#\"}"
+export PKG_ABI
 export PKG_CACHEDIR="dvd/packages/${PKG_ABI}"
 
 /bin/mkdir -p ${PKG_CACHEDIR}



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