summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2021-03-15tweaks to system version handling:Marc Espie
- 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
2021-03-02finish GC old unintuitive interfaceMarc Espie
now handle_continue and find_window_size are fully separated.
2021-02-10rephrase example in a more consistent wayMarc Espie
2021-02-01in case we're not a tty, don't do anything elseMarc Espie
this does fix the grep case
2021-01-31turns out STDOUT may have been redirected, in which case tcgetpgrp willMarc Espie
return -1, in which case we never need to suppress output. noticed by Mark Patruck
2021-01-30do not print to STDOUT if we're in background, as requested by TheoMarc Espie
who pointed at ssh code for process group handling. Thanks
2021-01-30I'm such a doofus, of course I have to call base method as wellMarc Espie
2021-01-30switch ProgressMeter to clearer APIMarc Espie
2021-01-30rework API slightly, so that handle_continue is an explicit methodMarc Espie
(to be overrideen by subclasses when needed)
2021-01-30for now, do not try to install quirks in case we're running "not"Marc Espie
the better thing to do would be to pseudo-install it under /tmp so we can run it, but it requires way more changes
2021-01-29be more forceful about FULLPKGPATHMarc Espie
2021-01-26remove test that's now bogus, as fullpkgpath takes precedence.Marc Espie
thanks bluhm@
2021-01-11- grab fullpkgpath early (to decide: hard error if not provided) ?Marc Espie
- 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.
2021-01-08avoid extra warnings if undefined values are encounteredMarc Espie
2020-12-20rename pkg_add's pod files to avoid filenames with colonsDaniel Dickman
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
2020-11-16zap trailing whitespace;Jason McIntyre
2020-11-09blurb about @tag being recorded as wellMarc Espie
2020-11-09speed up the dependency check pass significantly:Marc Espie
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
2020-11-09fix indirect dependencies bug: match what pkg_add does by adding tagMarc Espie
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
2020-11-09reword confusing messageMarc Espie
2020-07-25More DESC -> DESCR; spotted by espie@Antoine Jacoutot
2020-07-25tyop: DESC -> DESCRAntoine Jacoutot
ok landry@ robert@
2020-07-24fix sentence grammar in AUTHORS;Jason McIntyre
2020-07-24make it a bit clearer that -p is a path to a package repository,Jason McIntyre
not just a regular file path; patient explanation (neccessary) and eventual ok espie
2020-06-22add missing .PpLandry Breuil
2020-06-09Show a message while pkg_add updates the font cache. This occurs at theStuart Henderson
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@
2020-05-17in order for PKG_CACHE to work, skipped entries at the end should stillMarc Espie
be read. This happens for packages ending in symlinks for instance. this should fix some fringe cases where FETCH_PACKAGES doesn't work
2020-04-23 ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;Jason McIntyre
2020-03-26Add support for "alpha" suffixes in package versionsJeremie Courreges-Anglas
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@
2020-02-20document no debugMarc Espie
2020-02-20forgot to actually put "nodebug" in stateMarc Espie
2020-02-20make shell "with debug info" by default and add a bit of code to markMarc Espie
stuff "no debug" eventually
2020-02-19document new option comboMarc Espie
2020-02-19refactor opt('Q') into its own codeMarc Espie
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.
2020-02-19allow search objects to say "keep_all" and make PackageRepositoryListsMarc Espie
aware of that for match_locations
2020-02-19Separate singular and pluralMarc Espie
2020-02-18have description of -Q match realityMarc Espie
2020-02-17future replacement for PackageInfo.pmMarc Espie
- 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.
2020-02-11add iwx to fw_updateStefan Sperling
2020-01-28banish implicit returnMarc Espie
2020-01-28match opendir with closedir... not that important as the thing was mostMarc Espie
probably GC'd.
2020-01-26give pkg_create knowledge of WRKOBJDIR, so it can error out if a symlinkMarc Espie
points in there. okay aja@ sthen@
2020-01-24Add FILES sections; OK espie@ solene@.Ingo Schwarze
Triggered because Claus Assmann observed on ports@ that the pkg_add(1) manual page didn't mention pkg-readmes.
2020-01-13nit, use "fatal" with parameters as intendedMarc Espie
2020-01-11debug-> pkg-debug definesMarc Espie
It's only used for debugging pkgtools, it shouldn't interfere with possible flavors in pkg_create
2020-01-09have ask_tree be more specific in its error reporting.Marc Espie
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.
2020-01-05In his original writeup, espie@ had the terse parenthetical remarkIngo Schwarze
"(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@.
2020-01-04mention $DB::inhibit_exit;Ingo Schwarze
my wording after espie@ explained what he had in mind; OK espie@
2020-01-04be a bit more precise about what %a and %v do in paths;Ingo Schwarze
OK espie@
2020-01-04New manual page OpenBSD::style(3p).Ingo Schwarze
Based on a writeup that espie@ posted to misc@ with tweaks by me and additional feedback from espie@.