bugfix: parse " with apt urls

This commit is contained in:
Christoph Hartmann 2015-10-23 22:15:10 +02:00
parent 3a5d091efb
commit a407e3b6ce

View file

@ -81,7 +81,7 @@ class AptRepository < Vulcano.resource(1)
active = false if raw_line != line
# eg.: deb http://archive.ubuntu.com/ubuntu/ wily main restricted
parse_repo = /^\s*(\S+)\s+(\S+)\s+(\S+)\s+(.*)$/.match(line)
parse_repo = /^\s*(\S+)\s+"+(\S+)"+\s+(\S+)\s+(.*)$/.match(line)
# check if we got any result and the second param is an url
next if parse_repo.nil? || !parse_repo[2] =~ HTTP_URL_RE