Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does the control format have an official spec? I too have had to resort to parsing those files with regexes.


It's chapter 5 of the Debian Policy Manual.


Not 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: