SHA256
1
0
forked from pool/rpmlint
OBS User unknown
2008-04-17 02:52:37 +00:00
committed by Git OBS Bridge
commit 23d901309b
65 changed files with 4707 additions and 0 deletions

19
usr-arch.diff Normal file
View File

@@ -0,0 +1,19 @@
--- BinariesCheck.py
+++ BinariesCheck.py
@@ -109,6 +109,7 @@
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$')
@@ -181,7 +182,7 @@
printError(pkg, 'arch-independent-package-contains-binary-or-object', i[0])
else:
# in /usr/share ?
- if usr_share.search(i[0]):
+ if usr_share.search(i[0]) and not usr_arch_share.search(i[0]):
printError(pkg, 'arch-dependent-file-in-usr-share', i[0])
# in /etc ?
if etc.search(i[0]):