#
039cbdaa |
| 13-Jun-2023 |
espie <espie@openbsd.org> |
move to use v5.36; tested by me over the last few weeks, and tb@ also fixed a "manual install" bug properly reported by tb@
aside that there should be *no functional change*. If you see any message
move to use v5.36; tested by me over the last few weeks, and tb@ also fixed a "manual install" bug properly reported by tb@
aside that there should be *no functional change*. If you see any message like "hey, the number of params is wrong" it is a fringe case I didn't run into and should be easy to fix.
show more ...
|
#
a100fd73 |
| 27-May-2023 |
espie <espie@openbsd.org> |
try/catch to be revisited
|
#
07126a4d |
| 17-May-2023 |
espie <espie@openbsd.org> |
stop using old-style prototypes except where strictly necessary (for try/catch)
signatures will be much more powerful once I move to 5.36
|
#
91273194 |
| 24-Jul-2019 |
espie <espie@openbsd.org> |
GC old catchall add a better framework for signal handling (not used yet)
|
#
500f0e86 |
| 24-Jul-2019 |
espie <espie@openbsd.org> |
explain some details
|
#
5a29d933 |
| 22-Jul-2019 |
espie <espie@openbsd.org> |
separate the atend behavior, because dpb wants a pure signal intercept but not an END code.
This fixes the stupid bug I had. Was looking in the wrong location, not surprisingly
|
#
38cae932 |
| 21-Jul-2019 |
espie <espie@openbsd.org> |
tweak register a bit... END {} code is obviously the problem
|
#
36137a65 |
| 21-Jul-2019 |
espie <espie@openbsd.org> |
gc old functions, that part is clean as well... so it's obviously the END code then...
|
#
8d7b263f |
| 17-Jul-2019 |
sthen <sthen@openbsd.org> |
backout previous commits for now; some of this is shared with dpb and results in problems. hints from pvk@ about what introduced the breakage we were seeing, who confirms that this backout fixes thin
backout previous commits for now; some of this is shared with dpb and results in problems. hints from pvk@ about what introduced the breakage we were seeing, who confirms that this backout fixes things; comitting early to unbreak package builds.
==== a bunch of changes, all related to error-handling: - have Handle->register also create a proper END block, so that individual packages don't have to, and explain the issue - kill old Unlink/Copy code that migrated to State years ago - commonalize try{} catch {} for pkg_add/delete and pkg_create, so that debug works the same way in both. - switch printing command name to the catch handler, so that exceptions are simpler to handle
and a few comments for the hairy parts...
Members: OpenBSD/AddCreateDelete.pm:1.44->1.45 OpenBSD/AddDelete.pm:1.87->1.88 OpenBSD/Error.pm:1.33->1.34 OpenBSD/PackageRepository.pm:1.164->1.165 OpenBSD/PkgCreate.pm:1.160->1.161 OpenBSD/State.pm:1.58->1.59 OpenBSD/Temp.pm:1.34->1.35 ====
show more ...
|
#
d1d416e1 |
| 14-Jul-2019 |
espie <espie@openbsd.org> |
a bunch of changes, all related to error-handling: - have Handle->register also create a proper END block, so that individual packages don't have to, and explain the issue - kill old Unlink/Copy code
a bunch of changes, all related to error-handling: - have Handle->register also create a proper END block, so that individual packages don't have to, and explain the issue - kill old Unlink/Copy code that migrated to State years ago - commonalize try{} catch {} for pkg_add/delete and pkg_create, so that debug works the same way in both. - switch printing command name to the catch handler, so that exceptions are simpler to handle
and a few comments for the hairy parts...
show more ...
|
#
4c589827 |
| 11-Jul-2019 |
espie <espie@openbsd.org> |
tweak the way we report bugs - the catch/catchall distinction is no longer relevant, strip some info by default now - use state->{cmd} to display the command name properly
This makes sure final disp
tweak the way we report bugs - the catch/catchall distinction is no longer relevant, strip some info by default now - use state->{cmd} to display the command name properly
This makes sure final displays show the command name.
show more ...
|
#
1b95f69e |
| 18-Apr-2017 |
espie <espie@openbsd.org> |
recent perl have signal names we don't have, protect against that. also, allow child_error to take a parameter so that this can be used to decode an arbitrary wait() result.
|
#
caf99896 |
| 28-Apr-2012 |
espie <espie@openbsd.org> |
File::Path::rmtree is very stupid and spews out warning messages if there's no cwd.
Well, if there's no cwd, we don't care about getting back there, so wrap rmtree to just move to / before calling t
File::Path::rmtree is very stupid and spews out warning messages if there's no cwd.
Well, if there's no cwd, we don't care about getting back there, so wrap rmtree to just move to / before calling the real rmtree.
show more ...
|
#
85d1f632 |
| 24-Dec-2010 |
espie <espie@openbsd.org> |
handle failures from ports tree with more care. this does avoid infinite loops in case of wrong plists. necessary since print-plist-with-depends CAN fail...
|
#
000ce162 |
| 27-Oct-2010 |
espie <espie@openbsd.org> |
initial scaffolding for @rcscript: for now, acts like normal files, but allow absolute pathnames (treat that as an implicit @cwd).
|
#
b0dfb814 |
| 30-Jun-2010 |
espie <espie@openbsd.org> |
allow say and errsay to work without parameters, as it's ways common. create verbose_system up in state, because it makes sense without verbose.
|
#
a3f853c2 |
| 30-Jun-2010 |
espie <espie@openbsd.org> |
whitespace cleanup
|
#
5f05097c |
| 15-Jun-2010 |
espie <espie@openbsd.org> |
more printing changes.
move log operations into their own file, since they're used outside of pkg_add/pkg_delete by pkg_check.
move all system stuff to State, so that printing can be localized/cont
more printing changes.
move log operations into their own file, since they're used outside of pkg_add/pkg_delete by pkg_check.
move all system stuff to State, so that printing can be localized/controlled. Create primitives _print, _errprint, _fatal for overriding output, without localization.
Accordingly, move a lot of code out of Error. We should also move Unlink and Copy eventually.
show more ...
|
#
d57bb46a |
| 10-May-2010 |
espie <espie@openbsd.org> |
whitespace fixes
|
#
337db9b4 |
| 24-Apr-2010 |
espie <espie@openbsd.org> |
simplify using //=
|
#
7eb3bd1a |
| 19-Jan-2010 |
espie <espie@openbsd.org> |
simplify caching: return $cached->{$_} //= new_value; remove stats cache LibSpec as well (1000 c.53.0 !)
|
#
989d1a3d |
| 17-Jan-2010 |
espie <espie@openbsd.org> |
use Carp directly, it it very inexpensive actually, since it's been rewritten to be just a very small stub that loads Carp::Heavy on demand. Also, stop wrapping messages in "Expected", doesn't give u
use Carp directly, it it very inexpensive actually, since it's been rewritten to be just a very small stub that loads Carp::Heavy on demand. Also, stop wrapping messages in "Expected", doesn't give us anything. Finally, make RequiredBy calls be carp, so that we actually know where they fail...
show more ...
|
#
becd6ee6 |
| 09-Jan-2010 |
espie <espie@openbsd.org> |
move signal catching up, so we can clean repos and temp files at once. Fix main program try/catch: signal message should use standard form so it gets caught.
|
#
be385f7e |
| 05-Jan-2010 |
espie <espie@openbsd.org> |
common pattern, put it there since everything uses Error.
|
#
cba4982d |
| 15-Nov-2009 |
espie <espie@openbsd.org> |
make these independent from Getopt, require Exporter
|