History log of /openbsd-current/usr.sbin/pkg_add/OpenBSD/PackageRepositoryList.pm
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.34 14-Jun-2023 espie

GC remnants of pipe support, long gone.
Display an error message for non found packages, in addition to setting
the exit code.


# 1.33 13-Jun-2023 espie

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.


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.32 19-Feb-2020 espie

allow search objects to say "keep_all" and make PackageRepositoryLists
aware of that for match_locations


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.31 29-May-2017 espie

Refactor locator code so it's a proper object.
allow fw_update to short-circuit entirely, thus the specific
treatment of paths is actually less of a special case,
and the code that reaches into /etc/installurl is no longer used
at all in that case.

problem noticed by mlarkin@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.30 09-Jul-2015 espie

gc old code, from Jean-Philippe Ouellet


Revision tags: OPENBSD_5_7_BASE
# 1.29 03-Feb-2015 espie

zap scp urls from quirks update for fw_update


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 24-Dec-2010 espie

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


# 1.27 27-Oct-2010 espie

initial scaffolding for @rcscript: for now, acts like normal files,
but allow absolute pathnames (treat that as an implicit @cwd).


Revision tags: OPENBSD_4_8_BASE
# 1.26 02-Jul-2010 espie

pass (and save) state around in Repository-related stuff.


# 1.25 30-Jun-2010 espie

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.


# 1.24 30-Jun-2010 espie

whitespace cleanup


# 1.23 25-Jun-2010 espie

fix "deduplicate" code.
allow prepend as well as add


# 1.22 10-May-2010 espie

whitespace fixes


Revision tags: OPENBSD_4_7_BASE
# 1.21 09-Jan-2010 espie

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.


# 1.20 09-Jan-2010 espie

slightly more complex repolist, to allow for:
- caching locations
- avoid readding known paths (done thx to unique repo objects)


# 1.19 09-Jan-2010 espie

move pipe handling into RepositoryList


# 1.18 09-Jan-2010 espie

repositories no longer need match


Revision tags: OPENBSD_4_6_BASE
# 1.17 19-Apr-2009 espie

synch with my new style search/location changes
It's likely there will be some fallout, but it's getting a bit too large
to keep around.
This does kill a few very old oddities as well.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.16 19-May-2007 espie

and I forgot this one


# 1.15 19-May-2007 espie

don't pass srcpath around, since we don't use it.


# 1.14 14-May-2007 espie

kill "available" routine, which is no longer used.


# 1.13 14-May-2007 espie

move the retry code down at the http/ftp repository level, where it belongs.


# 1.12 14-May-2007 espie

tidy


# 1.11 13-May-2007 espie

remove some specialness of the Filtering stuff.


# 1.10 13-May-2007 espie

kill unused stuff


# 1.9 13-May-2007 espie

unify object lookup as locator->match($o) or $repo->match($o)


# 1.8 13-May-2007 espie

also create PartialStem objects, and create a generic
PackageLocator->match($o), where $o can be a spec, a stem, a partialstem.


# 1.7 13-May-2007 espie

tweak _first_of so it can take an extra $filter routine, so that we
get the first set of results that are non empty after filtering
properly.


# 1.6 13-May-2007 espie

provide match_spec, findstem, find_partialstem at the repository list level,
with ld -L like semantics: we stop at the first repository which has the
corresponding packages..


# 1.5 02-May-2007 espie

$o->method() becomes $o->method


# 1.4 15-Apr-2007 espie

update copyright years, standardize licence.
reword the introduction to the stuff originally from FreeBSD to clarify
slightly.


Revision tags: OPENBSD_4_1_BASE
# 1.3 17-Nov-2006 espie

don't return undef, use plain return.
(return undef is only false in a scalar context)
found my perlcritic, one of the few issues I agree with...


Revision tags: OPENBSD_4_0_BASE
# 1.2 08-Mar-2006 espie

propagate stuff to be able to explicitly clean-up repositories.
(we can't use a normal destructor, since this will be called for
each fork()ed subprocess).


# 1.1 04-Mar-2006 espie

cut down the Locator code into maintainable chunks.


# 1.32 19-Feb-2020 espie

allow search objects to say "keep_all" and make PackageRepositoryLists
aware of that for match_locations


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.31 29-May-2017 espie

Refactor locator code so it's a proper object.
allow fw_update to short-circuit entirely, thus the specific
treatment of paths is actually less of a special case,
and the code that reaches into /etc/installurl is no longer used
at all in that case.

problem noticed by mlarkin@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.30 09-Jul-2015 espie

gc old code, from Jean-Philippe Ouellet


Revision tags: OPENBSD_5_7_BASE
# 1.29 03-Feb-2015 espie

zap scp urls from quirks update for fw_update


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 24-Dec-2010 espie

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


# 1.27 27-Oct-2010 espie

initial scaffolding for @rcscript: for now, acts like normal files,
but allow absolute pathnames (treat that as an implicit @cwd).


Revision tags: OPENBSD_4_8_BASE
# 1.26 02-Jul-2010 espie

pass (and save) state around in Repository-related stuff.


# 1.25 30-Jun-2010 espie

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.


# 1.24 30-Jun-2010 espie

whitespace cleanup


# 1.23 25-Jun-2010 espie

fix "deduplicate" code.
allow prepend as well as add


# 1.22 10-May-2010 espie

whitespace fixes


Revision tags: OPENBSD_4_7_BASE
# 1.21 09-Jan-2010 espie

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.


# 1.20 09-Jan-2010 espie

slightly more complex repolist, to allow for:
- caching locations
- avoid readding known paths (done thx to unique repo objects)


# 1.19 09-Jan-2010 espie

move pipe handling into RepositoryList


# 1.18 09-Jan-2010 espie

repositories no longer need match


Revision tags: OPENBSD_4_6_BASE
# 1.17 19-Apr-2009 espie

synch with my new style search/location changes
It's likely there will be some fallout, but it's getting a bit too large
to keep around.
This does kill a few very old oddities as well.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.16 19-May-2007 espie

and I forgot this one


# 1.15 19-May-2007 espie

don't pass srcpath around, since we don't use it.


# 1.14 14-May-2007 espie

kill "available" routine, which is no longer used.


# 1.13 14-May-2007 espie

move the retry code down at the http/ftp repository level, where it belongs.


# 1.12 14-May-2007 espie

tidy


# 1.11 13-May-2007 espie

remove some specialness of the Filtering stuff.


# 1.10 13-May-2007 espie

kill unused stuff


# 1.9 13-May-2007 espie

unify object lookup as locator->match($o) or $repo->match($o)


# 1.8 13-May-2007 espie

also create PartialStem objects, and create a generic
PackageLocator->match($o), where $o can be a spec, a stem, a partialstem.


# 1.7 13-May-2007 espie

tweak _first_of so it can take an extra $filter routine, so that we
get the first set of results that are non empty after filtering
properly.


# 1.6 13-May-2007 espie

provide match_spec, findstem, find_partialstem at the repository list level,
with ld -L like semantics: we stop at the first repository which has the
corresponding packages..


# 1.5 02-May-2007 espie

$o->method() becomes $o->method


# 1.4 15-Apr-2007 espie

update copyright years, standardize licence.
reword the introduction to the stuff originally from FreeBSD to clarify
slightly.


Revision tags: OPENBSD_4_1_BASE
# 1.3 17-Nov-2006 espie

don't return undef, use plain return.
(return undef is only false in a scalar context)
found my perlcritic, one of the few issues I agree with...


Revision tags: OPENBSD_4_0_BASE
# 1.2 08-Mar-2006 espie

propagate stuff to be able to explicitly clean-up repositories.
(we can't use a normal destructor, since this will be called for
each fork()ed subprocess).


# 1.1 04-Mar-2006 espie

cut down the Locator code into maintainable chunks.


Revision tags: OPENBSD_6_2_BASE
# 1.31 29-May-2017 espie

Refactor locator code so it's a proper object.
allow fw_update to short-circuit entirely, thus the specific
treatment of paths is actually less of a special case,
and the code that reaches into /etc/installurl is no longer used
at all in that case.

problem noticed by mlarkin@


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.30 09-Jul-2015 espie

gc old code, from Jean-Philippe Ouellet


Revision tags: OPENBSD_5_7_BASE
# 1.29 03-Feb-2015 espie

zap scp urls from quirks update for fw_update


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.28 24-Dec-2010 espie

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


# 1.27 27-Oct-2010 espie

initial scaffolding for @rcscript: for now, acts like normal files,
but allow absolute pathnames (treat that as an implicit @cwd).


Revision tags: OPENBSD_4_8_BASE
# 1.26 02-Jul-2010 espie

pass (and save) state around in Repository-related stuff.


# 1.25 30-Jun-2010 espie

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.


# 1.24 30-Jun-2010 espie

whitespace cleanup


# 1.23 25-Jun-2010 espie

fix "deduplicate" code.
allow prepend as well as add


# 1.22 10-May-2010 espie

whitespace fixes


Revision tags: OPENBSD_4_7_BASE
# 1.21 09-Jan-2010 espie

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.


# 1.20 09-Jan-2010 espie

slightly more complex repolist, to allow for:
- caching locations
- avoid readding known paths (done thx to unique repo objects)


# 1.19 09-Jan-2010 espie

move pipe handling into RepositoryList


# 1.18 09-Jan-2010 espie

repositories no longer need match


Revision tags: OPENBSD_4_6_BASE
# 1.17 19-Apr-2009 espie

synch with my new style search/location changes
It's likely there will be some fallout, but it's getting a bit too large
to keep around.
This does kill a few very old oddities as well.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
# 1.16 19-May-2007 espie

and I forgot this one


# 1.15 19-May-2007 espie

don't pass srcpath around, since we don't use it.


# 1.14 14-May-2007 espie

kill "available" routine, which is no longer used.


# 1.13 14-May-2007 espie

move the retry code down at the http/ftp repository level, where it belongs.


# 1.12 14-May-2007 espie

tidy


# 1.11 13-May-2007 espie

remove some specialness of the Filtering stuff.


# 1.10 13-May-2007 espie

kill unused stuff


# 1.9 13-May-2007 espie

unify object lookup as locator->match($o) or $repo->match($o)


# 1.8 13-May-2007 espie

also create PartialStem objects, and create a generic
PackageLocator->match($o), where $o can be a spec, a stem, a partialstem.


# 1.7 13-May-2007 espie

tweak _first_of so it can take an extra $filter routine, so that we
get the first set of results that are non empty after filtering
properly.


# 1.6 13-May-2007 espie

provide match_spec, findstem, find_partialstem at the repository list level,
with ld -L like semantics: we stop at the first repository which has the
corresponding packages..


# 1.5 02-May-2007 espie

$o->method() becomes $o->method


# 1.4 15-Apr-2007 espie

update copyright years, standardize licence.
reword the introduction to the stuff originally from FreeBSD to clarify
slightly.


Revision tags: OPENBSD_4_1_BASE
# 1.3 17-Nov-2006 espie

don't return undef, use plain return.
(return undef is only false in a scalar context)
found my perlcritic, one of the few issues I agree with...


Revision tags: OPENBSD_4_0_BASE
# 1.2 08-Mar-2006 espie

propagate stuff to be able to explicitly clean-up repositories.
(we can't use a normal destructor, since this will be called for
each fork()ed subprocess).


# 1.1 04-Mar-2006 espie

cut down the Locator code into maintainable chunks.