Changeset ce5bcd0


Ignore:
Timestamp:
04/29/13 06:43:35 (15 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
6f2048f
Parents:
67e6e29
Message:

Speed up the pc-updatemanager, don't need to detect a default
mirror before we check for updates. Also make sure to exclude -pX on
uname -r output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-updatemanager/pc-updatemanager

    rf01aaaf rce5bcd0  
    2323 
    2424# Get the system version we are checking for updates to 
    25 SYSVER="`uname -r`" ; export SYSVER 
     25SYSVER="`uname -r | cut -d '-' -f 1-2`" ; export SYSVER 
    2626 
    2727# Get the system type 
     
    385385  # Set the new pkg.conf file to the new repo 
    386386  local arch=`uname -m` 
    387   echo "packagesite: http://getmirror.pcbsd.org/packages/$rel/$arch" >/usr/local/etc/pkg.conf 
    388   echo "HTTP_MIRROR: http" >>/usr/local/etc/pkg.conf 
     387  echo "packagesite: http://ftp.pcbsd.org/pub/mirror/packages/$rel/$arch" >/usr/local/etc/pkg.conf 
    389388  echo "PUBKEY: /usr/local/etc/pkg-pubkey.cert" >>/usr/local/etc/pkg.conf 
    390389  echo "PKG_CACHEDIR: /usr/local/tmp" >>/usr/local/etc/pkg.conf 
     
    513512 
    514513case $1 in 
    515            check) get_mirror 
    516                   MIRRORURL="$VAL" 
    517                   get_update_file 
     514           check) get_update_file 
    518515                  do_check ;; 
    519516        pkgcheck) checkup_pkgs ;; 
    520517       pkgupdate) update_pkgs "$2" ;; 
    521          install) get_mirror 
    522                   MIRRORURL="$VAL" 
    523                   get_update_file 
     518         install) get_update_file 
    524519                  do_install "${2}" ;; 
    525520        *) show_usage ;; 
Note: See TracChangeset for help on using the changeset viewer.