Discussion:
[Midnightbsd-cvs] src: lib/libmport: The mport index should not be unloaded if a recentish
laffer1
2011-05-20 12:49:37 UTC
Permalink
Log Message:
-----------
The mport index should not be unloaded if a recentish version cannot be downloaded. If we have one to work with, use it. This allows mport list & friends to work when the index hasn't been updated on stargazer for some time or when network connectivity is limited. You can at least compare what you have installed to the last index.

Refactor the mirror list routine to return the number of mirrors. We may want this available later for display in a UI and it's helpful when debugging.

Modified Files:
--------------
src/lib/libmport:
fetch.c (r1.6 -> r1.7)
(http://cvsweb.midnightbsd.org/src/lib/libmport/fetch.c?r1=1.6&r2=1.7)
index.c (r1.12 -> r1.13)
(http://cvsweb.midnightbsd.org/src/lib/libmport/index.c?r1=1.12&r2=1.13)
mport_private.h (r1.7 -> r1.8)
(http://cvsweb.midnightbsd.org/src/lib/libmport/mport_private.h?r1=1.7&r2=1.8)
laffer1
2011-05-20 12:49:37 UTC
Permalink
Log Message:
-----------
The mport index should not be unloaded if a recentish version cannot be downloaded. If we have one to work with, use it. This allows mport list & friends to work when the index hasn't been updated on stargazer for some time or when network connectivity is limited. You can at least compare what you have installed to the last index.

Refactor the mirror list routine to return the number of mirrors. We may want this available later for display in a UI and it's helpful when debugging.

Modified Files:
--------------
src/lib/libmport:
fetch.c (r1.6 -> r1.7)
(http://cvsweb.midnightbsd.org/src/lib/libmport/fetch.c?r1=1.6&r2=1.7)
index.c (r1.12 -> r1.13)
(http://cvsweb.midnightbsd.org/src/lib/libmport/index.c?r1=1.12&r2=1.13)
mport_private.h (r1.7 -> r1.8)
(http://cvsweb.midnightbsd.org/src/lib/libmport/mport_private.h?r1=1.7&r2=1.8)
Loading...