From: karltk Date: Fri, 10 Sep 2004 09:39:47 +0000 (-0000) Subject: Fixes #44777 X-Git-Tag: gentoolkit-0.2.4.3~371 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7d0a480fe4033847c0ed31ba4673f1294ca075c7;p=gentoolkit.git Fixes #44777 svn path=/; revision=131 --- diff --git a/trunk/src/gensync/ChangeLog b/trunk/src/gensync/ChangeLog index 2739cd2..7ec2b86 100644 --- a/trunk/src/gensync/ChangeLog +++ b/trunk/src/gensync/ChangeLog @@ -4,6 +4,8 @@ , fixes #45079. * Fixed config dir scanning, suggested by burrelln@colorado.edu, fixes #47390. + * Applied config file parser fix by Mamoru KOMACHI , + fixes #44777. 2004-02-08 Karl Trygve Kalleberg * Initial import diff --git a/trunk/src/gensync/gensync b/trunk/src/gensync/gensync index bfc9b93..493ccb8 100755 --- a/trunk/src/gensync/gensync +++ b/trunk/src/gensync/gensync @@ -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