2009-09-16 18:41:21 +02:00
|
|
|
Index: BinariesCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- BinariesCheck.py.orig
|
2008-04-17 04:52:37 +02:00
|
|
|
+++ BinariesCheck.py
|
2009-09-16 18:41:21 +02:00
|
|
|
@@ -177,6 +177,7 @@ path_regex = re.compile('(.*/)([^/]+)')
|
2009-08-21 18:19:06 +02:00
|
|
|
numeric_dir_regex = re.compile('/usr(?:/share)/man/man./(.*)\.[0-9](?:\.gz|\.bz2)')
|
|
|
|
versioned_dir_regex = re.compile('[^.][0-9]')
|
|
|
|
usr_share = re.compile('^/usr/share/')
|
|
|
|
+usr_arch_share = re.compile('/share/.*/(?:x86|i.86|x86_64|ppc|ppc64|s390|s390x|ia64)')
|
|
|
|
etc = re.compile('^/etc/')
|
|
|
|
not_stripped = re.compile('not stripped')
|
|
|
|
unstrippable = re.compile('\.o$|\.static$')
|
2009-09-16 18:41:21 +02:00
|
|
|
@@ -251,7 +252,7 @@ class BinariesCheck(AbstractCheck.Abstra
|
2009-08-21 18:19:06 +02:00
|
|
|
printError(pkg, 'arch-independent-package-contains-binary-or-object', fname)
|
2008-04-17 04:52:37 +02:00
|
|
|
else:
|
|
|
|
# in /usr/share ?
|
2009-08-21 18:19:06 +02:00
|
|
|
- if usr_share.search(fname):
|
|
|
|
+ if usr_share.search(fname) and not usr_arch_share.search(i[0]):
|
|
|
|
printError(
|
|
|
|
pkg, 'arch-dependent-file-in-usr-share', fname)
|
2008-04-17 04:52:37 +02:00
|
|
|
# in /etc ?
|