Revision 51ef5fe0

b/NEWS
1 1
News
2 2
====
3 3

  
4
Version 2.6.0 beta 1
5
--------------------
4

  
5
Version 2.6.0 beta1
6
-------------------
6 7

  
7 8
*(unreleased)*
8 9

  
9 10
- Deprecated ``admin_up`` field. Instead, ``admin_state`` is introduced,
10 11
  with 3 possible values -- ``up``, ``down`` and ``offline``.
11 12

  
13

  
12 14
Version 2.5.0 rc4
13 15
-----------------
14 16

  
......
326 328
And as usual, various improvements to the error messages, documentation
327 329
and man pages.
328 330

  
331

  
329 332
Version 2.4.1
330 333
-------------
331 334

  
......
836 839
  server endpoint
837 840

  
838 841

  
839
Version 2.2.0 beta 0
840
--------------------
842
Version 2.2.0 beta0
843
-------------------
841 844

  
842 845
*(Released Thu, 17 Jun 2010)*
843 846

  
......
1493 1496
  error handling path called a wrong function name)
1494 1497

  
1495 1498

  
1496
Version 2.0.0 final
1497
-------------------
1499
Version 2.0.0
1500
-------------
1498 1501

  
1499 1502
*(Released Wed, 27 May 2009)*
1500 1503

  
1501 1504
- no changes from rc5
1502 1505

  
1503 1506

  
1504
Version 2.0 release candidate 5
1505
-------------------------------
1507
Version 2.0 rc5
1508
---------------
1506 1509

  
1507 1510
*(Released Wed, 20 May 2009)*
1508 1511

  
......
1512 1515
- make watcher automatically start the master daemon if down
1513 1516

  
1514 1517

  
1515
Version 2.0 release candidate 4
1516
-------------------------------
1518
Version 2.0 rc4
1519
---------------
1517 1520

  
1518 1521
*(Released Mon, 27 Apr 2009)*
1519 1522

  
......
1527 1530
- miscellaneous doc and man pages fixes
1528 1531

  
1529 1532

  
1530
Version 2.0 release candidate 3
1531
-------------------------------
1533
Version 2.0 rc3
1534
---------------
1532 1535

  
1533 1536
*(Released Wed, 8 Apr 2009)*
1534 1537

  
......
1541 1544
  toolchains
1542 1545

  
1543 1546

  
1544
Version 2.0 release candidate 2
1545
-------------------------------
1547
Version 2.0 rc2
1548
---------------
1546 1549

  
1547 1550
*(Released Fri, 27 Mar 2009)*
1548 1551

  
......
1554 1557
- Some documentation fixes and updates
1555 1558

  
1556 1559

  
1557
Version 2.0 release candidate 1
1558
-------------------------------
1560
Version 2.0 rc1
1561
---------------
1559 1562

  
1560 1563
*(Released Mon, 2 Mar 2009)*
1561 1564

  
......
1568 1571
- Fix an issue related to $libdir/run/ganeti and cluster creation
1569 1572

  
1570 1573

  
1571
Version 2.0 beta 2
1572
------------------
1574
Version 2.0 beta2
1575
-----------------
1573 1576

  
1574 1577
*(Released Thu, 19 Feb 2009)*
1575 1578

  
......
1586 1589
- Many other bugfixes and small improvements
1587 1590

  
1588 1591

  
1589
Version 2.0 beta 1
1590
------------------
1592
Version 2.0 beta1
1593
-----------------
1591 1594

  
1592 1595
*(Released Mon, 26 Jan 2009)*
1593 1596

  
......
1800 1803
- Change parsing of lvm commands to ignore stderr
1801 1804

  
1802 1805

  
1803
Version 1.2b3
1804
-------------
1806
Version 1.2 beta3
1807
-----------------
1805 1808

  
1806 1809
*(Released Wed, 28 Nov 2007)*
1807 1810

  
......
1812 1815
- QA updates
1813 1816

  
1814 1817

  
1815
Version 1.2b2
1816
-------------
1818
Version 1.2 beta2
1819
-----------------
1817 1820

  
1818 1821
*(Released Tue, 13 Nov 2007)*
1819 1822

  
b/autotools/check-news
35 35
RELEASED_RE = re.compile(r"^\*\(Released (?P<day>[A-Z][a-z]{2}),"
36 36
                         r" (?P<date>.+)\)\*$")
37 37
UNRELEASED_RE = re.compile(r"^\*\(unreleased\)\*$")
38
VERSION_RE = re.compile(r"^Version \d+(\.\d+)+( (beta|rc)\d+)?$")
38 39

  
39 40

  
40 41
def main():
......
45 46

  
46 47
  prevline = None
47 48
  expect_date = False
49
  count_empty = 0
48 50

  
49 51
  for line in fileinput.input():
50 52
    line = line.rstrip("\n")
51 53

  
54
    if VERSION_RE.match(line):
55
      if count_empty != 2:
56
        raise Exception("Line %s: Missing 2 empty lines before %s" %
57
                        (fileinput.filelineno(), line))
58

  
59
    if UNRELEASED_RE.match(line) or RELEASED_RE.match(line):
60
      if count_empty != 1:
61
        raise Exception("Line %s: Missing 1 empty line before %s" %
62
                        (fileinput.filelineno(), line))
63

  
64
    if line:
65
      count_empty = 0
66
    else:
67
      count_empty += 1
68

  
52 69
    if DASHES_RE.match(line):
53
      if not prevline.startswith("Version "):
54
        raise Exception("Line %s: Invalid title" % (fileinput.filelineno() - 1))
70
      if not VERSION_RE.match(prevline):
71
        raise Exception("Line %s: Invalid title" %
72
                        (fileinput.filelineno() - 1))
73
      if len(line) != len(prevline):
74
        raise Exception("Line %s: Invalid dashes length" %
75
                        (fileinput.filelineno()))
55 76
      expect_date = True
56 77

  
57 78
    elif expect_date:

Also available in: Unified diff