summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_add (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add missing .Pplandry2020-06-221-2/+3
|
* Show a message while pkg_add updates the font cache. This occurs at thesthen2020-06-091-1/+3
| | | | | | end of an install and can take quite a while if you have certain fonts installed. Before this change the cursor was left at an empty line. tweak/ok espie@
* in order for PKG_CACHE to work, skipped entries at the end should stillespie2020-05-171-2/+8
| | | | | | be read. This happens for packages ending in symlinks for instance. this should fix some fringe cases where FETCH_PACKAGES doesn't work
* ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;jmc2020-04-231-4/+4
|
* Add support for "alpha" suffixes in package versionsjca2020-03-261-3/+6
| | | | | | | | | | | | | We already supported "beta" releases but not "alpha", probably to discourage people from pushing "alpha-quality" software in the ports tree. We have 30 ports with distfiles matching "alpha", and people just work around the lack of explicit support for "alpha" releases with mixes of crafted PKGNAME and REVISION/EPOCH. This looks needlessly complicated and a bit unfair when compared to GH_COMMIT support. Pointers from landry@ and sthen@, lgtm landry@, no objection from espie@
* document no debugespie2020-02-201-2/+11
|
* forgot to actually put "nodebug" in stateespie2020-02-201-2/+5
|
* make shell "with debug info" by default and add a bit of code to markespie2020-02-201-5/+10
| | | | stuff "no debug" eventually
* document new option comboespie2020-02-191-2/+5
|
* refactor opt('Q') into its own codeespie2020-02-191-19/+32
| | | | | | make sure we see -a along with opt('Q') tweak -aQ to use keep_all so that it shows every entry in every repository instead of stopping at the first one.
* allow search objects to say "keep_all" and make PackageRepositoryListsespie2020-02-192-4/+14
| | | | aware of that for match_locations
* Separate singular and pluralespie2020-02-191-4/+9
|
* have description of -Q match realityespie2020-02-181-3/+5
|
* future replacement for PackageInfo.pmespie2020-02-172-1/+224
| | | | | | | | | | - the name was a bit confusing (pkg_info) - one of the first modules I wrote, and the old one isn't OO at all, and full of globals, which can be a problem for displaying error messages, and for tweaking PKG_DB locally... This will replace PackageInfo.pm once I've gone through all the callers. New synopsis would make this part of State in most cases, without any singleton.
* add iwx to fw_updatestsp2020-02-111-2/+2
|
* banish implicit returnespie2020-01-281-2/+2
|
* match opendir with closedir... not that important as the thing was mostespie2020-01-281-2/+2
| | | | probably GC'd.
* give pkg_create knowledge of WRKOBJDIR, so it can error out if a symlinkespie2020-01-261-1/+8
| | | | | | points in there. okay aja@ sthen@
* Add FILES sections; OK espie@ solene@.schwarze2020-01-242-4/+29
| | | | | Triggered because Claus Assmann observed on ports@ that the pkg_add(1) manual page didn't mention pkg-readmes.
* nit, use "fatal" with parameters as intendedespie2020-01-131-2/+2
|
* debug-> pkg-debug definesespie2020-01-112-4/+4
| | | | | It's only used for debugging pkgtools, it shouldn't interfere with possible flavors in pkg_create
* have ask_tree be more specific in its error reporting.espie2020-01-091-6/+15
| | | | | | | | | make sure the child has the same effective and real ids, as perl interprets it as "setuid, refuse to debug" go to the end of the pipe so the child doesn't exit prematurely (didn't use to happen but now it does) help from afresh1@ in diagnosing that one.
* In his original writeup, espie@ had the terse parenthetical remarkschwarze2020-01-051-2/+19
| | | | | | | "(yes/no answer instead of full list)" regarding how to use wantarray(). Flesh this out with an example and a bit of explanation to reduce the risk of misunderstandings and misuse. Discussed with espie@.
* mention $DB::inhibit_exit;schwarze2020-01-041-1/+9
| | | | | my wording after espie@ explained what he had in mind; OK espie@
* be a bit more precise about what %a and %v do in paths;schwarze2020-01-041-4/+7
| | | | OK espie@
* New manual page OpenBSD::style(3p).schwarze2020-01-042-1/+157
| | | | | Based on a writeup that espie@ posted to misc@ with tweaks by me and additional feedback from espie@.
* plain forgot about THAT optimization.espie2020-01-021-2/+2
| | | | | | Let .so/.a print again in pkg_info -L noticed by Mikolaj Kucharski
* partial backout of 1.166: we still need to compute the pkgname without theespie2019-12-291-7/+10
| | | | | | repo for debug packages, but we need the full path for the handle (for now) fixes regression noticed by bluhm@
* close the gap for the "final" hint that did not install debug packagesespie2019-12-081-6/+9
| | | | | | | | | (coincidentally, that's the pattern used for install from ports) This just requires always passing pkgname thru parse to extract the right name. There's definitely a bit of code to clean up in pkg_add afterwards :/
* have DEBUG_PKG_CACHE also apply to already installed packages, toespie2019-12-081-19/+24
| | | | | | | | help bootstrap the process Clean the code: - move the decision logic into individual may_grab_debug_for - acknowledge the PkgAdd object doesn't matter in there, just use class - for already installed stuff, we skip packages that already exist
* explicitly say you're not allowed to insert most of these yourselfespie2019-12-041-7/+7
|
* document DEBUG_PKG_CACHEespie2019-12-041-2/+17
|
* add DEBUG_PKG_CACHE functionality. Doesn't interfere with normal operation.espie2019-12-041-1/+61
| | | | | | | | | | Basically, if you set DEBUG_PKG_CACHE to a directory, pkg_add will download debug packages "on the sly" any time it installs packages. It is mostly silent (apart from fetching error or directory non existent). It *won't* download packages that are already installed, but this allows keeping debug packages "just in case" in synch with your current snapshot, as some people (mpi@) have worried that by the time you get to debugging something, the snapshots will have moved too much.
* allow error to be passed along, in case we need to save $? for laterespie2019-12-041-3/+3
|
* preliminary addition of -d option (semantics: add debug packages ifespie2019-11-162-8/+33
| | | | | | they're present along the packages we want to add/update) probably not perfect yet, but 100% a no-op if it's not used, so won't break existing usage.
* nicer order of multi-choice packages (by version if everything else isespie2019-11-151-2/+14
| | | | | | equal, alphabetically otherwise) prompted by claudio@, okay claudio@ kmos@
* document the new annotations corresponding to DEBUG_PACKAGESespie2019-11-121-3/+23
|
* tweaks to the file hierarchy to annotate anything with debuginfo, soespie2019-11-101-8/+23
| | | | | | | existing @bin @lib and new @static-lib @so as discussed with p2k19 people
* typoespie2019-11-101-2/+2
|
* added too much for -stable, if ftp says 404, we still need to save thatespie2019-11-081-3/+2
|
* when asking the ports tree, we fork a child.espie2019-11-071-2/+16
| | | | | | | | | instead of ditching stderr entirely, keep it in a temp file, and if the child exits with an error, we got something to display. (note that returning and undef'd plist is enough of an error, just we had no clue what went wrong previously) aja@ ran into this a few weeks ago.
* style nitespie2019-11-071-2/+2
|
* Add ogx to fw_update.visa2019-11-051-2/+2
|
* adapt to new ftp(1) retrieving error messagesderaadt2019-10-231-2/+2
|
* I didn't check robert's fix closely enough.espie2019-10-201-19/+28
| | | | | | fix it so commands are run when several fontdirs are involved also streamline the alias code a little bit, and have it report actual issues in opening files
* name value to shorten codeespie2019-10-131-4/+7
|
* even in the empty case, use wantarray to properly return 0/an empty array.espie2019-10-131-2/+6
|
* - have a method explicitly return undef instead of falling off the endespie2019-10-131-2/+3
| | | | | - old signatures have been dead for 3 years, time to remove mention of them in error messages
* let collisionreport work better with FETCH_PACKAGESespie2019-09-041-1/+4
|
* also pass the signature styleespie2019-08-261-1/+2
|