Fix mono dependency extraction
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 14 Jul 2008 08:53:10 +0000 (11:53 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 14 Jul 2008 08:53:10 +0000 (11:53 +0300)
- use "Mono/.Net assembly" instead of "PE executable" for detection,
  later file reports bitness (eg "PE32 executable"), we just care if its
  mono or not. This is compatible with older libmagic too.

build/rpmfc.c

index 3cc2d6d..6f15b2c 100644 (file)
@@ -490,7 +490,7 @@ static const struct rpmfcTokens_s const rpmfcTokens[] = {
 
   /* XXX .NET executables and libraries.  file(1) cannot differ from win32 
    * executables unfortunately :( */
-  { "PE executable",            RPMFC_MONO|RPMFC_INCLUDE },
+  { "Mono/.Net assembly",       RPMFC_MONO|RPMFC_INCLUDE },
 
   { "current ar archive",      RPMFC_STATIC|RPMFC_LIBRARY|RPMFC_ARCHIVE|RPMFC_INCLUDE },