[csw-devel] SF.net SVN: gar:[15938] csw/mgar/gar/v2/lib/python
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Thu Oct 20 11:35:43 CEST 2011
Revision: 15938
http://gar.svn.sourceforge.net/gar/?rev=15938&view=rev
Author: wahwah
Date: 2011-10-20 09:35:43 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
checkpkg: Small cleanups
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/models.py
csw/mgar/gar/v2/lib/python/pkgdb_test.py
Modified: csw/mgar/gar/v2/lib/python/models.py
===================================================================
--- csw/mgar/gar/v2/lib/python/models.py 2011-10-19 21:50:40 UTC (rev 15937)
+++ csw/mgar/gar/v2/lib/python/models.py 2011-10-20 09:35:43 UTC (rev 15938)
@@ -312,7 +312,8 @@
catrel = sqlobject.ForeignKey('CatalogRelease', notNone=True)
def __unicode__(self):
- return u"Error: %s %s %s" % (self.pkgname, self.tag_name, self.tag_info)
+ return (u"CheckpkgErrorTag: %s %s %s"
+ % (self.pkgname, self.tag_name, self.tag_info))
class CheckpkgOverride(sqlobject.SQLObject):
Modified: csw/mgar/gar/v2/lib/python/pkgdb_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb_test.py 2011-10-19 21:50:40 UTC (rev 15937)
+++ csw/mgar/gar/v2/lib/python/pkgdb_test.py 2011-10-20 09:35:43 UTC (rev 15938)
@@ -1,4 +1,5 @@
#!/usr/bin/env python2.6
+# coding=utf-8
import unittest
import pkgdb
@@ -10,7 +11,8 @@
ci = pkgdb.CatalogImporter()
self.assertEquals(
"/home/mirror/opencsw/current/sparc/5.9/catalog",
- ci.ComposeCatalogFilePath("/home/mirror/opencsw/current", "SunOS5.9", "sparc"))
+ ci.ComposeCatalogFilePath(
+ "/home/mirror/opencsw/current", "SunOS5.9", "sparc"))
class FunctionUnitTest(unittest.TestCase):
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