Changeset 615


Ignore:
Timestamp:
10/01/12 10:49:10 (8 years ago)
Author:
bas
Message:

Improved code for detecting which trac version is installed

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r614 r615  
    1 2.X.X
     12.6.2
    22  * Removed '--Orignal message---' from strip_signature_regex. It is not a
    33    signature but a quote. Thanks to Walter Lioen (SARA)
     
    55
    66  * Added support fot trac 1.0, closes #302, #303
     7    Reported by: thomas dot schabetsberger add webtek dot at
     8    Fixed by: Bas van der Vlies
    79
    8102.6.0 (Dedicated to Ian Verhey (RIP) )
  • trunk/email2trac.py.in

    r614 r615  
    26352635        settings['component'] = component
    26362636
    2637     ## Determine major trac version used to be in email2trac.conf
    2638     # Quick hack for 0.12
     2637    ## We are only interested in the major versions
     2638    # 0.12.3 --> 0.12
     2639    # 1.0.2  --> 1.0
    26392640    #
    2640     version = '0.%s' %(trac_version.split('.')[1])
    2641     if version.startswith('0.12'):
    2642         version = '0.12'
    2643     elif version.startswith('0.13'):
    2644         version = '0.13'
    2645     elif trac_version.startswith("1.0"):
    2646         version = '1.0'
     2641    l = trac_version.split('.')
     2642    version = '.'.join(l[0:2])
    26472643
    26482644    logger.debug("Found trac version: %s" %(version))
Note: See TracChangeset for help on using the changeset viewer.