Skip to content
Snippets Groups Projects
  1. Apr 25, 2013
  2. Apr 02, 2013
    • Guido Trotter's avatar
      check-news: fix behavior on invalid date line · 9495d2f2
      Guido Trotter authored
      
      Before:
      $ ./autotools/check-news < ./NEWS
      Traceback (most recent call last):
        File "./autotools/check-news", line 150, in <module>
          main()
        File "./autotools/check-news", line 120, in main
          parsed_ts = time.mktime(time.strptime(m.group("date"), "%d %b %Y"))
      AttributeError: 'NoneType' object has no attribute 'group'
      
      After:
      $ ./autotools/check-news < ./NEWS
      Line 8: Invalid release line
      
      This happened because the error function just updates an error log,
      rather than bailing out immediately.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      9495d2f2
  3. Feb 20, 2013
  4. May 22, 2012
  5. Jan 06, 2012
  6. Aug 19, 2011
  7. Jan 18, 2011
Loading