Fixes #44777
authorkarltk <karltk@gentoo.org>
Fri, 10 Sep 2004 09:39:47 +0000 (09:39 -0000)
committerkarltk <karltk@gentoo.org>
Fri, 10 Sep 2004 09:39:47 +0000 (09:39 -0000)
svn path=/; revision=131

trunk/src/gensync/ChangeLog
trunk/src/gensync/gensync

index 2739cd2525676713a436371418be8a33e520077f..7ec2b863e52da3aefa9441fe6c3f977923e65640 100644 (file)
@@ -4,6 +4,8 @@
         <adam_ashley@softhome.net>, fixes #45079.
        * Fixed config dir scanning, suggested by burrelln@colorado.edu,
        fixes #47390.
+       * Applied config file parser fix by Mamoru KOMACHI <usata@gentoo.org>,
+       fixes #44777.
 
 2004-02-08 Karl Trygve Kalleberg <karltk@gentoo.org>
        * Initial import
index bfc9b937e1f590cf9a38a90fdca75f4a3a732698..493ccb8cf6f60af1254d5984a97cf8076469a673 100755 (executable)
@@ -39,7 +39,8 @@ class ConfigDefaults:
                                if x.find("=") == -1 or \
                                       (len(x) and x[0] == "#"):
                                        continue
-                               (attrib, value) = x.split()
+                               (attrib, value) = x.split('=')
+                               attrib = attrib.strip().strip('"')
                                value = value.strip().strip('"')
                                if attrib == "rsync_timeout":
                                        self.rsync_timeout = value
@@ -91,7 +92,8 @@ class SyncSource:
                        if x.find("=") == -1 or \
                               (len(x) and x[0] == "#"):
                                continue
-                       attrib,value = x.split("=")
+                       (attrib, value) = x.split("=")
+                       attrib = attrib.strip().strip('"')
                        value = value.strip().strip('"')
                        if attrib == "id":
                                self.id = value