diff --git a/common/hooks/post-install/03-remove-empty-dirs.sh b/common/hooks/post-install/03-remove-empty-dirs.sh index be91eee433..4e73f6b34f 100644 --- a/common/hooks/post-install/03-remove-empty-dirs.sh +++ b/common/hooks/post-install/03-remove-empty-dirs.sh @@ -7,4 +7,6 @@ hook() { rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null msg_warn "$pkgver: removed empty dir: ${_dir}\n" done + # Create PKGDESTDIR in case it has been removed previously. + mkdir -p ${PKGDESTDIR} } diff --git a/common/hooks/post-install/01-create-xbps-metadata-scripts.sh b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh similarity index 100% rename from common/hooks/post-install/01-create-xbps-metadata-scripts.sh rename to common/hooks/post-install/04-create-xbps-metadata-scripts.sh diff --git a/common/hooks/post-install/01-create-xbps-vpkg-files.sh b/common/hooks/post-install/04-create-xbps-vpkg-files.sh similarity index 100% rename from common/hooks/post-install/01-create-xbps-vpkg-files.sh rename to common/hooks/post-install/04-create-xbps-vpkg-files.sh