Bug 1163677 - 'Archive package' not working

(cherry picked from commit 9f2a9cade4f7839b3a9384f3e77bc0ea1eff56c5)