BZ1163672: Cannot copy a package

(cherry picked from commit 51764ae8ab46b0ce447606f892d60d4518a0ad06)