[csw-devel] SF.net SVN: gar:[8176] csw/mgar/gar/v2/bin/checkpkg.d

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Jan 25 16:09:11 CET 2010


Revision: 8176
          http://gar.svn.sourceforge.net/gar/?rev=8176&view=rev
Author:   wahwah
Date:     2010-01-25 15:09:11 +0000 (Mon, 25 Jan 2010)

Log Message:
-----------
mGAR v2: a motivational checking module.

Added Paths:
-----------
    csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-you-can-write-your-own.py

Removed Paths:
-------------
    csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-dummy.py

Deleted: csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-dummy.py
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-dummy.py	2010-01-25 15:02:54 UTC (rev 8175)
+++ csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-dummy.py	2010-01-25 15:09:11 UTC (rev 8176)
@@ -1,21 +0,0 @@
-#!/opt/csw/bin/python2.6
-# $Id$
-
-import checkpkg
-import os.path
-import logging
-
-def main():
-  options, args = checkpkg.GetOptions()
-  if not os.path.isdir(options.extractdir):
-  	raise checkpkg.PackageError("The extract base directory doesn't exist: %s" % options.extractdir)
-  for pkgname in args:
-    pkgpath = os.path.join(options.extractdir, pkgname)
-    if not os.path.isdir(pkgpath):
-      raise checkpkg.PackageError("The package directory doesn't exist: %s" % pkgpath)
-    logging.debug("Dummy plugin says the package %s is extracted to %s",
-                  pkgname, options.extractdir)
-
-
-if __name__ == '__main__':
-	main()

Copied: csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-you-can-write-your-own.py (from rev 8165, csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-dummy.py)
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-you-can-write-your-own.py	                        (rev 0)
+++ csw/mgar/gar/v2/bin/checkpkg.d/checkpkg-you-can-write-your-own.py	2010-01-25 15:09:11 UTC (rev 8176)
@@ -0,0 +1,26 @@
+#!/opt/csw/bin/python2.6
+# $Id$
+
+"""This is a dummy check. You can use it as a boilerplate for your own checks.
+
+Copy it and modify.
+"""
+
+import checkpkg
+import logging
+import os.path
+
+def main():
+  options, args = checkpkg.GetOptions()
+  if not os.path.isdir(options.extractdir):
+  	raise checkpkg.PackageError("The extract base directory doesn't exist: %s" % options.extractdir)
+  for pkgname in args:
+    pkgpath = os.path.join(options.extractdir, pkgname)
+    if not os.path.isdir(pkgpath):
+      raise checkpkg.PackageError("The package directory doesn't exist: %s" % pkgpath)
+    logging.debug("Dummy plugin says the package %s is extracted to %s",
+                  pkgname, options.extractdir)
+
+
+if __name__ == '__main__':
+	main()


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