[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2000 security announcements



On Tue, Jan 11, 2000 at 03:16:36PM +0100, peter karlsson wrote:
> > Yup. I just updated the Makefile in /, which also depends on the
> > security dir/year. Anyone know of any others? The only problem I see
> > with updating the year automatically is making sure that we properly
> > handle the case where nothing's been done that year. (E.g., there is no
> > news/2000 at the moment.) Probably not a big deal.
> 
> I don't think this is a problem, since no new 1999 news are to be added,
> anyway. (Perhaps a bigger problem when it comes to the translations)
> 
> get_recent_list is already intelligent enough to go *back* in time when
> fetching its items, so perhaps it should be modified so that it will
> automatically take the latest news, no matter what year they are dated on
> (so the front page doesn't need "2000" hard-coded into it, as it is now)?
> 
There are a number of things that could be done here.

get_recent_list will go back to the previous year if the current year does
not provide enough entries. This should be fixed to not depend on the dir
for the current year existing. Even better would be to make the function
go back through all the years until the number of desired entries is
reached.

The calls to get_recent_list should have the current year inserted
automatically. This should be done in the call to get_recent_list, not
in the function itself as the function may be called on a directory
that is not named by a year.

The list of years in the SUBS variable can be generated on the fly.
The following will do it:
YEARS:=$(wildcard [12][0-9][0-9][0-9])
SUBS=$(YEARS)

I'll take a look at these and write again after implementing some of them.

-- 
James (Jay) Treacy
treacy@debian.org


Reply to: