Yes it was.  I saw similar code in the openbsd, and msi package providers.  Is there a common place for helper methods like these?  And I'll update the code to update the copied comments.