GNOME Bugzilla – Bug 666086
Read & fill 1 line of unattended files at time
Last modified: 2016-03-31 14:00:12 UTC
This is the only easy way to ensure we don't end-up getting a variable split in separate reads and therefore not getting substituted.
Created attachment 203339 [details] [review] Read & fill 1 line of unattended files at time This is the only easy way to ensure we don't end-up getting a variable split in separate reads and therefore not getting substituted.
Review of attachment 203339 [details] [review]: see comment, ack otherwise ::: src/unattended-installer.vala @@ +292,3 @@ cancellable); + var data_stream = new DataInputStream (input_stream); + data_stream.newline_type = DataStreamNewlineType.ANY; why not setting it here to the expected value?
(In reply to comment #2) > Review of attachment 203339 [details] [review]: > > see comment, ack otherwise > > ::: src/unattended-installer.vala > @@ +292,3 @@ > cancellable); > + var data_stream = new DataInputStream (input_stream); > + data_stream.newline_type = DataStreamNewlineType.ANY; > > why not setting it here to the expected value? Don't see a need to be strict on parsing as its pretty easy to mess-up the CRLF when editting the template file on Linux (I'm sure I'll be doing that mistake and then waste hours finding out why unattended install isn't working anymore :)).
ACK?
ack
Attachment 203339 [details] pushed as f17f7d1 - Read & fill 1 line of unattended files at time