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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Nov 4 10:32:40 CET 2010


Revision: 11491
          http://gar.svn.sourceforge.net/gar/?rev=11491&view=rev
Author:   wahwah
Date:     2010-11-04 09:32:40 +0000 (Thu, 04 Nov 2010)

Log Message:
-----------
mGAR v2: CSWfoodev (without a dash) is also a devel package.

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

Modified: csw/mgar/gar/v2/lib/python/package_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks.py	2010-11-04 09:16:43 UTC (rev 11490)
+++ csw/mgar/gar/v2/lib/python/package_checks.py	2010-11-04 09:32:40 UTC (rev 11491)
@@ -71,7 +71,7 @@
 
 # Regarding surplus libraries reports
 DO_NOT_REPORT_SURPLUS = set([u"CSWcommon", u"CSWcswclassutils", u"CSWisaexec"])
-DO_NOT_REPORT_SURPLUS_FOR = [r"CSW[a-z\-]+-dev(el)?"]
+DO_NOT_REPORT_SURPLUS_FOR = [r"CSW[a-z\-]+dev(el)?"]
 DO_NOT_REPORT_MISSING = set([])
 DO_NOT_REPORT_MISSING_RE = [r"\*?SUNW.*"]
 

Modified: csw/mgar/gar/v2/lib/python/package_checks_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks_test.py	2010-11-04 09:16:43 UTC (rev 11490)
+++ csw/mgar/gar/v2/lib/python/package_checks_test.py	2010-11-04 09:32:40 UTC (rev 11491)
@@ -270,6 +270,20 @@
     # There should be no error about the dependency on CSWfoo or CSWbar.
 
 
+class TestSetCheckDependenciesDoNotReportSurplusForDevNoDash(
+    DatabaseMockingMixin, CheckpkgUnitTestHelper, unittest.TestCase):
+  FUNCTION_NAME = 'SetCheckLibraries'
+  def CheckpkgTest(self):
+    self.pkg_data_single = self.pkg_data
+    self.pkg_data = [self.pkg_data_single]
+    self.pkg_data[0]["basic_stats"]["pkgname"] = "CSWfoodev"
+    self.pkg_data[0]["depends"].append(["CSWfoo", ""])
+    self.pkg_data[0]["depends"].append(["CSWbar", ""])
+    self.pkg_data[0]["depends"].append(["CSWlibiconv", ""])
+    self.MockDbInteraction()
+    # There should be no error about the dependency on CSWfoo or CSWbar.
+
+
 class TestCheckDependsOnSelf(CheckpkgUnitTestHelper, unittest.TestCase):
   FUNCTION_NAME = 'CheckDependsOnSelf'
   def CheckpkgTest(self):


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