We'd like you to use Launchpad web service version "1.0" in Lucid

Kees Cook kees at ubuntu.com
Tue Mar 30 20:22:57 BST 2010


On Tue, Mar 30, 2010 at 03:15:21PM -0400, James Westby wrote:
> On Tue, 30 Mar 2010 12:07:03 -0700, Kees Cook <kees at ubuntu.com> wrote:
> > Yeah, but it'll totally be 1.6.x by then.  ;)
> > 
> > /me is open to suggestions not involving importing apt_pkg for its version
> > comparison routines.
> 
> If launchpadlib doesn't provide a .version_info attribute then it's
> pretty tough.

Hrm:

version_min = [1,5,7]
if [int(x) for x in launchpadlib.__version__.split('.')] < version_min:
    raise ValueError, "Requires launchpadlib version %s or later (%s in use)" \         % (".".join(version_min), launchpadlib.__version__)


-- 
Kees Cook
Ubuntu Security Team



More information about the ubuntu-devel mailing list