[csw-devel] SF.net SVN: gar:[7827] csw/mgar/gar/v2-checkpkg/bin/checkpkg.d/ checkpkg-obsolete-deps.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Jan 2 12:14:03 CET 2010


Revision: 7827
          http://gar.svn.sourceforge.net/gar/?rev=7827&view=rev
Author:   wahwah
Date:     2010-01-02 11:14:03 +0000 (Sat, 02 Jan 2010)

Log Message:
-----------
mGAR v2-checkpkg: A hint is better than a reason

Modified Paths:
--------------
    csw/mgar/gar/v2-checkpkg/bin/checkpkg.d/checkpkg-obsolete-deps.py

Modified: csw/mgar/gar/v2-checkpkg/bin/checkpkg.d/checkpkg-obsolete-deps.py
===================================================================
--- csw/mgar/gar/v2-checkpkg/bin/checkpkg.d/checkpkg-obsolete-deps.py	2010-01-02 11:01:42 UTC (rev 7826)
+++ csw/mgar/gar/v2-checkpkg/bin/checkpkg.d/checkpkg-obsolete-deps.py	2010-01-02 11:14:03 UTC (rev 7827)
@@ -8,11 +8,11 @@
 
 OBSOLETE_DEPS = {
     # "CSWfoo": {
-    #   "reason": "Due to...",
+    #   "hint": "Do this...",
     #   "url": "http://www.opencsw.org/bugtrack/view.php?id=..."
     # },
     "CSWpython-rt": {
-      "reason": "CSWpython-rt is deprecated.",
+      "hint": "CSWpython-rt is deprecated, use CSWpython instead.",
       "url": "http://www.opencsw.org/bugtrack/view.php?id=4031"
     },
 }
@@ -30,8 +30,8 @@
       for pkg in obsolete_pkg_deps:
         print ("ERROR: Package %s should not depend on %s."
                % (checker.pkgname, pkg))
-        if "reason" in OBSOLETE_DEPS[pkg]:
-          print "Reason:", OBSOLETE_DEPS[pkg]["reason"]
+        if "hint" in OBSOLETE_DEPS[pkg]:
+          print "Hint:", OBSOLETE_DEPS[pkg]["hint"]
         if "url" in OBSOLETE_DEPS[pkg]:
           print "URL:", OBSOLETE_DEPS[pkg]["url"]
   if ok:


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