4 ms·
Does the control format have an official spec? I too have had to resort to parsing those files with regexes.
by tambre 6y ago
Does the control format have an official spec? I too have had to resort to parsing those files with regexes.
- djhaskin987 6y agoNot that I know of, but I have noticed that two newline characters separate package records, and the record is of the form `Key: Value` for each line. As you can see in my code, I've gotten rid of most/all of the regex stuff, because, as we observe, it kills performance.
- JdeBP 6y agoIt's chapter 5 of the Debian Policy Manual.