summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2017-07-01go thru POSIX::Termios to turn off kerninfo.Marc Espie
wasn't even aware that stuff existed, thanks nicm@ NOKERNINFO hardcoded, because it's not in the POSIX module, shouldn't be a big issue. okay millert@
2017-06-20trim more error messagesMarc Espie
- if we can't retrieve the package, of course signify will say it's truncated so that's redundant. - if you give a full package name, can_be_empty should make directories vanish. (landry just discovered 6.1/packages-stable by accident, make it vanish again so he can't find it back... :D )
2017-05-30waive signature check wavingTheo Buehler
ok jmc espie
2017-05-29do not whine if installpath is undef.Marc Espie
2017-05-29Refactor locator code so it's a proper object.Marc Espie
allow fw_update to short-circuit entirely, thus the specific treatment of paths is actually less of a special case, and the code that reaches into /etc/installurl is no longer used at all in that case. problem noticed by mlarkin@
2017-05-18document installpath, explain PKG_PATH defaults in terms of it.Marc Espie
2017-05-18introduce new url "installpath" to mean "the contents of installurl"Marc Espie
use it to simplify logic. have ./ always be silent, wherever it may come from. zap NOINSTALLPATH since it's more intuitive to just define PKG_PATH= (nothing) now.
2017-05-15Properly register manual pages in non-English language directories.Ingo Schwarze
Before this, pkg_add(1) neglected running makewhatis(8) in directories like /usr/local/man/ru/. OK espie@
2017-05-13No more CD releases, and advertise HTTP rather than FTP for packages.Ingo Schwarze
Patch from <Timo dot Myyra at wickedbsd dot net>.
2017-04-18recent perl have signal names we don't have, protect against that.Marc Espie
also, allow child_error to take a parameter so that this can be used to decode an arbitrary wait() result.
2017-04-05For a non-interactive attempt to pkg_delete a firmware package, print aStuart Henderson
message advising use of "fw_update -d" rather than saying "ok" and doing nothing. (pkg_delete intentionally makes it hard to uninstall firmware to prevent surprises when cleaning a machine). aja and I were surprised by the "ok" leaving the fw package installed. suggestion from espie to mention fw_update -d in the message.
2017-03-26spelling fix; ok espieJason McIntyre
2017-03-25Recognise vmm in dmesg to install "vmm-firmware" (the SeaBIOS package).Stuart Henderson
OK espie@
2017-03-25document tweaked checksum behavior, reorder environment, remove old cruft.Marc Espie
2017-03-25tweak checksums on delete to not happen by default, with an interfaceMarc Espie
as discussed with sthen@ manpage bits to follow soonish
2017-03-16tied files should be treated like deleted files wrt checksums.Marc Espie
2017-03-14a few more characters that are safe to printMarc Espie
pass thru the $@ "dieing" report from reading a plist.
2017-03-13fix usage order, as reminded by jmc@Marc Espie
2017-03-11more consistency on .Fl ... Ns Ar lines, requested by jmc@Ingo Schwarze
2017-03-11Make spacing after -D consistent.Ingo Schwarze
Manual pages should only use .Fl X Ns Ar in the unusual case that no space is allowed between the option letter and the option argument. See POSIX for details: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html OK espie@
2017-03-11compute_digest already clones object's class, no need to ref here.Marc Espie
2017-03-11document recent changes.Marc Espie
acknowledge that installurl requires some internal treatment explain how %c works now. Document -Dsnap and -V Remove the pesky spaces in -Dname, since no-one types the space ever
2017-03-11tweak %m to expand to %c, and make %c more magical:Marc Espie
on a -stable system, %c/packages will expand to two directories in support of packages-stable, with the -stable directory being "silent". Also add a -Dsnap option that forces %c to be snapshots so that the last weeks of testing of release are less painful. okay aja@
2017-03-09take the checksum part out of line.Marc Espie
Fix the "no checksum" part: pass thru do_not_delete, and do it even if quick is set. Simplify the error messages in case realname and fullname are identical (which is the most common case)
2017-03-09tweak installurl code to return a single string that gets parsedMarc Espie
so that we don't have to write the same thing twice later.
2017-03-07somehow it didn't get removed even though it's no longer installedMarc Espie
2017-03-07okay "can't find" means error reported as wellMarc Espie
2017-03-07Digest::SHA is nasty: it shows an incomplete error message if theMarc Espie
file can't be read properly (got a Read error on delete), so stop trying to do things ourselves, just wrap the error to inject a decent error message, catching inexistent files and read errors in the process.
2017-03-07if we reported "Can't find CONTENTS", we know it's a bad package,Marc Espie
so no need to say it again
2017-03-07get rid of redundant "Can't find CONTENTS" if the location already twittedMarc Espie
2017-03-07more error streamlining:Marc Espie
- if we don't have an object for fetch, then we're grabbing a list for http "not found" means it's not a proper package directory. - report once for "empty" repositories, and we know the difference between an empty dir and a non existing directory - if we have an object, save we already reported an error to avoiding cascading error reports
2017-03-07error message bugfix: forgot to pass object around, soMarc Espie
parse_problems would report unspecific repository issues instead of trouble with a given package.
2017-03-03Remove a "=over 4" after the corresponding "=back" has been removedAlexander Bluhm
in the previous commit. Makes pod2man compile again.
2017-03-03spring cleanup, remove sysctl from doc, and finally gc some older annotationsMarc Espie
which don't even exist in the PackingElement hierarchy anymore.
2017-03-03pass @sysctl into old stuffMarc Espie
okay sthen@
2017-03-01Remove pkg.conf leftover.Robert Peichaer
OK espie@
2017-03-01scrape most of the config frameworkMarc Espie
okay aja@, rpe@
2017-02-27Remove support for pkg.conf in light of the consolidation towardsRobert Peichaer
a single configuration file for the OpenBSD repository location. The pkg_* tools now use installurl(5) to find the package repository. NOTE: /etc/installurl only contains a single URL pointing to a mirror. Use the PKG_PATH environment variable to specify more than one package repository. prodded by and OK deraadt@ aja@
2017-02-27framework for some performance stats as a -V... option (like how muchMarc Espie
of a package you actually downloaded, or how many packages you touch) okay aja@
2017-02-15improve list item formatting;Jason McIntyre
from salvador sabaini
2017-02-10add glue to be able to ask "give me the highest number shared library withMarc Espie
that stem". needed later for new fancy stuff in check-lib-depends okay sthen@
2017-02-06amend the "unsigned package" message, commenting that signify(1) doesn'tMarc Espie
see old-style signatures. Clue for people trying pkg_add -current against 6.0 or earlier.
2017-02-06basic installurl support, get installpath from it (appending the requisiteMarc Espie
magic for packages location...). Fairly straightforward if pkg.conf defines installpath=, it takes precedence (manual trumps automatic) to be fully documented once the dust settles. okay aja@
2017-02-05The installer does not create pkg.conf during installation and doesRobert Peichaer
not update it during upgrades anymore. pkg_add(1) will soon use the installurl file as primary source to find the package repository. OK espie@, tb@
2017-02-05Use a non-greedy regular expression for the installpath url.Robert Peichaer
This ensures, that a trailing whitespace does not break pkg_add. OK espie@
2017-01-25if the fs got badly damaged, display a decent error message instead ofMarc Espie
erroring out when we can't read a plist.
2017-01-25In some cases, pkg_info -e spec would display the spec instead of theMarc Espie
actual pkg name as intended. (forgot who reported that one, sorry)
2017-01-25some run environnement do not properly reset signals (e.g., python) andMarc Espie
as a result pkg_add + signify fails with weird error messages, as it relies on default SIGPIPE behavior. Finally fix the problem, sanitize our running environment before forking. Problem reported by various people.
2017-01-01Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known'Theo Buehler
if they precede the noun and omit hyphens otherwise. ok tj
2016-10-05document signature changeMarc Espie