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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Apr 25 19:17:13 CEST 2010


Revision: 9767
          http://gar.svn.sourceforge.net/gar/?rev=9767&view=rev
Author:   wahwah
Date:     2010-04-25 17:17:13 +0000 (Sun, 25 Apr 2010)

Log Message:
-----------
mGAR v2, checkpkg: Adding messages to help Rupert understand the errors.

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

Modified: csw/mgar/gar/v2/lib/python/package_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks.py	2010-04-25 16:14:33 UTC (rev 9766)
+++ csw/mgar/gar/v2/lib/python/package_checks.py	2010-04-25 17:17:13 UTC (rev 9767)
@@ -309,6 +309,10 @@
   license_path = LICENSE_TMPL % catalogname
   pkgmap_paths = [x["path"] for x in pkgmap]
   if license_path not in pkgmap_paths:
+    messenger.Message("The license file needs to be placed "
+                      "at %s. Also see "
+                      "http://sourceforge.net/apps/trac/gar/wiki/CopyRight"
+                      % license_path)
     error_mgr.ReportError(
         "license-missing", license_path,
         "See http://sourceforge.net/apps/trac/gar/wiki/CopyRight")
@@ -566,6 +570,13 @@
 def CheckBadPaths(pkg_data, error_mgr, logger, messenger):
   for regex in pkg_data["bad_paths"]:
     for file_name in pkg_data["bad_paths"][regex]:
+      messenger.Message("File %s contains bad content: %s. "
+                        "It's usually build-machine data. "
+                        "If it's a legacy file you can't modify, "
+                        "add an override "
+                        "for this file.  After doing so, run checkpkg "
+                        "again, you'll need to add an override for "
+                        "the override file too." % (file_name, regex))
       error_mgr.ReportError("file-with-bad-content", "%s %s" % (regex, file_name))
 
 


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