From 4ef858632b48f458e222f7b5aece898d76d0c294 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sun, 18 Sep 2011 22:52:11 -0500 Subject: [PATCH] script/makepkg: remove possibly stale temporary directories before starting port_save_config --- script/makepkg | 1 + 1 file changed, 1 insertion(+) diff --git a/script/makepkg b/script/makepkg index 5e9e44d..1184012 100755 --- a/script/makepkg +++ b/script/makepkg @@ -357,6 +357,7 @@ port_load_config() { # Dump port build options to directory port_save_config() { meh "port save-config" + rm -Rf "${conf_dir}/port.options.tmp" "${conf_dir}/port.options.old" mkdir -p "${conf_dir}/port.options.tmp" cheval "cd /var/db/ports; find . -type d -o -type f -name options | cpio -oHnewc" | ( cd "${conf_dir}/port.options.tmp"; cpio -i ) || wtf "port safe-config failed" mv -f "${conf_dir}/port.options" "${conf_dir}/port.options.old" && \ -- 2.42.0