[SCM] GUI front-end for Debian Live. branch, master, updated. 612af879898607b23ce2e07fcc9a4f9ae68b5f06

Chris Lamb chris at chris-lamb.co.uk
Tue Mar 4 15:34:29 UTC 2008


The following commit has been merged in the master branch:
commit 05abcbc698eb592d6d96912d593366ef7542472b
Author: Chris Lamb <chris at chris-lamb.co.uk>
Date:   Tue Mar 4 15:30:36 2008 +0000

    Fix bug where incorrect line was being replaced.
    
    Signed-off-by: Chris Lamb <chris at chris-lamb.co.uk>

diff --git a/DebianLive/elements/key_var.py b/DebianLive/elements/key_var.py
index 8c5e55e..6a44582 100644
--- a/DebianLive/elements/key_var.py
+++ b/DebianLive/elements/key_var.py
@@ -48,8 +48,9 @@ class KeyVar(dict):
 
         f = open(self.filename, 'r')
         try:
-            line_no = 1
+            line_no = 0
             for line in f:
+                line_no += 1
 
                 # Check and parse key=value lines
                 match = REGEX.match(line)
@@ -83,7 +84,6 @@ class KeyVar(dict):
                 # Save value
                 dict.__setitem__(self, key, typed_val)
 
-                line_no += 1
         finally:
             f.close()
 

-- 
GUI front-end for Debian Live.



More information about the debian-live-changes mailing list