[csw-devel] SF.net SVN: gar:[8445] csw/mgar/gar/v2/bin

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Feb 10 07:21:18 CET 2010


Revision: 8445
          http://gar.svn.sourceforge.net/gar/?rev=8445&view=rev
Author:   wahwah
Date:     2010-02-10 06:21:18 +0000 (Wed, 10 Feb 2010)

Log Message:
-----------
mGAR v2: moving update_contents_cache.py to the gar/bin directory

Modified Paths:
--------------
    csw/mgar/gar/v2/bin/checkpkg

Added Paths:
-----------
    csw/mgar/gar/v2/bin/update_contents_cache.py

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

Modified: csw/mgar/gar/v2/bin/checkpkg
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg	2010-02-09 21:45:33 UTC (rev 8444)
+++ csw/mgar/gar/v2/bin/checkpkg	2010-02-10 06:21:18 UTC (rev 8445)
@@ -582,7 +582,7 @@
 done
 
 # /var/sadm/install/contents cache update
-${plugindir}/update_contents_cache.py
+${checkpkg_basedir}/update_contents_cache.py
 
 if [[ "${DEBUG}" != "" ]]; then
 	extra_options="--debug"

Deleted: csw/mgar/gar/v2/bin/checkpkg.d/update_contents_cache.py
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg.d/update_contents_cache.py	2010-02-09 21:45:33 UTC (rev 8444)
+++ csw/mgar/gar/v2/bin/checkpkg.d/update_contents_cache.py	2010-02-10 06:21:18 UTC (rev 8445)
@@ -1,28 +0,0 @@
-#!/opt/csw/bin/python2.6
-#
-# $Id$
-#
-# This file only creates an instance of SystemPkgmap in order to update the
-# package cache (if necessary), and display the information about the update.
-
-import os
-import os.path
-import sys
-import logging
-
-# The following bit of code sets the correct path to Python libraries
-# distributed with GAR.
-path_list = [os.getcwd(),
-             os.path.split(sys.argv[0])[0],
-             "..", "..", "lib", "python"]
-sys.path.append(os.path.join(*path_list))
-import checkpkg
-
-def main():
-  print "Checking if the package cache is up to date."
-  logging.basicConfig(level=logging.INFO)
-  test_pkgmap = checkpkg.SystemPkgmap()
-
-
-if __name__ == '__main__':
-	main()

Copied: csw/mgar/gar/v2/bin/update_contents_cache.py (from rev 8433, csw/mgar/gar/v2/bin/checkpkg.d/update_contents_cache.py)
===================================================================
--- csw/mgar/gar/v2/bin/update_contents_cache.py	                        (rev 0)
+++ csw/mgar/gar/v2/bin/update_contents_cache.py	2010-02-10 06:21:18 UTC (rev 8445)
@@ -0,0 +1,28 @@
+#!/opt/csw/bin/python2.6
+#
+# $Id$
+#
+# This file only creates an instance of SystemPkgmap in order to update the
+# package cache (if necessary), and display the information about the update.
+
+import os
+import os.path
+import sys
+import logging
+
+# The following bit of code sets the correct path to Python libraries
+# distributed with GAR.
+path_list = [os.getcwd(),
+             os.path.split(sys.argv[0])[0],
+             "..", "lib", "python"]
+sys.path.append(os.path.join(*path_list))
+import checkpkg
+
+def main():
+  print "Checking if the package cache is up to date."
+  logging.basicConfig(level=logging.INFO)
+  test_pkgmap = checkpkg.SystemPkgmap()
+
+
+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