Permalink
Browse files

Fix up usage of pkg+http:// in pkg.conf

  • Loading branch information...
1 parent fbc8e89 commit 2b62dde752bc2e89df6fb2cec3a3fdc31f278297 @kmoore134 kmoore134 committed Nov 26, 2013
@@ -48,7 +48,7 @@ download_cache_packages()
if [ $? -ne 0 ] ; then
exit_err "Failed getting packagesite:"
fi
- pkgUrl="`grep '^packagesite:' /usr/local/etc/pkg.conf | awk '{print $2}'`"
+ pkgUrl="`grep '^packagesite:' /usr/local/etc/pkg.conf | awk '{print $2}' | sed 's|pkg+||g'`"
if [ ! -d "$PKG_CACHEDIR/All" ] ; then
mkdir -p ${PKG_CACHEDIR}/All
@@ -1819,7 +1819,7 @@ set_make_options() {
if [ "$PBI_PKGNGBUILD" ] ; then
echo "Installing pkgng..."
- pkgFetchURL=`grep "^packagesite:" /usr/local/etc/pkg.conf | awk '{print $2}'`
+ pkgFetchURL=`grep "^packagesite:" /usr/local/etc/pkg.conf | awk '{print $2}' | sed 's|pkg+||g'`
cd /tmp
fetch -o pkg.txz ${pkgFetchURL}/Latest/pkg.txz
if [ $? -ne 0 ] ; then exit_err "Failed fetching pkgng..."; fi
@@ -472,7 +472,7 @@ start_major_fbsd_update() {
# Set the new pkg.conf file to the new repo
local arch=`uname -m`
- echo "packagesite: http://pkg.cdn.pcbsd.org/$rel/$arch" >/usr/local/etc/pkg.conf
+ echo "packagesite: pkg+http://pkg.cdn.pcbsd.org/$rel/$arch" >/usr/local/etc/pkg.conf
echo "PUBKEY: /usr/local/etc/pkg-pubkey.cert" >>/usr/local/etc/pkg.conf
echo "PKG_CACHEDIR: /usr/local/tmp" >>/usr/local/etc/pkg.conf
@@ -799,7 +799,7 @@ tar xvf pkg.txz --exclude +MANIFEST --exclude +MTREE_DIRS 2>/dev/null
pkg add pkg.txz
rm pkg.txz
-echo "packagesite: http://pkg.cdn.pcbsd.org/${release}/${arch}" >/usr/local/etc/pkg.conf
+echo "packagesite: pkg+http://pkg.cdn.pcbsd.org/${release}/${arch}" >/usr/local/etc/pkg.conf
echo "PUBKEY: /usr/local/etc/pkg-pubkey.cert" >>/usr/local/etc/pkg.conf
echo "PKG_CACHEDIR: /usr/local/tmp" >>/usr/local/etc/pkg.conf
@@ -832,7 +832,7 @@ rm pkg.txz
mount -t devfs devfs /dev
-echo "packagesite: http://pkg.cdn.pcbsd.org/${release}/${arch}" >/usr/local/etc/pkg.conf
+echo "packagesite: pkg+http://pkg.cdn.pcbsd.org/${release}/${arch}" >/usr/local/etc/pkg.conf
echo "PUBKEY: /usr/local/etc/pkg-pubkey.cert" >>/usr/local/etc/pkg.conf
echo "PKG_CACHEDIR: /usr/local/tmp" >>/usr/local/etc/pkg.conf
pkg install -y pcbsd-utils

0 comments on commit 2b62dde

Please sign in to comment.