From 9b6008568441a6519c040d52e2814dd855cafed3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Mar 2014 07:54:12 +0100 Subject: [PATCH] common/hooks/post-install: reorder some hooks so that no unnecessary INSTALL/REMOVE scripts are generated. --- common/hooks/post-install/03-remove-empty-dirs.sh | 2 ++ ...s-metadata-scripts.sh => 04-create-xbps-metadata-scripts.sh} | 0 ...1-create-xbps-vpkg-files.sh => 04-create-xbps-vpkg-files.sh} | 0 3 files changed, 2 insertions(+) rename common/hooks/post-install/{01-create-xbps-metadata-scripts.sh => 04-create-xbps-metadata-scripts.sh} (100%) rename common/hooks/post-install/{01-create-xbps-vpkg-files.sh => 04-create-xbps-vpkg-files.sh} (100%) diff --git a/common/hooks/post-install/03-remove-empty-dirs.sh b/common/hooks/post-install/03-remove-empty-dirs.sh index be91eee433d..4e73f6b34fc 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