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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Apr 20 14:15:29 CEST 2013


Revision: 20824
          http://gar.svn.sourceforge.net/gar/?rev=20824&view=rev
Author:   wahwah
Date:     2013-04-20 12:15:29 +0000 (Sat, 20 Apr 2013)
Log Message:
-----------
checkpkg: When mime type is missing, fail.

All files must have a mime type (even if it's a fallback one).

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

Modified: csw/mgar/gar/v2/lib/python/sharedlib_utils.py
===================================================================
--- csw/mgar/gar/v2/lib/python/sharedlib_utils.py	2013-04-20 12:14:37 UTC (rev 20823)
+++ csw/mgar/gar/v2/lib/python/sharedlib_utils.py	2013-04-20 12:15:29 UTC (rev 20824)
@@ -235,7 +235,7 @@
   is_a_binary = False
   if "mime_type" not in file_info:
     # This would be a problem in the data.
-    return False
+    raise DataInconsistencyError("%r is missing a file type" % file_info)
   if not file_info["mime_type"]:
     # This should never happen, but it seems to have happened at least once.
     # TODO: Find the affected data and figure out why.

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