Hi,

here is a small patch to namcap which removes /usr/man from the standrd dirs. 
This should help stopping us storing man pages there and make Eric happy. :-)

Would be nice if someone could apply this to git.

Pierre

-- 

Pierre Schmitz


Clemens-August-Straße 76
53115 Bonn

Telefon         0228 9716608
Mobil           0160 95269831
Jabber          [EMAIL PROTECTED]
WWW             http://www.archlinux.de

From 701c17b05056cb2503f6140155fa245933c4c6e0 Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <[EMAIL PROTECTED]>
Date: Thu, 31 Jul 2008 12:51:56 +0200
Subject: [PATCH] remove /usr/man from standard dirs

---
 Namcap/directoryname.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Namcap/directoryname.py b/Namcap/directoryname.py
index 9693d8f..a4fa5f2 100644
--- a/Namcap/directoryname.py
+++ b/Namcap/directoryname.py
@@ -27,7 +27,7 @@ class package:
 	def prereq(self):
 		return "tar"
 	def analyze(self, pkginfo, tar):
-		valid_paths = ['etc/', 'usr/bin/', 'usr/sbin/', 'usr/lib', 'usr/include/', 'usr/man/', 'usr/share/', 'opt/', '.PKGINFO', '.INSTALL', '.FILELIST', '._install', 'lib/', 'sbin/', 'srv/', 'var/lib/', 'var/opt/', 'var/spool/', 'var/lock/', 'var/state/', 'var/run/', 'var/log/', '.CHANGELOG']
+		valid_paths = ['etc/', 'usr/bin/', 'usr/sbin/', 'usr/lib', 'usr/include/', 'usr/share/', 'opt/', '.PKGINFO', '.INSTALL', '.FILELIST', '._install', 'lib/', 'sbin/', 'srv/', 'var/lib/', 'var/opt/', 'var/spool/', 'var/lock/', 'var/state/', 'var/run/', 'var/log/', '.CHANGELOG']
 		ret = [[],[],[]]
 		for i in tar.getnames():
 			# Replace multiple /'s at the end of a string with a single /
-- 
1.5.6.4

Reply via email to