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

Re: Bug#559761: ITP: release -- provides information about the current releases



Am Freitag, den 11.12.2009, 09:17 +0100 schrieb Frank Lin PIAT:
> On Fri, 2009-12-11 at 00:09 +0100, Benjamin Drung wrote:
> > To sum up the naming discussion, there are two possible package names:
> > 
> > * distro-release-info
> > * release-info
> > 
> > The two distro-specific script will be named debian-release-info and
> > ubuntu-release-info. I tend to name the package distro-release-info and
> > the symlinked script release-info.
> 
> The distro specific script should be in /usr/share/release-info/.

No. If I want to know the current stable release of Debian, I have to
run 'debian-release-info -s' regardless which os/distro I run.

> If the distribution specific scripts are in the path, people may tend to
> use them, which isn't portable because one needs to know the local
> distribution before invoking the script.

It depends on the purpose. Portable scripts have to use release-info,
but distribution specific scripts can use $distro-release-info.

> Also, it you be nice if your script was easily extensible by Debian and
> Ubuntu derivatives.

Every derivative can add their own $distro-release-info script. Having
one generic script for all distributions would not work, because there
is not _one_ release policy for all.

> BTW, did you notice that the DebianRelease[1] wiki page has a link per
> distribution release, with EOL dates (?)

Yes, but for buzz to hamm (1.1 to 2.0) the EOL dates are missing.

> I just have a feature request: add some "--foobar-url" options, which
> would return some official urls about that distribution:
>  * Info and support (http://www.debian.org/releases/lenny/ )
>  * Release Notes (http://www.debian.org/releases/lenny/releasenotes )
>  * Errata (http://www.debian.org/releases/stable/errata )
>  * Installation Guide (http://www.debian.org/releases/lenny/installmanual )

Do you have a use case for that? If you want to know these URLs for the
current installed distro, you can use lsb_release instead:

http://www.debian.org/releases/$(lsb_release -cs)/
http://www.debian.org/releases/$(lsb_release -cs)/releasenotes

We would need the equivalent URLs for Ubuntu.

-- 
Benjamin Drung
Ubuntu Developer (www.ubuntu.com) | Debian Maintainer (www.debian.org)

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: