]> Zhao Yanbai Git Server - minix.git/commitdiff
Sources are easypack packages, so get them from /software/, where easypack
authorBen Gras <ben@minix3.org>
Wed, 22 Mar 2006 17:06:53 +0000 (17:06 +0000)
committerBen Gras <ben@minix3.org>
Wed, 22 Mar 2006 17:06:53 +0000 (17:06 +0000)
packages are stored on the website.

commands/scripts/packman.sh

index cd0a32e14104bde0cfbd05bd6426e7f7e457b377..43989556db3c56554d29caa7bbacf28926d7fc80 100644 (file)
@@ -12,6 +12,8 @@ TMPDIR=/usr/tmp/packages
 mkdir -p $TMPDIR
 URL1=http://www.minix3.org/packages
 URL2=http://www.minix3.org/beta_packages
+SRCURL1=http://www.minix3.org/software
+SRCURL2=http://www.minix3.org/beta_software
 
 if [ -f "$RC" ]
 then   . "$RC"
@@ -72,17 +74,17 @@ then        if [ -f $LISTFILE ]
                if [ -n "$packno" ]
                then    file="`grep "^$packno|" $LISTFILE | awk -F'|' '{ print $2 }'`"
                        url=$file.tar.bz2
-                       srcfile=$file-src.tar.bz2
+                       srcfile=$file.tar.bz2
                        if [ -n "$url" ]
                        then    echo -n "Try to get source too? (y/N) "
                                read src
                                echo "Trying to fetch from $URL1/$url.."
-                               srcurl=$URL1/$srcfile
+                               srcurl=$SRCURL1/$srcfile
                                if urlget $URL1/$url >$url
                                then    echo Installing.
                                        packit $url
                                else    echo "Trying to fetch from $URL2/$url.."
-                                       srcurl=$URL2/$srcfile
+                                       srcurl=$SRCURL2/$srcfile
                                        if urlget $URL2/$url >$url
                                        then    echo Installing Beta.
                                                packit $url