summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
AgeCommit message (Collapse)Author
2018-01-01placeholder for new keyword that doesn't do anything yet, so that when itMarc Espie
gets used, tools already know about it a bit. (meant to simplify wantlib updates down the line)
2017-12-23the trick to get signal names requires skipping over POSIX stuff we don'tMarc Espie
have now. as seen by landry@
2017-12-02switching to _pbuild is tricky, you can't take it back.Marc Espie
in particular, disable future PORTS_PRIVSEP mechanisms under pkg_create, because we should already be running as _pbuild by this point.
2017-11-07Revert previous, it breaks ports/infrastructure/bin/resolve-lib (I think)Antoine Jacoutot
with at least python and ruby. ok naddy@
2017-11-06typo, surprised nobody noticed yetMarc Espie
2017-11-03properly cleanup the controller after closing the cmdfh.Marc Espie
don't call exit, since grab_object is only used within a fork and parent does exit. this prevents signal cleanup from fucking up and trying to close the fhs a second time. somewhat long-standing problem, as seen by jeremy@ and I. okay jeremy@
2017-11-01don't look directly at PKG_CACHE, but ask the state, so that onlyMarc Espie
pkg_add actually looks at the env variable, and it doesn't affect other tools. buglet noticed by Lari Rasku
2017-10-22make messages involving fs clearer, parse the mount point AND the deviceMarc Espie
and display a name (/dev/sd0h on /usr/local) based on that
2017-10-14Add bwfm(4) to fw_update(1).Patrick Wildt
ok espie@ sthen@
2017-10-10clean-up option handling slightly, some more to be done.Marc Espie
Add a -S option that computes signatures, so that we may remove code from bsd.port.mk that does the exact same thing, and no longer work since the addition of @version. For now, -S is exclusive of other package creation options, as it exits as soon as it computes what it needs.
2017-10-09correct calls to this constructor *must* include a state. If they don'tMarc Espie
you won't notice until the repository wants to output an error message, which is bad. if code breaks thanks to this commit, the call site needs to be fixed.
2017-10-07kill reporting old signature schemes, they've been gone for long enoughMarc Espie
2017-10-07Adjust verbose message in case PKG_PATH is undefined.Marc Espie
Problem noticed by anton@
2017-09-18better diagnosticsMarc Espie
2017-09-18-V option for pkg_create and incorporate version into signatures.Marc Espie
2017-09-16we already have a comparison function for libobjects, so move it up toMarc Espie
the best class, and sort bad libraries in dependency solving accordingly
2017-09-16recognize @version, to be used for a system-wide version markerMarc Espie
2017-08-29avoid double search. Fix abieber's commit vaguely. (todo: speed-ups)Marc Espie
2017-08-04Only call find_pkg when we are using other options with -Q.Aaron Bieber
This resolves the speed issues Michael Reed <michael@michaelreed.io> reported that were introduced by my changes in 1.45. OK landry@
2017-08-04Adjust the html index-parsing regex to cope with anchor tags that aren'tStuart Henderson
just '<a href="foo">'; several mirrors now include a title attribute which pkg_add can't cope with. Diff from Taylor Stearns to handle attributes following the href; tweaked by me to also handle attribute before the href. ok zhuk@
2017-08-03Make -Q work play nice with other flags. This makes things like:Aaron Bieber
"pkg_info -Q quake -d" function as expected. OK landry@
2017-07-23recent perls have more fun rules related to _ and -Marc Espie
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-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-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-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-25Recognise vmm in dmesg to install "vmm-firmware" (the SeaBIOS package).Stuart Henderson
OK 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-11compute_digest already clones object's class, no need to ref here.Marc Espie
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-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-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@