always mark dirty when changing version
authorGuillaume Cottenceau <gcottenc@gmail.com>
Mon, 19 Oct 2009 20:21:25 +0000 (22:21 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Mon, 19 Oct 2009 20:21:25 +0000 (22:21 +0200)
bin/booh

index ce91b15..850aade 100644 (file)
--- a/bin/booh
+++ b/bin/booh
@@ -2961,7 +2961,7 @@ def open_file(filename)
         return utf8(_("Corrupted booh file..."))
     end
 
-    if $xmldoc.root.attributes['version'] < '0.9.0'
+    if $xmldoc.root.attributes['version'] < $VERSION
         msg 2, _("File's version %s, booh version now %s, marking dirty") % [ $xmldoc.root.attributes['version'], $VERSION ]
         mark_document_as_dirty
         if $xmldoc.root.attributes['version'] < '0.8.4'