]> Zhao Yanbai Git Server - minix.git/commitdiff
Take arch+version specific packages List file.
authorBen Gras <ben@minix3.org>
Mon, 8 Jan 2007 15:10:27 +0000 (15:10 +0000)
committerBen Gras <ben@minix3.org>
Mon, 8 Jan 2007 15:10:27 +0000 (15:10 +0000)
commands/scripts/packman.sh

index d97eab591674a7cfb6f2b5dd45fbb7c1a3a97510..71a21ab1236e3c7f16f97f15b6a656afab9c7019 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+TAG=`uname -p`-`uname -r`.`uname -v`
 PACKDIR=`uname -p`/`uname -r`.`uname -v`
 RC=/usr/etc/rc.package
 CDDIR=PACKAGES
@@ -7,8 +8,8 @@ CDMP=/mnt
 CDPACK=${CDMP}/install/packages
 CDSRC=${CDMP}/install/package-sources
 SRC=/usr/src/commands
-LISTFILE=/etc/packages
-LISTURL=http://www.minix3.org/packages/List
+LISTFILE=/etc/packages-$TAG
+LISTURL=http://www.minix3.org/packages/$PACKDIR/List
 TMPDIR=/usr/tmp/packages
 mkdir -p $TMPDIR
 URL1=http://www.minix3.org/packages/$PACKDIR
@@ -133,7 +134,7 @@ then        if [ -f $LISTFILE ]
                y=y
        fi
        if [ "$y" != n -a "$y" != n ]
-       then    echo "Fetching package list."
+       then    echo "Fetching package list from $LISTURL."
                urlget $LISTURL >$TMPF && mv $TMPF $LISTFILE || echo "Update not successful."
        fi
        netpackages=$LISTFILE