CVSROOT: /cvs Module name: src Changes by: es...@cvs.openbsd.org 2019/07/14 01:27:18
Modified files: usr.sbin/pkg_add/OpenBSD: AddCreateDelete.pm AddDelete.pm Error.pm PackageRepository.pm PkgCreate.pm State.pm Temp.pm Log message: 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...