summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add
AgeCommit message (Collapse)Author
2016-06-22have a consistent exit code when looking for stuffMarc Espie
2016-06-21pass file name thru to Subst for better error messages.Marc Espie
reported by Adam Wolk
2016-06-15dedup interactive options handling code yet again.Marc Espie
dynamic code mixin
2016-06-15ProgressMeter keeps state. Unfortunately, term is shared between processes.Marc Espie
Adds supplementary code that was first tested in proot, but may be needed to split pkg_add into processes in the future.
2016-06-14restrict %m and friends to "separate words" so they won't collide withMarc Espie
branch specifiers. Unlikely, but better safe than sorry.
2016-06-14refer to pkg_add(1) for pkg-name conventionsMarc Espie
2016-06-14more unification of stuff run on the command lineMarc Espie
don't mention FW_UPDATE, it's an internal detail
2016-06-14new syntax: pkgname%branch to select a branch wherever it makes sense.Marc Espie
see pkg_add(1) for details. Search framework makes that surprisingly simple.
2016-06-14reorg examples to better use actual options.Marc Espie
emphasize -U straight away because people often don't even realize it's there. Make more use of default stem so that we don't have to update examples too often. Ditch the interactive ftp stuff, there's nobody that actually uses that, especially since there are almost no ftp mirrors left.
2016-06-06band-aid for pkg_check, some options need to be mixin.Marc Espie
2016-06-06fix somewhat broken inheritance: the actual -i/-I interactive dance isMarc Espie
only relevant for pkg_add/pkg_delete. Every tool needs an interactive object, but setting that to InteractiveStub "just in case" after doing the interactive dance is fine for pkg_create/pkg_sign problem noticed by jsg@ in pkg_sign(1).
2016-05-27tweak wording to avoid "firmware which are installed"T.J. Townsend
2016-05-15set glitch correctlyMarc Espie
2016-05-14use twice the same code for prepare_long and verify_modes so that it can'tMarc Espie
diverge. tested for a few days and okay aja@
2016-05-14ftp:// -> http:// for main ftp site example.T.J. Townsend
2016-05-13add a stub log for signify, problem noticed by teduMarc Espie
2016-05-10go deeper in Term::ReadKey, we don't need smart guesses.Marc Espie
okay afresh@/millert@
2016-05-09prepare for API tweaks of OpenBSD::MkTempMarc Espie
okay afresh1@
2016-05-09stop depending on *.phMarc Espie
use Term::ReadKey a bit of funky stuff while old ports Term::ReadKey is around
2016-05-08allow root files to be root-writable.Marc Espie
common work with aja@, okay aja@
2016-04-25prepare for possible pledging. We can't really drop privs if we're notMarc Espie
running as root, so don't even try. Also, have the environment reflect reality in that case.
2016-04-25now that sysmerge happens before us, no need to fallback on _pfetchMarc Espie
revert previous commit
2016-04-25pkgcfl was put in the old keywords bin a few generations ago...Marc Espie
2016-04-25kill remnants of non shared archesMarc Espie
2016-04-16fallback to _pfetch after _pkgfetch until sysmerge is run automaticallyMarc Espie
2016-04-02streamline the code that checks meta information before extracting filesMarc Espie
- verify_modes should only verify modes - put the whole checking code in one single routine in validate_meta, makes the size checking code more obvious - document what's going on - prevent PkgCreate from creating impossible packages, only a few Ustar objects are actually usable.
2016-04-02sprinkle spaces to make more obvious which fields we useMarc Espie
2016-03-26fix error message, based on a suggestion from doug@, ok espieStuart Henderson
2016-03-18use properly separated _pkgfetch user.Marc Espie
abort if you can't find it. if you somehow managed NOT to update your users thru sysmerge or the normal build process, you deserve this.
2016-02-29correct return values for -e; from patrik lundinJason McIntyre
ok sthen espie
2016-02-23sanitize environment thru a whitelist. Only pass what's relevant for ftp andMarc Espie
ftp clones. Give "decent" values to your normal environment variables, so that commands won't be surprised. This fixes the spurious warnings from ftp:// url reported by Jiri B. Much feedback from deraadt@, zhuk@, sthen@
2016-02-09tweak namesMarc Espie
set LC_ALL everywhere since it's now easy
2016-02-09drop privs prior to running ftpMarc Espie
okay sthen@
2016-02-03update the font cache by running fc-cache after removing packagesRobert Nagy
with @fontdir markers ok espie@
2016-01-30redo sthen's idea deeper in pkg_add, so that *every* url can be abbreviatedMarc Espie
the same way (e.g., PKG_PATH=ftp.openbsd.org will work) okay sthen@
2016-01-27Allow pkg.conf's installpath to be set to a bare hostname (no /), whichStuart Henderson
implies http://hostname/pub/OpenBSD/[snapshots-or-version]/packages/[arch]. This could be handled at a different location in the code to support PKG_PATH but this approach is pretty simple and I have something else to make use of it. ok espie@ for now.
2015-11-06the Solver uses kept_names, so we need these there tooMarc Espie
found by aja@
2015-11-05tweak dependencies handling, might fix some infrequent bugs including theMarc Espie
infamous cups bug. - look for candidates in the whole new set first. Yep, that includes kept packages (should make things slightly faster, I expect) - correctly remove caching of list of installed packages outsides of old packages from the current set each time we revisit the set (looking at the old behavior this actually sounds very likely).
2015-11-04Bump distribution tarball versions.mmcc
2015-10-21make sure ProgressMeter gets set up. Fixes some weirdness in package installs,Marc Espie
as it now must contain a proper linkback to its own state.
2015-10-07"..." implies optional, so no need for []; from michael reedJason McIntyre
2015-09-25Use .Cm rather than .Ar for fixed strings on the command lineIngo Schwarze
and remove invalid escaping of `@' characters.
2015-09-15avoid useless .Ns before punctuation after in-line macrosIngo Schwarze
2015-09-10reduce .Nd to one line and kill .Tn while hereIngo Schwarze
2015-08-14remove partial to_register from sets when we merge, since we have to do theMarc Espie
work again. Should solve the +REQUIRED_BY problem hopefully.
2015-08-13scaffolding that will display more info for the elusive REQUIRED_BY errorMarc Espie
2015-08-13let pkg_create recreate all packages correctly, again.Marc Espie
2015-07-28make -B with bad checksums cope. Reported by millert@Marc Espie
2015-07-23change the expansion of %m and %c in installpath during -beta to theJoerg Jung
snapshots/ folder ok phessler@ sthen@
2015-07-21switch dpb from sudo to doas (and env as required); ok sthen@Christian Weisgerber