[csw-devel] SF.net SVN: gar:[8198] csw/mgar/gar/v2/bin/checkpkg
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Wed Jan 27 14:46:21 CET 2010
Revision: 8198
http://gar.svn.sourceforge.net/gar/?rev=8198&view=rev
Author: wahwah
Date: 2010-01-27 13:46:21 +0000 (Wed, 27 Jan 2010)
Log Message:
-----------
mGAR v2: checkpkg, Adding code to remove old *.pyc files which can cause grief.
Modified Paths:
--------------
csw/mgar/gar/v2/bin/checkpkg
Modified: csw/mgar/gar/v2/bin/checkpkg
===================================================================
--- csw/mgar/gar/v2/bin/checkpkg 2010-01-27 13:21:51 UTC (rev 8197)
+++ csw/mgar/gar/v2/bin/checkpkg 2010-01-27 13:46:21 UTC (rev 8198)
@@ -563,6 +563,16 @@
checkpkg_basedir=${0%/${checkpkg_scriptname}}
plugindir=${checkpkg_basedir}/checkpkg.d
+# Cleaning up old *.pyc files which can cause grief. This is because of the
+# move of Python libraries.
+for pyc_file in ${plugindir}/opencsw.pyc \
+ ${plugindir}/checkpkg.pyc; do
+ if [ -f "${pyc_file}" ]; then
+ echo "Removing old pyc file: '${pyc_file}'"
+ rm "${pyc_file}"
+ fi
+done
+
# /var/sadm/install/contents cache update
${plugindir}/update_contents_cache.py
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