[csw-devel] SF.net SVN: gar:[20110] csw/mgar/gar/v2/lib/python/inspective_package.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Jan 13 18:37:19 CET 2013


Revision: 20110
          http://gar.svn.sourceforge.net/gar/?rev=20110&view=rev
Author:   wahwah
Date:     2013-01-13 17:37:18 +0000 (Sun, 13 Jan 2013)
Log Message:
-----------
checkpkg: Tolerate some libmagic errors

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/inspective_package.py

Modified: csw/mgar/gar/v2/lib/python/inspective_package.py
===================================================================
--- csw/mgar/gar/v2/lib/python/inspective_package.py	2013-01-13 17:28:54 UTC (rev 20109)
+++ csw/mgar/gar/v2/lib/python/inspective_package.py	2013-01-13 17:37:18 UTC (rev 20110)
@@ -56,7 +56,11 @@
         "You have to restart your process - it "
         "will probably finish successfully when do you that."
         % full_path)
-    raise package.PackageError(msg)
+    if "/opt/csw/share" in full_path:
+    	file_info["mime_type"] = "application/octet-stream; fallback"
+    	logging.error(msg)
+    else:
+      raise package.PackageError(msg)
   if sharedlib_utils.IsBinary(file_info, check_consistency=False):
     parser = hachoir_parser.createParser(full_path)
     if not parser:

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list