summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_add (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tweaks to system version handling:espie2021-03-151-5/+6
| | | | | | | | | - create an element that accumulates version values for when we have several - actually use compare on version values instead of hardcoding the difference no functional change
* finish GC old unintuitive interfaceespie2021-03-021-2/+2
| | | | now handle_continue and find_window_size are fully separated.
* rephrase example in a more consistent wayespie2021-02-101-9/+8
|
* in case we're not a tty, don't do anything elseespie2021-02-011-3/+6
| | | | this does fix the grep case
* turns out STDOUT may have been redirected, in which case tcgetpgrp willespie2021-01-311-2/+5
| | | | | | return -1, in which case we never need to suppress output. noticed by Mark Patruck
* do not print to STDOUT if we're in background, as requested by Theoespie2021-01-303-16/+36
| | | | who pointed at ssh code for process group handling. Thanks
* I'm such a doofus, of course I have to call base method as wellespie2021-01-301-1/+2
|
* switch ProgressMeter to clearer APIespie2021-01-303-9/+18
|
* rework API slightly, so that handle_continue is an explicit methodespie2021-01-302-3/+14
| | | | (to be overrideen by subclasses when needed)
* for now, do not try to install quirks in case we're running "not"espie2021-01-301-2/+2
| | | | | the better thing to do would be to pseudo-install it under /tmp so we can run it, but it requires way more changes
* be more forceful about FULLPKGPATHespie2021-01-291-3/+8
|
* remove test that's now bogus, as fullpkgpath takes precedence.espie2021-01-261-10/+6
| | | | thanks bluhm@
* - grab fullpkgpath early (to decide: hard error if not provided) ?espie2021-01-111-6/+16
| | | | | | | | | | | | | | | - tweak the look-up mechanism for dependencies to NOT look at installed packages for inter-dependencies between subpackages (and debug packages) of the SAME pkgpath. The rationale for looking at installed packages in the usual case is that it's normally much faster rather than have the ports tree spew out packing-lists. In the case of multi-packages updates, the new version may have been built successfully (and correctly) while the old version is still around. However, if pkg_create looks at the installed version, it may fail to create the package because the shared library versions will be different.
* avoid extra warnings if undefined values are encounteredespie2021-01-081-2/+4
|
* rename pkg_add's pod files to avoid filenames with colonsdaniel2020-12-2017-20/+20
| | | | | | | | | Filenames with colons are not allowed on windows filesystems. So we rename the pod files to avoid this. Should get us closer to being able to check out the openbsd source code on a windows system. ok espie@ (who suggested the current approach); sthen@ was ok with a previous version of the diff
* zap trailing whitespace;jmc2020-11-161-3/+3
|
* blurb about @tag being recorded as wellespie2020-11-091-4/+8
|
* speed up the dependency check pass significantly:espie2020-11-091-2/+22
| | | | | | | | | first pass will read packing-lists fully, use that to cache along dependency information, so we don't have to read packing-list again during second pass. we do not cache full plists for the file checks, because 1/ that is significantly larger 2/ that pass is disk io bound anyway
* fix indirect dependencies bug: match what pkg_add does by adding tagespie2020-11-091-10/+40
| | | | | | | | | | | | definitions to the list of RequiredBy. requires passing the pkgname around for the special case where tag and define-tag are in the same location, so use that info for better diagnostics Note that this loses the optimization where we only need read DependsOnly this can be addressed later by storing stub packing-lists with only relevant info during the first pass, so that we don't have to read them again
* reword confusing messageespie2020-11-091-2/+2
|
* More DESC -> DESCR; spotted by espie@ajacoutot2020-07-251-3/+3
|
* tyop: DESC -> DESCRajacoutot2020-07-251-2/+2
| | | | ok landry@ robert@
* fix sentence grammar in AUTHORS;jmc2020-07-241-3/+3
|
* make it a bit clearer that -p is a path to a package repository,jmc2020-07-241-3/+3
| | | | | | not just a regular file path; patient explanation (neccessary) and eventual ok espie
* 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@.