Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[fix] Loading only one helper file leads to errors because missing getopts #651
Ran a postinstall on unstable and realized that some regenconf hooks were broken because they use a helper, and getopts wasn't sourced...
Well that's a solution where I just load all helpers instead as in apps. Dunno that's what we want, maybe there's a significant overhead compared to sourcing getopts in each file ?
How to test
Run a postinstall with and without this branch
Some numbers trying on a RPi 2 :
-> 0.03 secs
So I guess the relative difference is huge, but in terms of absolute value I think it's not a big deal to add 1 sec to postinstall for this ...