diff --git a/release/sysinstall/package.c b/release/sysinstall/package.c index 3b0090dca2d7..11216c94479c 100644 --- a/release/sysinstall/package.c +++ b/release/sysinstall/package.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: package.c,v 1.71 1999/05/12 09:02:36 jkh Exp $ + * $Id: package.c,v 1.72 1999/05/14 12:15:34 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -160,7 +160,10 @@ package_extract(Device *dev, char *name, Boolean depended) dup2(DebugFD, 1); close(2); close(pfd[1]); - i = execl("/usr/sbin/pkg_add", "/usr/sbin/pkg_add", "-", 0); + if (isDebug()) + i = execl("/usr/sbin/pkg_add", "/usr/sbin/pkg_add", "-v", "-", 0); + else + i = execl("/usr/sbin/pkg_add", "/usr/sbin/pkg_add", "-", 0); if (isDebug()) msgDebug("pkg_add returns %d status\n", i); } diff --git a/usr.sbin/sysinstall/package.c b/usr.sbin/sysinstall/package.c index 3b0090dca2d7..11216c94479c 100644 --- a/usr.sbin/sysinstall/package.c +++ b/usr.sbin/sysinstall/package.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: package.c,v 1.71 1999/05/12 09:02:36 jkh Exp $ + * $Id: package.c,v 1.72 1999/05/14 12:15:34 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -160,7 +160,10 @@ package_extract(Device *dev, char *name, Boolean depended) dup2(DebugFD, 1); close(2); close(pfd[1]); - i = execl("/usr/sbin/pkg_add", "/usr/sbin/pkg_add", "-", 0); + if (isDebug()) + i = execl("/usr/sbin/pkg_add", "/usr/sbin/pkg_add", "-v", "-", 0); + else + i = execl("/usr/sbin/pkg_add", "/usr/sbin/pkg_add", "-", 0); if (isDebug()) msgDebug("pkg_add returns %d status\n", i); }