SHA256
1
0
forked from pool/rpmlint
rpmlint/version-control-internal-file.diff

15 lines
862 B
Diff

also detect RCS files
Index: rpmlint-0.84/FilesCheck.py
===================================================================
--- rpmlint-0.84.orig/FilesCheck.py
+++ rpmlint-0.84/FilesCheck.py
@@ -655,7 +655,7 @@ ldconfig_regex=re.compile('^[^#]*ldconfi
depmod_regex=re.compile('^[^#]*depmod', re.MULTILINE)
install_info_regex=re.compile('^[^#]*install-info', re.MULTILINE)
perl_temp_file=re.compile('.*perl.*/(\.packlist|perllocal\.pod)$')
-scm_regex=re.compile('/CVS/[^/]+$|/\.(cvs|git|hg)ignore$|/\.hgtags$|/\.(git|hg|svn)/|/(\.arch-ids|{arch})/')
+scm_regex=re.compile('/(CVS|RCS)(/[^/]+)?$|/\.(cvs|git|hg)ignore$|/\.hgtags$|/\.(git|hg|svn)/|/(\.arch-ids|{arch})/|,v$')
htaccess_regex=re.compile('\.htaccess$')
games_path_regex=re.compile('^/usr(/lib(64)?)?/games/')
games_group_regex=re.compile(Config.getOption('RpmGamesGroups', DEFAULT_GAMES_GROUPS))