diff options
author | dteske <dteske@FreeBSD.org> | 2013-07-05 06:52:07 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-07-05 06:52:07 +0000 |
commit | f53995138b4a591d14ebadc723e8258c91b0a0dd (patch) | |
tree | d449e0bce9e001b2c2abc3f558acae42700f47de /usr.sbin/bsdconfig/include | |
parent | d9933606bc7a2a4ec773896e40fe74eccb14b8d2 (diff) | |
download | FreeBSD-src-f53995138b4a591d14ebadc723e8258c91b0a0dd.zip FreeBSD-src-f53995138b4a591d14ebadc723e8258c91b0a0dd.tar.gz |
Add the necessary code to uninstall packages (re-install still pending).
Both scripted access (packageDelete) and UI access have been tested
successfully with a variation of different situations including:
+ Uninstall a package which no other installed package depends
+ Uninstall multiple packages which no other installed packages depend
+ Uninstall multiple packages which depend on each other
+ Similar to above but when ordered removal requires tracing dependencies
+ Purposefully do things like uninstall a package that is not installed
+ Try to uninstall a package which other installed packages still depend
+ Try to uninstall multiple packages which other installed packages depend
+ And many more.
Diffstat (limited to 'usr.sbin/bsdconfig/include')
-rw-r--r-- | usr.sbin/bsdconfig/include/messages.subr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/bsdconfig/include/messages.subr b/usr.sbin/bsdconfig/include/messages.subr index 39434ae..1dc8f95 100644 --- a/usr.sbin/bsdconfig/include/messages.subr +++ b/usr.sbin/bsdconfig/include/messages.subr @@ -255,6 +255,9 @@ msg_ok="OK" msg_options="Options" msg_options_editor="Options Editor" msg_other="other" +msg_pkg_delete_failed="Warning: pkg_delete of %s failed.\n Run with debugging for details." +msg_package_is_needed_by_other_installed_packages="Warning: Package %s is needed by\n %d other installed package%s." +msg_package_not_installed_cannot_delete="Warning: package %s not installed\n No package can be deleted." msg_package_read_successfully_waiting_for_pkg_add="Package %s read successfully - waiting for pkg_add(1)" msg_package_temp="Package Temp" msg_package_was_added_successfully="Package %s was added successfully" @@ -376,6 +379,7 @@ msg_unable_to_make_directory_mountpoint="Unable to make %s directory mountpoint msg_unable_to_open="Unable to open %s" msg_uninstall="Uninstall" msg_uninstall_desc="Mark this package for deletion" +msg_uninstalling_package_waiting_for_pkg_delete="Uninstalling %s package - waiting for pkg_delete(1)" msg_unknown="unknown" msg_unknown_user="Unknown user: %s" msg_url_was_not_found="%s was not found, maybe directory or release-version are wrong?" |