summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/delete
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Don't put DEBUG to CFLAGS, we have the standard DEBUG_FLAGS for this.ru2004-08-121-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-10/+20
|
* - pkg_add spawns itself as argv[0] when installing dependent packages, toeik2004-06-293-5/+5
| | | | | | | | | | | | | | | | | | enable the use as a port on older systems - use absolute paths in all calls to external programs, to account for strange PATH settings - use INDEX or INDEX-5 depending on FreeBSD version, to enable the use on FreeBSD 4.x as a port. - conditionalize all 4.x/5.x differences on __FreeBSD_version, so that the pkg_install tools can be kept in sync on 4.x and 5.x - Bump PKG_INSTALL_VERSION Reviewed by: portmgr (bento run) MFC after: 4 weeks
* - pkg_info: flag -r: (show packages this packages depends on (documentation ↵eik2004-06-291-27/+43
| | | | | | | | | | | | | | | | change)) - pkg_info: new flag -j (show the requirements script) - pkg_info: fix verbose output when used on packages - better handling of corrupt entries in /var/db/pkg - differ between corrupt entires and packages not installed - various small fixes PR: 56989, 57016, 57029, 26468
* - match package version numbers with relational operatorseik2004-06-293-5/+17
| | | | | | | | | | | | | | - 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
* - Properly build both crypto and non-crypto versions of theru2004-01-171-5/+0
| | | | | | | package management tools. - Drop redundant dependency of pkg_create(1) and pkg_delete(1) on crypto libraries now that they do not link with libfetch.
* Retire the useless NOSECURE knob.des2003-05-191-1/+1
| | | | Approved by: re (scottl)
* Fix a long-standing bug where if the package being deleted had nodes2003-02-252-14/+12
| | | | | | | | | | | | | | | | post-deinstall script, the variable intended to hold the name of that script would be used uninitialized. In some cases, fexists() would succeed, causing pkg_delete to try to chmod +x it, then execute it, resulting in bizarre error messages such as: .//: Permission denied This bug would normally only occur when multiple packages were specified on the command line; otherwise post_script would be located in a previously unused part of the stack, and implicitly (but quite accidentally) initialized to all-zeros. MFC after: 3 days
* Break fileGetURL() out into its own file so that pkg_install/lib consumersobrien2002-11-061-2/+2
| | | | pkg_{create,delete} don't need to needlessly link with libfetch.
* Reorder libraries to fix static linking (libssl depends on libcrypto, sodes2002-06-121-2/+2
| | | | | | it must come before libcrypto in LDADD) Reviewed by: bde
* libfetch now depends on libcrypto and libssl.ru2002-06-061-0/+5
|
* - Make use of DEPOROGINs (if there are any) when installing package;sobomax2002-05-141-16/+40
| | | | | | | - fix few bogosities here and there; - move some common routines into the library. MFC after: 2 weeks
* replace __FUNCTION__ with standardized __func__.alfred2002-05-111-6/+6
| | | | Requested by: jhb
* fix build:alfred2002-05-111-4/+7
| | | | | | | | you may not use string concatination with __FUNCTION__, replace all occurances of: __FUNCTION__ ": error string" with: "%s: error string"
* Use `The .Nm utility'charnier2002-04-201-0/+2
|
* Fix SCM ID's.obrien2002-04-012-10/+6
|
* WARNS=2 cleanup.sobomax2001-10-102-1/+3
| | | | | Tested on: i386, alpha MFC after: 2 weeks
* Various fixes and improvements:sobomax2001-09-194-68/+99
| | | | | | | | | | | | - 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-022-6/+3
| | | | | | | | DEF_LOG_DIR)" with macro. MFC after: 1 month
* Usability tweak:sobomax2001-08-021-9/+9
| | | | | | | | | Use '' quotes instead of `' to delimit names of files and packages in warning and error messages, because it is easier to cut-n-paste name in question that way (single click) without confusing the shell. And yes, I know that it is less eye-candy... MFC after: 1 month
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-4/+4
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove whitespace at EOL.dd2001-07-151-8/+8
|
* Style policy: reformat multiline comments to conform to style(9).sobomax2001-05-171-3/+6
|
* When creating a package sort dependencies in such a way that if dependencysobomax2001-03-151-68/+3
| | | | | | | | | | | | | | | | | | A depends on dependency B then dependency A will be in all cases listed before B, so ``pkg_add -r'' will fetch/install packages in the correct order. Previously dependencies were sorted just by its names, which is why ``pkg_add -r'' never actually worked properly. To be usefull, hovewer, this fix requires that all packages have been rebuilt, so it will take some time until users would be able to feel posititive improvements. For the same reasons it is desirable to propagate these changes to the 4-stable package building cluster *before* 4.3 ports freeze, so packages for 4.3-RELEASE would be properly prepared. Prompted by: kris Insanely appreciated by: obrien Silently approved by: jkh, -ports
* When called with the "-n" command line argument, pkg_deleteroberto2001-03-041-5/+4
| | | | | | | | | | | | | | | | is supposed to inform the user of all steps it would take. The current code does not issue any messages regarding actions that would be performed by delete_package (removing files and executing @unexec commands), because when the Fake variable is 1, delete_package (which itself respects Fake and prints messages rather than taking action when it is 1) is not called at all. Fix this. PR: bin/24971 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.ru2001-02-281-4/+4
|
* - Merge recently added into pkg_info(1) regex/glob matching functionality intosobomax2001-02-274-18/+104
| | | | | | | | | 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
* Fix a typo, that in some cases may lead to incorrect packages reordering.sobomax2001-02-211-1/+1
|
* Use the more logical author syntax from pkg_version and quotejkh2001-02-201-3/+2
| | | | email addresses properly.
* Improve pkg_delete(1) behaviour when deleting several packages at once.sobomax2001-02-191-3/+74
| | | | | | | | | | Instead of trying to delete packages in the same order as they were specified in the command line, reorder deletion in such a way that if package A depends on package B then package A will be deleted before B no matter in which order they were specified in the command line. Reviewed by: jkh, will Approved by: jkh
* mdoc(7) police: Change -filled displays (which just happenru2001-02-071-3/+3
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-2/+2
|
* Prepare for mdoc(7)NG.ru2001-01-161-5/+5
|
* Prepare for mdoc(7)NG.ru2000-12-271-8/+6
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Cause fatal error messages to be a little more helpful to the programmerjkh2000-10-222-5/+5
| | | | | | | | | 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>
* Use libfetch instead of libftpio. This adds support for http and IPv6.des2000-06-271-2/+2
|
* Use `rm -f` if the -f (force) option was given.hoek2000-06-021-1/+1
|
* 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)
* Add cross references to pkg_version(1) in all the other pkg_* man pages.jhb2000-02-291-0/+1
| | | | | | | | Also, add a cross reference to pkg_info(1) in pkg_version(1). Finally, in pkg_version(1), don't put a period at the end of the list of see also man pages. Noticed by: Matt Ayres <matta@fast.net>
* 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>
* Fix bogon in previous commit: pass a string argument to printf(3) tosheldonh2000-01-111-2/+2
| | | | | | satisfy the %s conversion format specifier. Reported by: Mark Huizer <freebsd@xaa.iae.nl>
* Use a more helpful fatal error message than "Toto! This doesn't looksheldonh2000-01-111-2/+2
| | | | | | | like Kansas anymore!" when unable to return to the original working directory. PR: bin/16015
* Use the appropriate macro for double quotes rather than using doublejkh1999-09-011-2/+3
| | | | | | | quotes. Submitted by: Alexey Zelkin <phantom@cris.net> PR: 13436
OpenPOWER on IntegriCloud