diff options
Diffstat (limited to 'usr/src/cmd/svr4pkg/pkgremove/check.c')
-rw-r--r-- | usr/src/cmd/svr4pkg/pkgremove/check.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/usr/src/cmd/svr4pkg/pkgremove/check.c b/usr/src/cmd/svr4pkg/pkgremove/check.c index b92da7156e..75fbc21fdd 100644 --- a/usr/src/cmd/svr4pkg/pkgremove/check.c +++ b/usr/src/cmd/svr4pkg/pkgremove/check.c @@ -32,9 +32,7 @@ #include <stdlib.h> #include <unistd.h> #include <string.h> -#ifndef SUNOS41 #include <utmpx.h> -#endif #include <dirent.h> #include <sys/types.h> #include <pkgstrct.h> @@ -44,11 +42,9 @@ #include <pkglib.h> #include "libadm.h" #include "libinst.h" -#include "wsreg_pkgrm.h" #include "messages.h" extern struct admin adm; -/* extern struct cfent **eptlist; */ extern char pkgloc[], *pkginst, *msgtext; @@ -190,51 +186,6 @@ rckdepend(void) echo(MSG_CHECKREMOVE_PKG_IN_ZONE, pkginst, zoneName); } - if (wsreg_pkgrm_check(get_inst_root(), pkginst, &id, &name) > 0) { - int i; - - if (ADM(rdepend, "quit")) { - return (4); - } - - if (echoGetFlag() == B_FALSE) { - return (5); - } - - msgtext = MSG_PKGREMOVE_WSDEPEND; - echo(msgtext); - - (void) printf("%-36s %s", MSG_PKGREMOVE_ID_STR, - MSG_PKGREMOVE_NAME_STR); - (void) printf("\n------------------------------------ " - "--------------------------------------\n"); - - for (i = 0; id[i] != NULL; i++) { - (void) printf("%-36s %s\n", id[i], - (name[i])?(name[i]):""); - free(id[i]); - if (name[i]) { - free(name[i]); - } - } - - free(id); - free(name); - - msgtext = NULL; - - n = ckyorn(ans, NULL, NULL, HLP_PKGREMOVE_WSDEPEND, - ASK_PKGREMOVE_CONTINUE); - - if (n != 0) { - return (n); - } - - if (strchr("yY", *ans) == NULL) { - return (3); - } - } - if (dockdeps(pkginst, 1, preremoveCheck)) { msgtext = MSG_PKGREMOVE_DEPEND; |