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:
parent
4d65c071f9
commit
670df2f277
1 changed files with 2 additions and 2 deletions
|
|
@ -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=''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue