Fixed bug that parsed description fields incorrectly

Example:

Description-en: 389 Directory Server suite - server
Based on the Lightweight Directory Access Protocol (LDAP), the 389
Directory Server is designed to manage large directories of users and
resources robustly and scalably.
.
Its key features include:
* four-way multi-master replication;
* great scalability;
* extensive documentation;
* Active Directory user and group synchronization;
* secure authentication and transport;
* support for LDAPv3;
* graphical management console;
* on-line, zero downtime update of schema, configuration, and
    in-tree Access Control Information.

The "Its key features include:" was mistaken as a key.
This commit is contained in:
Christoph Haas 2016-06-29 10:43:01 +02:00
parent 4d65c071f9
commit 670df2f277

View file

@ -101,10 +101,10 @@ module DebImporter
name=value=''
data.each_line do |line|
case line
when /^(.+?): (.+)/ # "Key: Value"
when /^(\S+?): (.+)/ # "Key: Value"
fields[name.to_sym]=value unless value.empty?
name,value=$1,$2
when /^(.+?):$/ # "Key:" (start of multi-line entry without value in line)
when /^(\S+?):$/ # "Key:" (start of multi-line entry without value in line)
fields[name.to_sym]=value unless value.empty?
name=$1
value=''