From: Eric S. Raymond Date: Tue, 24 Dec 2013 11:53:35 +0000 (-0500) Subject: Make 'freecode-submit --no-stdin --project rednotebook --version 1.8.0' work. X-Git-Tag: 2.7~1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=6fb5c219892643bce52b67276813b2bd1f851c7f;p=freecode-submit.git Make 'freecode-submit --no-stdin --project rednotebook --version 1.8.0' work. It was throwing a spurious error before. --- diff --git a/NEWS b/NEWS index 0aa4bb1..6febd50 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ freecode-submit project release news +Repository head + Fix a minor bug when the script is called without data input. + 2.6 @ 2013-09-27 Documentation fixes. Automatically generate an md5 file when shipping this code. diff --git a/freecode-submit b/freecode-submit index cd68df2..5b2ad31 100755 --- a/freecode-submit +++ b/freecode-submit @@ -284,7 +284,7 @@ class FreecodeMetadataFactory: if key not in controls and value != None: data[key] = value del options.__dict__[key] - if data.get("version") != prior_version and not options.delete: + if prior_version and data.get("version") != prior_version and not options.delete: raise FreecodeSessionException("Version conflict in options.") # Hidden flag special handling if "hidden_from_frontpage" in data: