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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Feb 4 03:04:14 CET 2010


Revision: 8342
          http://gar.svn.sourceforge.net/gar/?rev=8342&view=rev
Author:   wahwah
Date:     2010-02-04 02:04:14 +0000 (Thu, 04 Feb 2010)

Log Message:
-----------
mGAR v2: checkpkg, stay silent if the dependencies look good.

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

Modified: csw/mgar/gar/v2/lib/python/checkpkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg.py	2010-02-04 01:55:40 UTC (rev 8341)
+++ csw/mgar/gar/v2/lib/python/checkpkg.py	2010-02-04 02:04:14 UTC (rev 8342)
@@ -41,7 +41,9 @@
     (r".*\.rb", u"CSWruby"),
 )
 
-REPORT_TMPL = u"""# $pkgname:
+REPORT_TMPL = u"""#if $missing_deps or $surplus_deps or $orphan_sonames
+# $pkgname:
+#end if
 #if $missing_deps
 # SUGGESTION: you may want to add some or all of the following as depends:
 #    (Feel free to ignore SUNW or SPRO packages)
@@ -61,9 +63,6 @@
 # ! $soname
 #end for
 #end if
-#if not $missing_deps and not $surplus_deps and not $orphan_sonames
-# + Dependencies of $pkgname look good.
-#end if
 """
 
 ERROR_REPORT_TMPL = u"""#if $errors

Modified: csw/mgar/gar/v2/lib/python/checkpkg_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_test.py	2010-02-04 01:55:40 UTC (rev 8341)
+++ csw/mgar/gar/v2/lib/python/checkpkg_test.py	2010-02-04 02:04:14 UTC (rev 8342)
@@ -578,9 +578,7 @@
     orphan_sonames = set([])
     testdata = (missing_deps, surplus_deps, orphan_sonames)
     checker = checkpkg.CheckpkgBase("/tmp/nonexistent", "CSWfoo")
-    expected = u"""# CSWfoo:
-# + Dependencies of CSWfoo look good.
-"""
+    expected = u""
     result = checker.FormatDepsReport(*testdata)
     self.AssertTextEqual(result, expected)
 


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