summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Warn users when using pkg tools if it looks like theyeadler2012-10-221-0/+1
| | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* Backout libinstall.a -> libpkg commit.flz2011-05-171-3/+1
| | | | Discussed with: erwin, brooks, bapt
* - Take libinstall.a out of pkg_install and make it a proper shared library.flz2010-04-231-1/+3
| | | | | | | | | | | - Rework the wrapper support to check libpkg version as well as pkg_install version. - Add libfetch to _prebuild_libs. - There are no new features introduced. Notes: the API is not stable, so basically, do not use libpkg in your projects for now. Also there's no manpage for libpkg yet, because the API will change drastically. I repeat, do not use libpkg for now.
* Add missing `void' keywords.ed2009-12-291-1/+1
|
* - Add long options to pkg_install.flz2008-05-301-4/+22
| | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530.
* Cleanup of userland __P usekevlo2007-11-071-1/+1
|
* Allow variable amounts of verbosity.obrien2006-06-121-1/+1
|
* Fix pkg_info(1) and pkg_delete(1) to handle properly packages whichkrion2005-10-101-1/+1
| | | | | | | | names start with a digit. PR: bin/76858 Submitted by: Matthew D. Fuller <fullermd@over-yonder dot net> MFC after: 3 days
* - match package version numbers with relational operatorseik2004-06-291-2/+6
| | | | | | | | | | | | | | - use glob patterns when matching packages by origin - csh-style {...} choices in glob matching - pkg_info: new flag -E (list matching package names only) - pkg_version: new flag -T (test if a given name matches a pattern) - new flag -X (interpret pattern as an extended regular expression) PR: 56961
* Fix SCM ID's.obrien2002-04-011-5/+3
|
* WARNS=2 cleanup.sobomax2001-10-101-1/+1
| | | | | Tested on: i386, alpha MFC after: 2 weeks
* Various fixes and improvements:sobomax2001-09-191-2/+7
| | | | | | | | | | | | - 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
* Cosmetics: replace dozen instances of "(tmp = getenv(PKG_DBDIR) ? tmp : ↵sobomax2001-08-021-1/+1
| | | | | | | | DEF_LOG_DIR)" with macro. MFC after: 1 month
* - Merge recently added into pkg_info(1) regex/glob matching functionality intosobomax2001-02-271-15/+38
| | | | | | | | | pkg_delete(1) as well; - add a new `-a' option for pkg_delete(1) to delete all installed packages; - add a new `-i' option for pkg_delete(1) to request simple rm(1)-like interactive confirmation before attempting to delete each package. Silently approved by: jkh, -ports
* Cause fatal error messages to be a little more helpful to the programmerjkh2000-10-221-1/+1
| | | | | | | | | concerning where they're taking place. Switch from [r]index() to str[r]chr() functions, which are more ISO compliant. Prompted by: Edward Welbourne <eddy@vortigen.demon.co.uk>
* Avoid infinite loops when given a package name like 'm4-1.1/'.steve2000-05-141-18/+13
| | | | Approved by: jkh
* Finally remove the restriction introduced from NetBSD in r.1.3 thathoek2000-05-131-2/+12
| | | | | | | pkg_delete be run as root. Now honours -f and checks ownership of ${PKG_DBDIR} before errx()'ing. Requested by: bin/5718, myself, bin/18373 (in order)
* While looking for a bug, tripped over style issues with addedjkh2000-02-181-11/+6
| | | | code. Fix them.
* Fix a bug in previous commit where pkg_{delete,info} foo-1.0/ would segfault.dan2000-01-181-2/+4
| | | | Noticed first by: kris
* Teach pkg_delete and pkg_info how to deal with full pathnamesdan2000-01-151-2/+23
| | | | | | (/var/db/pkg/foo-1.0, instead of just foo-1.0). Submitted by: Matthew D. Fuller <fullermd@futuresouth.com>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* '?' shouldn't be in the usage string. Unknown characters are alreadyimp1999-06-241-2/+2
| | | | converted to '?'.
* If we are going to have a case for '?' then we should define it in Options.billf1999-06-231-2/+2
| | | | Submitted by: Ben Olson <bseth@chc-chimes.com>
* Use err(3). Cosmetics in usage string and man page.charnier1997-10-081-27/+12
|
* Many places in the code NULL is used in integer context, wherephk1997-09-181-2/+2
| | | | | | | | | plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Add MD5 checksums to packing list for all files during pkg_create and usejkh1996-07-301-2/+1
| | | | | | | | | later at pkg_delete time to verify that you're deleting what you added. This, of course, does NOT cover the case where a file you still need hasn't changed! That's a tougher problem to solve, and this provides only the minimal amount of safety belt. MD5 checksums are stored in comment fields, so packages produced with these tools are backwards compatible with the older ones.
* Make pkg_install understand and use libftpio instead of its ownjkh1996-06-201-1/+2
| | | | | copies of the ftp support routines. Also some cosmetic and minor bug fixes I've been meaning to incorporate for awhile.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Many of John T. Kohl's patches from NetBSD. Thanks, John!jkh1994-12-061-6/+21
| | | | Submitted by: jkohl
* Lots of misc tweaks, support for arbitrary separators in pkg_info, morejkh1993-09-031-1/+1
| | | | | intelligent name handling in pkg_create. Most of these files are changed because of rcsid's being different in my cvs tree and freefall's (foo).
* The release version of my package install suite. Please see man pagesjkh1993-08-261-0/+108
for info.
OpenPOWER on IntegriCloud