FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 05-28-2010, 12:11 PM
Hans de Goede
 
Default Fix parsing of ifcfg OPTIONS parameter (#597205)

Ack.

On 05/28/2010 01:37 PM, Radek Vykydal wrote:

---
simpleconfig.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/simpleconfig.py b/simpleconfig.py
index 23fcaaa..d00f52f 100644
--- a/simpleconfig.py
+++ b/simpleconfig.py
@@ -112,9 +112,7 @@ class IfcfgFile(SimpleConfigFile):
line = line.strip()
if line.startswith("#") or line == ':
continue
- fields = line.split('=', 2)
- if len(fields)< 2:
- continue
+ fields = line.split('=', 1)
key = uppercase_ASCII_string(fields[0])
value = fields[1]
# XXX hack


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 06-03-2010, 05:24 PM
Steffen Maier
 
Default Fix parsing of ifcfg OPTIONS parameter (#597205)

Ack.
It worked for me with or without editing the network config with nm-c-e.

On 05/28/2010 01:37 PM, Radek Vykydal wrote:
> ---
> simpleconfig.py | 4 +---
> 1 files changed, 1 insertions(+), 3 deletions(-)
>
> diff --git a/simpleconfig.py b/simpleconfig.py
> index 23fcaaa..d00f52f 100644
> --- a/simpleconfig.py
> +++ b/simpleconfig.py
> @@ -112,9 +112,7 @@ class IfcfgFile(SimpleConfigFile):
> line = line.strip()
> if line.startswith("#") or line == ':
> continue
> - fields = line.split('=', 2)
> - if len(fields) < 2:
> - continue
> + fields = line.split('=', 1)
> key = uppercase_ASCII_string(fields[0])
> value = fields[1]
> # XXX hack

Steffen

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org