fix packaging functions

Should have done a slightly more thorough test of this...



git-svn-id: file:///srv/repos/svn-packages/svn@223601 eb2447ed-0c53-47e4-bac8-5bc4a241df78