summaryrefslogtreecommitdiffstats
path: root/etc/inc/pkg-utils.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-07-31 16:06:25 -0400
committerjim-p <jimp@pfsense.org>2012-07-31 16:28:44 -0400
commit0b233932f2ec54ddb47a61240fabf02509116767 (patch)
treebf04cfda8ba24968488c1a3c07bba54d7403d5a4 /etc/inc/pkg-utils.inc
parent712eb7695cba3fb727a3d748bc603a1af0f14001 (diff)
downloadpfsense-0b233932f2ec54ddb47a61240fabf02509116767.zip
pfsense-0b233932f2ec54ddb47a61240fabf02509116767.tar.gz
Try to keep existing files rather than unlinking/replacing when restoring the package libraries during a package removal. Needs some testing, but for NanoBSD it fixes #1049
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r--etc/inc/pkg-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc
index 7e1a718..07d836b 100644
--- a/etc/inc/pkg-utils.inc
+++ b/etc/inc/pkg-utils.inc
@@ -387,8 +387,8 @@ function uninstall_package($pkg_name) {
if(!$builder_package_install) {
$static_output .= "Cleaning up... ";
update_output_window($static_output);
- exec("/usr/bin/tar xzPfU /tmp/pkg_libs.tgz -C /");
- exec("/usr/bin/tar xzPfU /tmp/pkg_bins.tgz -C /");
+ exec("/usr/bin/tar xzPfk /tmp/pkg_libs.tgz -C /");
+ exec("/usr/bin/tar xzPfk /tmp/pkg_bins.tgz -C /");
@unlink("/tmp/pkg_libs.tgz");
@unlink("/tmp/pkg_bins.tgz");
}
OpenPOWER on IntegriCloud