[csw-devel] SF.net SVN: gar:[11980] csw/mgar/gar/v2/lib/python/system_pkgmap_test.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Dec 17 10:42:20 CET 2010
Revision: 11980
http://gar.svn.sourceforge.net/gar/?rev=11980&view=rev
Author: wahwah
Date: 2010-12-17 09:42:20 +0000 (Fri, 17 Dec 2010)
Log Message:
-----------
checkpkg: Retain the exclamation mark when parsing
When parsing install/contents, return the exclamation mark.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/system_pkgmap_test.py
Modified: csw/mgar/gar/v2/lib/python/system_pkgmap_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/system_pkgmap_test.py 2010-12-17 09:41:32 UTC (rev 11979)
+++ csw/mgar/gar/v2/lib/python/system_pkgmap_test.py 2010-12-17 09:42:20 UTC (rev 11980)
@@ -24,6 +24,8 @@
"? none CSWgcc3g77 CSWgcc3core")
PKGMAP_LINE_6 = ("/usr/lib/libc.so.1 f none 0755 root bin 867444 58567 "
"1250803966 SUNWcsl")
+PKGMAP_LINE_7 = ("/opt/csw/include/mozilla/accessibility/nsAccessNode.h "
+ "f none 0644 root bin 5557 10685 1068611657 !CSWmozilla")
class IndexerUnitTest(unittest.TestCase):
@@ -104,6 +106,12 @@
}
self.assertEqual(expected, spi._ParsePkgmapLine(PKGMAP_LINE_6))
+ def test_ParsePkgmapExclamationMark(self):
+ spi = system_pkgmap.Indexer()
+ self.assertEqual(
+ ["!CSWmozilla"],
+ spi._ParsePkgmapLine(PKGMAP_LINE_7)["pkgnames"])
+
def test_ParsePkgmapLineTypeWrongSyntax(self):
spi = system_pkgmap.Indexer()
self.assertRaises(
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