History log of /openbsd/usr.sbin/pkg_add/OpenBSD/AddDelete.pm (Results 1 – 25 of 100)
Revision Date Author Comments
# 9cb26fd5 02-Jul-2023 espie <espie@openbsd.org>

lost silence_children behavior by accident
add a hook to compute the exit_code in more fun ways


# 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 ...


# 3b55fdbb 27-May-2023 espie <espie@openbsd.org>

cosmetic/comments improvement


# 57ad4379 19-Apr-2023 sthen <sthen@openbsd.org>

Force a standard umask before adding/deleting packages. If not done and
the user has a restrictive mask, various items (new directories, @sample'd
files, /var/db/pkg entries, mandoc databases) end up

Force a standard umask before adding/deleting packages. If not done and
the user has a restrictive mask, various items (new directories, @sample'd
files, /var/db/pkg entries, mandoc databases) end up not readable.

feedback/ok espie@

show more ...


# 1a6141ed 16-May-2022 espie <espie@openbsd.org>

GC old stats code, I already removed the collection part


# f001b114 04-May-2021 espie <espie@openbsd.org>

okay, prevent pkg_* from looking into /usr/local BUT special-case quirks


# 9c45d37d 30-Jan-2021 espie <espie@openbsd.org>

for now, do not try to install quirks in case we're running "not"
the better thing to do would be to pseudo-install it under /tmp so we
can run it, but it requires way more changes


# 3c025a5e 11-Jan-2020 espie <espie@openbsd.org>

debug-> pkg-debug defines
It's only used for debugging pkgtools, it shouldn't interfere with
possible flavors in pkg_create


# b48a274e 15-Nov-2019 espie <espie@openbsd.org>

nicer order of multi-choice packages (by version if everything else is
equal, alphabetically otherwise)

prompted by claudio@, okay claudio@ kmos@


# 96acc640 19-Aug-2019 espie <espie@openbsd.org>

add a special flag -DDONTLOG so that regress test won't spam /var/log/messages


# 5a69ed8c 21-Jul-2019 espie <espie@openbsd.org>

start re-adding the non-broken changes:
- 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,

start re-adding the non-broken changes:
- 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

show more ...


# 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 ...


# d718bad4 11-Jul-2019 espie <espie@openbsd.org>

move the display of cmd into fatal, and don't say it's a fatal error, it's
already obvious


# 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 ...


# 35135148 30-Jun-2019 espie <espie@openbsd.org>

refactor a bit of code: retrieve_fullname/retrieve_size, so that
special files are a bit less special.

Leave ::Sample for now


# 17323cb3 07-Apr-2019 espie <espie@openbsd.org>

don't silence children under fw_update, since ftp(1) can tell us
what's wrong with the network.

okay deraadt@


# 569cdac4 11-Jul-2018 espie <espie@openbsd.org>

"running tags"


# be5dca62 10-Jul-2018 espie <espie@openbsd.org>

unify option parsing a bit more


# 7255fd1a 09-Jul-2018 espie <espie@openbsd.org>

do cleanup after tags, as noticed by aja@


# 03bd1238 07-Jul-2018 espie <espie@openbsd.org>

- move everything tag-related into state->{tags}
- implement "define-tag deleted" heuristic: when we remove the tag
definition, we can no longer run the command at-end
- implement superseded semantic

- move everything tag-related into state->{tags}
- implement "define-tag deleted" heuristic: when we remove the tag
definition, we can no longer run the command at-end
- implement superseded semantics to be used for texmf

show more ...


# 6bf70685 22-Jun-2018 espie <espie@openbsd.org>

hook atend tag running


# 790e15f9 01-Jul-2017 espie <espie@openbsd.org>

go thru POSIX::Termios to turn off kerninfo.
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@


# c9685e2a 25-Mar-2017 espie <espie@openbsd.org>

tweak checksums on delete to not happen by default, with an interface
as discussed with sthen@

manpage bits to follow soonish


# 6b6947a6 01-Mar-2017 espie <espie@openbsd.org>

scrape most of the config framework
okay aja@, rpe@


1234