summaryrefslogtreecommitdiff
path: root/usr/src/cmd/svr4pkg/pkginstall/quit.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@nexenta.com>2010-11-15 20:03:27 -0800
committerGarrett D'Amore <garrett@nexenta.com>2010-11-15 20:03:27 -0800
commit4656d4747c8743290bfbe910c64cd75eb4e4af8d (patch)
tree241d8b3f0b8796e33937c6a27c670eba002f8f04 /usr/src/cmd/svr4pkg/pkginstall/quit.c
parent60bec29ea42d65ac648c69b0fb189273e286ca57 (diff)
downloadillumos-joyent-4656d4747c8743290bfbe910c64cd75eb4e4af8d.tar.gz
420 remove patch (sparse package) support from svr4 pkg
421 libpkg and libadm need to be lint clean Reviewed by: gwr@nexenta.com Reviewed by: peter.tribble@gmail.com Approved by: gwr@nexenta.com
Diffstat (limited to 'usr/src/cmd/svr4pkg/pkginstall/quit.c')
-rw-r--r--usr/src/cmd/svr4pkg/pkginstall/quit.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/usr/src/cmd/svr4pkg/pkginstall/quit.c b/usr/src/cmd/svr4pkg/pkginstall/quit.c
index af62f4fcfa..664de95126 100644
--- a/usr/src/cmd/svr4pkg/pkginstall/quit.c
+++ b/usr/src/cmd/svr4pkg/pkginstall/quit.c
@@ -67,7 +67,6 @@ extern char pkgloc_sav[];
extern char *msgtext;
extern char *pkginst;
extern char *pkgname;
-extern char saveSpoolInstallDir[]; /* pkginstall/main.c */
/*
* exported functions
@@ -238,9 +237,6 @@ quitSetSilentExit(boolean_t a_silentExit)
void
quit(int retcode)
{
- char orig_pkginfo_path[PATH_MAX];
- char pkginfo_path[PATH_MAX];
-
/* disable interrupts */
(void) signal(SIGINT, SIG_IGN);
@@ -359,34 +355,6 @@ quit(int retcode)
(void) rrmdir(pkgloc_sav);
}
}
-
- if (isPatchUpdate()) {
- if (pkgloc[0] && !access(pkgloc, F_OK) &&
- !access(saveSpoolInstallDir, F_OK)) {
- /*
- * Copy the pkginfo file to the pspool
- * directory. This propagates patch
- * info to the patched pkg in the local
- * zone.
- */
- (void) snprintf(orig_pkginfo_path,
- sizeof (orig_pkginfo_path),
- "%s/%s/%s", get_PKGLOC(),
- pkginst, PKGINFO);
-
- (void) snprintf(pkginfo_path,
- sizeof (pkginfo_path), "%s/%s",
- saveSpoolInstallDir, PKGINFO);
-
- if (cppath(MODE_SET|DIR_DISPLAY,
- orig_pkginfo_path, pkginfo_path,
- 0644)) {
- progerr(ERR_PKGINFO_COPY,
- orig_pkginfo_path,
- pkginfo_path);
- }
- }
- }
}
/*