[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cvs commit to boot-floppies/utilities/dbootstrap by dwhedon



On Tue, Apr 10, 2001 at 12:33:01AM -0700, dwhedon@debian.org wrote:
> make woody the default, call it 'stable' even though it isn't really.
> call 'potato' archived, even though it isn't really
> some cleanups so it makes more sense

You can probably determine this automatically nowadays. If you've got
wget and a http mirror, something like:

------
#!/bin/sh

SUITES="stable testing unstable"
MIRROR="http://ftp.debian.org/debian";

rm -f release
for s in $SUITES; do
        wget -O release $MIRROR/dists/$s/Release >/dev/null 2>&1
        if [ ! -s release ]; then continue; fi

        codename=`cat release | sed -n 's/^Codename: //p'`
        status=`cat release | sed -n 's/^Suite: //p'`
        desc=`cat release | sed -n 's/^Description: //p'`
        rm -f release

        echo $s $codename $status $desc
done
------

will tell you:

] stable potato stable Debian GNU/Linux 2.2r2
] testing woody testing Debian Testing distribution - Not Released
] unstable sid unstable Debian Unstable - Not Released

which gives you what path on the ftp site (dists/$1) will get you which
distribution of Debian ($2 = codename, $3 = status), and will give you
a little description too.

Cheers,
aj

-- 
Anthony Towns <aj@humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.

``_Any_ increase in interface difficulty, in exchange for a benefit you
  do not understand, cannot perceive, or don't care about, is too much.''
                      -- John S. Novak, III (The Humblest Man on the Net)



Reply to: