1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-31 10:24:13 +02:00

- OscConfigParser: don't interpolate continuation lines

This commit is contained in:
Marcus Huewe
2010-11-14 18:53:14 +01:00
parent ca794fe87f
commit 4a8a495849
2 changed files with 8 additions and 3 deletions

View File

@@ -248,7 +248,8 @@ class OscConfigParser(ConfigParser.SafeConfigParser):
if cursect == ConfigParser.DEFAULTSECT:
self._defaults[optname] = "%s\n%s" % (self._defaults[optname], value)
else:
self._sections[cursect]._find(optname).value = '%s\n%s' % (self.get(cursect, optname), value)
# use the raw value here (original version uses raw=False)
self._sections[cursect]._find(optname).value = '%s\n%s' % (self.get(cursect, optname, raw=True), value)
# a section header or option header?
else:
# is it a section header?