diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-09-19 08:06:48 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-09-19 08:06:48 +0000 |
commit | 7942a4e1d2c7f9c821cae968af1b156019372d2a (patch) | |
tree | 983c446512bc26a2723c915739303dcac0da1570 /usr.sbin/pkg_install/info/perform.c | |
parent | de49b782662799d33adbe3450f5c4cbdb697a7f0 (diff) | |
download | FreeBSD-src-7942a4e1d2c7f9c821cae968af1b156019372d2a.zip FreeBSD-src-7942a4e1d2c7f9c821cae968af1b156019372d2a.tar.gz |
Various fixes and improvements:
- fix harmless compiler's warnings (unused variables and missed prototype);
- before refusing to delete package because "there are packages installed
that require this package" check that packages in question is actually
installed;
- add new `-r' option to pkg_delete(8), which instructs it to delete not only
packages specified at command line, but all packages that depend on
specified packages as well.
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/pkg_install/info/perform.c')
-rw-r--r-- | usr.sbin/pkg_install/info/perform.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/info/perform.c b/usr.sbin/pkg_install/info/perform.c index a4aa829..5074b1b 100644 --- a/usr.sbin/pkg_install/info/perform.c +++ b/usr.sbin/pkg_install/info/perform.c @@ -143,8 +143,6 @@ pkg_do(char *pkg) } /* It's not an ininstalled package, try and find it among the installed */ else { - char *tmp; - sprintf(log_dir, "%s/%s", LOG_DIR, pkg); if (!fexists(log_dir)) { warnx("can't find package '%s' installed or in a file!", pkg); |