summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
AgeCommit message (Collapse)Author
2016-08-27in case we run delete_first (not enough room), delay the unlink ofMarc Espie
tied items so we can still skip extracting them. better than the stopgap measure I committed a few weeks ago.
2016-08-26grrr warningMarc Espie
2016-08-25-F before -f (as -I before -i currently is...);Jason McIntyre
2016-08-25make the full filesystem check optional, by popular demand.Marc Espie
doubling -q removes the plist thorough check.
2016-08-12band-aid for a nasty bug. tieto + space constraints don't interact well.Marc Espie
there are better fixes (such as computing tieto first, computing the size better, and doing two passes deletes), but at least this one doesn't fuck things up.
2016-07-27checking for firmware works better if I pass thru all optionsMarc Espie
2016-07-27don't include firmwares in the fuzzy auto-reinstall listMarc Espie
2016-07-27hunting around for some sporadic error message. Removing the hash entryMarc Espie
entirely is slightly better. noticed by sthen@
2016-07-23no quirks in FwUpdate.Marc Espie
okay theo
2016-06-28oops, $pkg can be more than a pkgname. We have the right informationMarc Espie
in the plist, so use it instead.
2016-06-28option -z that uses is-branch info to produce "complete"Marc Espie
stem--[flavor][%branch] listing. feedback and suggestions semarie@
2016-06-27surprised nobody noticed before meMarc Espie
let scp:// work with PKG_CACHE basically, we do an extra fork, so we end up cleaning up the connection twice that's okay for the handles, but not for the commands, since we do a spurious ABORT BYE BYE on cleanup.
2016-06-25recognize @option is-branchMarc Espie
so that it trickles to snapshots and then can be used in ports
2016-06-24make use of former changes. If list is higher than display go thru more.Marc Espie
2016-06-24simplify the logic. no need for a separate hook when we can just specializeMarc Espie
find_window_size. fix a bug: integrate SIG{CONT} for re-checking window size. the way it's currently written, first call to compute_playfield will call itself once. But it makes for less code.
2016-06-23there's no reason for window size computation to be linked to theMarc Espie
ProgressMeter, so make it available from state. - computation is lazy, so no runtime difference; - don't bother setting a SIG{WINCH} on non-tty; - progressmeter already has access to state; - do an empty window_size_changed in base state, override it for addcreatedelete to inform the progressmeter. to be reused in dpb...
2016-06-23add fh variation of printing code. Systematically use it with STDOUT/STDERRMarc Espie
for classical functions.
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-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-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-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-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-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-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-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