From 1be16705b9e88350e77109a7330949011e4d9e3e Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Sun, 2 Dec 2007 02:28:07 +0000 Subject: handle single available revisions [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4024 ce84e21b-d406-0410-9b95-82705330c041 --- tools/stable-check.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/stable-check.py') diff --git a/tools/stable-check.py b/tools/stable-check.py index dbd062330..0f9a2960f 100755 --- a/tools/stable-check.py +++ b/tools/stable-check.py @@ -12,7 +12,10 @@ if __name__ == '__main__': avail = os.popen('svnmerge avail').read().strip() if not avail: raise SystemExit, 0 - start, stop = [int(x) for x in avail.split('-')] + if '-' in avail: + start, stop = [int(x) for x in avail.split('-')] + else: + start = stop = int(avail) bf = [] other = [] -- cgit v1.2.3-1-g7c22