diff options
author | jim-p <jimp@pfsense.org> | 2012-07-31 16:06:25 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-07-31 16:14:06 -0400 |
commit | 1032ab47c73871993e34446b84767efd235cfd05 (patch) | |
tree | e26565aaee9a64acede7fc8b8580caf7ffdb9d91 /etc | |
parent | 01d518e79e9311b1c9eb59568005580b8ed6ab96 (diff) | |
download | pfsense-1032ab47c73871993e34446b84767efd235cfd05.zip pfsense-1032ab47c73871993e34446b84767efd235cfd05.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')
-rw-r--r-- | etc/inc/pkg-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 69fdab2..9e8eba4 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -358,8 +358,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"); } |