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

Bug#472499: lintian: please warn about obsolete v1 watch files



Package: lintian
Version: 1.23.46
Severity: wishlist

It would be nice if lintian warned about v1 watch files which are considered 
obsolete.
The following regex could be used to detect: a) obsolete watch files b) watch 
files of an unknown version:

m/^version\s*=\s*(\d+)(\s|$)/

The value in $1 can, atm, be either 2 or 3; if failed to match that regex it 
is very likely it is a v1 watch file, to make sure it is all that needs to be 
done is strip comments (s/^#.*//g) and then check if there's any line with 
real content ([a-zA-Z.\-/0-9] ...) left.

TIA.

Sincerely,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Earth Hour 2008 - Take action!
http://www.earthhour.org/user/xJKk



Reply to: