Re: ubuntu-releases package

2009-12-06 Thread James Westby
On Mon Nov 23 18:22:55 -0500 2009 Benjamin Drung wrote:
 Am Montag, den 23.11.2009, 16:28 -0500 schrieb James Westby:
  Have you considered making something similar for Debian (though
  it's a problem that bites less there)?
 
 No. unstable will stay unstable. All my uploads to Debian targeted
 unstable (that may differ for security and QA people). What kind of
 information should the debian-release tool offer? What would be the
 benefit of it?

It would be possible to write tools that worked the way they should
when targetting that distribution.

 Would a generic interface be a good idea? A 'release' script return the
 information about the running distro (Debian or Ubuntu).

This would be great for derivatives, they could extend the script and
tools would know how to work with them instantly.

 With an
 parameter -D / --distribution, you could select Debian or Ubuntu.

And if not provided the currently running distribution's information
would be provided?

 'ubuntu-release' would do the same as 'release -D ubuntu' and
 'debian-release' would do the same as 'release -D debian'. Or would this
 be an overkill?

These scripts are overkill for scripted use I think, but would be
good if humans wish to use them.

Thanks,

James

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: ubuntu-releases package

2009-12-06 Thread Benjamin Drung
Am Montag, den 23.11.2009, 16:28 -0500 schrieb James Westby:
 On Sun Nov 22 19:16:57 -0500 2009 Benjamin Drung wrote:
  Introduce a ubuntu-releases package. This package will have a list of
  all known Ubuntu releases. A small script will give you the needed
  information, based on the releases list and the current date. Examples:
 
 I have often thought this would be useful.
 
 My only question would be on the package that it would go in, as a
 whole new package may be unnecessary.

The package needs to be updated every six month via SRU. Therefore it
should be standalone.

 I have a whole bunch of scripts that I would move over to this if
 it was available.

I filed an ITP for Debian [1] and pushed it into a git repository [2].
Have fun with testing.

 Have you considered making something similar for Debian (though
 it's a problem that bites less there)?

It has now a generic interface.

[1] http://bugs.debian.org/559761
[2] http://git.debian.org/?p=collab-maint/release.git

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


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: ubuntu-releases package

2009-12-06 Thread Benjamin Drung
Am Sonntag, den 06.12.2009, 03:53 -0500 schrieb James Westby:
 On Mon Nov 23 18:22:55 -0500 2009 Benjamin Drung wrote:
  Am Montag, den 23.11.2009, 16:28 -0500 schrieb James Westby:
   Have you considered making something similar for Debian (though
   it's a problem that bites less there)?
  
  No. unstable will stay unstable. All my uploads to Debian targeted
  unstable (that may differ for security and QA people). What kind of
  information should the debian-release tool offer? What would be the
  benefit of it?
 
 It would be possible to write tools that worked the way they should
 when targetting that distribution.

The 'release' script is not distro specific.

  Would a generic interface be a good idea? A 'release' script return the
  information about the running distro (Debian or Ubuntu).
 
 This would be great for derivatives, they could extend the script and
 tools would know how to work with them instantly.

It should be now extensible.

  With an
  parameter -D / --distribution, you could select Debian or Ubuntu.
 
 And if not provided the currently running distribution's information
 would be provided?

'release' will point to the distribution's version of the release tool.

  'ubuntu-release' would do the same as 'release -D ubuntu' and
  'debian-release' would do the same as 'release -D debian'. Or would this
  be an overkill?
 
 These scripts are overkill for scripted use I think, but would be
 good if humans wish to use them.

The implementation is different: There are two scripts debian-release
and ubuntu-release. release will be a symlink to one of both.

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


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: ubuntu-releases package

2009-11-23 Thread James Westby
On Sun Nov 22 19:16:57 -0500 2009 Benjamin Drung wrote:
 Introduce a ubuntu-releases package. This package will have a list of
 all known Ubuntu releases. A small script will give you the needed
 information, based on the releases list and the current date. Examples:

I have often thought this would be useful.

My only question would be on the package that it would go in, as a
whole new package may be unnecessary.

I have a whole bunch of scripts that I would move over to this if
it was available.

Have you considered making something similar for Debian (though
it's a problem that bites less there)?

Thanks,

James

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: ubuntu-releases package

2009-11-23 Thread Benjamin Drung
Am Montag, den 23.11.2009, 16:28 -0500 schrieb James Westby:
 On Sun Nov 22 19:16:57 -0500 2009 Benjamin Drung wrote:
  Introduce a ubuntu-releases package. This package will have a list of
  all known Ubuntu releases. A small script will give you the needed
  information, based on the releases list and the current date. Examples:
 
 I have often thought this would be useful.
 
 My only question would be on the package that it would go in, as a
 whole new package may be unnecessary.

A whole new package would be better than integrating into an other
package. When a new series is announced, we can simply update this
package via SRU.

 I have a whole bunch of scripts that I would move over to this if
 it was available.

Ok, then I will write this tool.

 Have you considered making something similar for Debian (though
 it's a problem that bites less there)?

No. unstable will stay unstable. All my uploads to Debian targeted
unstable (that may differ for security and QA people). What kind of
information should the debian-release tool offer? What would be the
benefit of it?

Would a generic interface be a good idea? A 'release' script return the
information about the running distro (Debian or Ubuntu). With an
parameter -D / --distribution, you could select Debian or Ubuntu.
'ubuntu-release' would do the same as 'release -D ubuntu' and
'debian-release' would do the same as 'release -D debian'. Or would this
be an overkill?

'debian-release -d' would always return unstable. 'debian-release -s'
would return squeeze and change from time to time (less often than in
Ubuntu).

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


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


ubuntu-releases package

2009-11-22 Thread Benjamin Drung
Hi,

Install karmic and start packaging. Then you will discover this: dch
will use karmic as default, but new packages target either lucid or
karmic-proposed. lintian does not know lucid. They may be other package,
wich are not aware of lucid. Here is my idea to solve this issue:

Introduce a ubuntu-releases package. This package will have a list of
all known Ubuntu releases. A small script will give you the needed
information, based on the releases list and the current date. Examples:

ubuntu-release
returns the running series (same as lsb_release -sc)

ubuntu-release -d
returns the current development series (now it would be lucid)

ubuntu-release -s
returns the latest stable series (currently it would be karmic)

ubuntu-release --lts
returns the latest stable lts release (currently hardy)

ubuntu-release --supported
returns a list of all supported series

lintian, dch, and other tools would use ubuntu-release instead of using
hardcoded values. Then only one package needs an update, if Mark
announce the next codename. I am willing to write this script and to
maintain it.

What do you think about it?

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


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss