]> thyrsus.com Git - freecode-submit.git/commitdiff
Make 'freecode-submit --no-stdin --project rednotebook --version 1.8.0' work.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 24 Dec 2013 11:53:35 +0000 (06:53 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 24 Dec 2013 11:53:35 +0000 (06:53 -0500)
It was throwing a spurious error before.

NEWS
freecode-submit

diff --git a/NEWS b/NEWS
index 0aa4bb13bbff3739479ada689e270c07d5caa6a7..6febd50ea85cf89b4ba025c43fe17ea86c38ed40 100644 (file)
--- 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.
index cd68df2850106dc2d800e63930d0fbda6ffe0132..5b2ad312e204a388b7feb2db7be28e8c41364b3e 100755 (executable)
@@ -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: