Benno Schulenberg posted <[EMAIL PROTECTED]>, excerpted below, on Fri, 11 Nov 2005 12:28:17 +0100:
> Ciaran McCreesh wrote: >> Next draft will propose being able to append .read to a filename >> to mark it read without deleting it. > > But don't use ".read", as it can be understood as both present tense > (imperative) and past tense. Better use something like ".seen". What about using two local dirs, with symlinks from them to the files in the main news repository in the tree? Perhaps $PORTDIR/news, with seen and unseen subdirs (and appropriate no-sync settings on the subdirs) The post sync process can scan for applicable news items, then check in the seen subdir to see if there's a symlink there already. If not, it can place a symlink in the unseen subdir. The unseen subdir need not be checked as the create-symlink function can simply ignore create errors, or overwrite, if one or the other is more efficient than actually checking before attempting the create. If a user wishes to mark everything seen, they simply move the symlinks to the other subdir. A third mode for eclean can be created, that cleans out all the stale symlinks in seen and unseen, thereby eliminating the need for portage to worry about cleaning them out at sync, so it must only manage adding new ones. As with distdir and packagedir, make.conf should have a variable controlling the location of newsdir. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman in http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html -- gentoo-dev@gentoo.org mailing list