summaryrefslogtreecommitdiff
path: root/trunk/src/gensync
diff options
context:
space:
mode:
authorkarltk <karltk@gentoo.org>2004-09-10 09:39:47 +0000
committerkarltk <karltk@gentoo.org>2004-09-10 09:39:47 +0000
commit7d0a480fe4033847c0ed31ba4673f1294ca075c7 (patch)
tree2be2b172cc549c8fde89d9b4dbc6ebe0a229f147 /trunk/src/gensync
parentdd097414d04a8420484e5be647ee4fd12d1254a1 (diff)
downloadgentoolkit-7d0a480fe4033847c0ed31ba4673f1294ca075c7.tar.gz
Fixes #44777
svn path=/; revision=131
Diffstat (limited to 'trunk/src/gensync')
-rw-r--r--trunk/src/gensync/ChangeLog2
-rwxr-xr-xtrunk/src/gensync/gensync6
2 files changed, 6 insertions, 2 deletions
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 @@
<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
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