aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install/delete/main.c
Commit message (Collapse)AuthorAgeFilesLines
* After around 20 years of duty it is time for pkg_install to retireBaptiste Daroussin2013-10-311-180/+0
| | | | Notes: svn path=/head/; revision=257444
* Warn users when using pkg tools if it looks like theyEitan Adler2012-10-221-0/+1
| | | | | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241830
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228990
* Backout libinstall.a -> libpkg commit.Florent Thoumie2011-05-171-3/+1
| | | | | | | Discussed with: erwin, brooks, bapt Notes: svn path=/head/; revision=222035
* - Take libinstall.a out of pkg_install and make it a proper shared library.Florent Thoumie2010-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. Notes: svn path=/head/; revision=207113
* Add missing `void' keywords.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201226
* - Add long options to pkg_install.Florent Thoumie2008-05-301-4/+22
| | | | | | | | - Remove check for '-?' as it's not listed in authorized options. - Bump PKG_INSTALL_VERSION to 20080530. Notes: svn path=/head/; revision=179433
* Cleanup of userland __P useKevin Lo2007-11-071-1/+1
| | | | Notes: svn path=/head/; revision=173412
* Allow variable amounts of verbosity.David E. O'Brien2006-06-121-1/+1
| | | | Notes: svn path=/head/; revision=159554
* Fix pkg_info(1) and pkg_delete(1) to handle properly packages whichKirill Ponomarev2005-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 Notes: svn path=/head/; revision=151188
* - match package version numbers with relational operatorsOliver Eikemeier2004-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 Notes: svn path=/head/; revision=131275
* Fix SCM ID's.David E. O'Brien2002-04-011-5/+3
| | | | Notes: svn path=/head/; revision=93520
* WARNS=2 cleanup.Maxim Sobolev2001-10-101-1/+1
| | | | | | | | Tested on: i386, alpha MFC after: 2 weeks Notes: svn path=/head/; revision=84745
* Various fixes and improvements:Maxim Sobolev2001-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 Notes: svn path=/head/; revision=83663
* Cosmetics: replace dozen instances of "(tmp = getenv(PKG_DBDIR) ? tmp : ↵Maxim Sobolev2001-08-021-1/+1
| | | | | | | | | | | DEF_LOG_DIR)" with macro. MFC after: 1 month Notes: svn path=/head/; revision=81049
* - Merge recently added into pkg_info(1) regex/glob matching functionality intoMaxim Sobolev2001-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 Notes: svn path=/head/; revision=73134
* Cause fatal error messages to be a little more helpful to the programmerJordan K. Hubbard2000-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> Notes: svn path=/head/; revision=67429
* Avoid infinite loops when given a package name like 'm4-1.1/'.Steve Price2000-05-141-18/+13
| | | | | | | Approved by: jkh Notes: svn path=/head/; revision=60563
* Finally remove the restriction introduced from NetBSD in r.1.3 thatTim Vanderhoek2000-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) Notes: svn path=/head/; revision=60499
* While looking for a bug, tripped over style issues with addedJordan K. Hubbard2000-02-181-11/+6
| | | | | | | code. Fix them. Notes: svn path=/head/; revision=57311
* Fix a bug in previous commit where pkg_{delete,info} foo-1.0/ would segfault.Dan Moschuk2000-01-181-2/+4
| | | | | | | Noticed first by: kris Notes: svn path=/head/; revision=56211
* Teach pkg_delete and pkg_info how to deal with full pathnamesDan Moschuk2000-01-151-2/+23
| | | | | | | | | (/var/db/pkg/foo-1.0, instead of just foo-1.0). Submitted by: Matthew D. Fuller <fullermd@futuresouth.com> Notes: svn path=/head/; revision=56001
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* '?' shouldn't be in the usage string. Unknown characters are alreadyWarner Losh1999-06-241-2/+2
| | | | | | | converted to '?'. Notes: svn path=/head/; revision=48170
* If we are going to have a case for '?' then we should define it in Options.Bill Fumerola1999-06-231-2/+2
| | | | | | | Submitted by: Ben Olson <bseth@chc-chimes.com> Notes: svn path=/head/; revision=48143
* Use err(3). Cosmetics in usage string and man page.Philippe Charnier1997-10-081-27/+12
| | | | Notes: svn path=/head/; revision=30221
* Many places in the code NULL is used in integer context, wherePoul-Henning Kamp1997-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> Notes: svn path=/head/; revision=29574
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-311-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24428
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Add MD5 checksums to packing list for all files during pkg_create and useJordan K. Hubbard1996-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. Notes: svn path=/head/; revision=17338
* Make pkg_install understand and use libftpio instead of its ownJordan K. Hubbard1996-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. Notes: svn path=/head/; revision=16549
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8857
* Many of John T. Kohl's patches from NetBSD. Thanks, John!Jordan K. Hubbard1994-12-061-6/+21
| | | | | | | Submitted by: jkohl Notes: svn path=/head/; revision=4996
* Lots of misc tweaks, support for arbitrary separators in pkg_info, moreJordan K. Hubbard1993-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). Notes: svn path=/head/; revision=379
* The release version of my package install suite. Please see man pagesJordan K. Hubbard1993-08-261-0/+108
for info. Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=327