[PATCH] offlineimap.py: fix version number

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Dec 13 18:33:59 GMT 2010


On Mon, 13 Dec 2010 19:25:11 +0100, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:
> The release number information is hard coded. Here is a quick fix to update it
> to the last release.
> 
> We may introduce more elaborated stuff to define the release dynamically.
> 
> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
> ---
>  offlineimap.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/offlineimap.py b/offlineimap.py
> index 566bd36..9b92b3c 100755
> --- a/offlineimap.py
> +++ b/offlineimap.py
> @@ -20,4 +20,4 @@
>  from offlineimap import OfflineImap
>  
>  offlineimap = OfflineImap()
> -offlineimap.startup('6.2.0')
> +offlineimap.startup('6.3.1')

The version is hardcoded but not in this place :-). This is just a check
that we indeed startup the correct offlineimap version. This patch will
fail in offlineimap.startup():

        assert versionno == version.versionstr, "Revision of main program (%s) does not match that of library (%s).  Please double-check your PYTHONPATH and installation locations." % (versionno, version.versionstr)

Sebastian




More information about the OfflineIMAP-project mailing list