# HG changeset patch # User d3v11 # Date 1316881314 18000 # Node ID 7399891bf274625a2b85836af7082eeabf302053 # Parent c895033655096d7f57ee59876caadb9a8573cde7 fixed bug on splice3 associated with python2.7 interpreter diff -r c89503365509 -r 7399891bf274 contrib/splice3/CHANGES --- a/contrib/splice3/CHANGES Sat Sep 24 09:50:54 2011 -0500 +++ b/contrib/splice3/CHANGES Sat Sep 24 11:21:54 2011 -0500 @@ -50,3 +50,6 @@ added `make clean`. + Sat Sep 24 2011 + d3v11 Changed Makefile and disabled py_compile + to avoid interpreter errors. diff -r c89503365509 -r 7399891bf274 contrib/splice3/LINUX/splice3.compile --- a/contrib/splice3/LINUX/splice3.compile Sat Sep 24 09:50:54 2011 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -#!/usr/bin/python2.7 -from py_compile import compile -from sys import exit - -try: - compile('LINUX/splice3-deshadow.py', 'LINUX/splice3-deshadow.pyc') -except: - print '***ERROR*** splice3: splice3-deshadow.py failed to compile :-(' - exit('quitting...') - -try: - compile('LINUX/splice3.py', 'LINUX/splice3.pyc') -except: - print '***ERROR*** splice3: splice3.py failed to compile' - exit('quitting...') diff -r c89503365509 -r 7399891bf274 contrib/splice3/LINUX/splice3.py --- a/contrib/splice3/LINUX/splice3.py Sat Sep 24 09:50:54 2011 -0500 +++ b/contrib/splice3/LINUX/splice3.py Sat Sep 24 11:21:54 2011 -0500 @@ -479,7 +479,7 @@ if option.Create is False and RestoreSwitch is False: ShadowSwitch = option.DeShadow if ShadowSwitch is True: - option.cmd = "splice3-deshadow PASSWORD '" + ShadowSalt + "' '" + ShadowValue + "'" + option.cmd = "splice3-deshadow.py PASSWORD '" + ShadowSalt + "' '" + ShadowValue + "'" if option.cmd is None: print "splice3: error: invalid usage" sys.exit(1) diff -r c89503365509 -r 7399891bf274 contrib/splice3/Makefile --- a/contrib/splice3/Makefile Sat Sep 24 09:50:54 2011 -0500 +++ b/contrib/splice3/Makefile Sat Sep 24 11:21:54 2011 -0500 @@ -9,15 +9,13 @@ mkdir DEBIAN/splice3/etc mkdir DEBIAN/splice3/etc/splice3 cp DEBIAN/control DEBIAN/splice3/DEBIAN/control - ./LINUX/splice3.compile - mv LINUX/splice3.pyc DEBIAN/splice3/usr/bin/splice3 - mv LINUX/splice3-deshadow.pyc DEBIAN/splice3/usr/bin/splice3-deshadow + cp LINUX/splice3.py DEBIAN/splice3/usr/bin/splice3 + cp LINUX/splice3-deshadow.py DEBIAN/splice3/usr/bin/splice3-deshadow chmod +x DEBIAN/splice3/usr/bin/splice3 chmod +x DEBIAN/splice3/usr/bin/splice3-deshadow cp SPLICE3/splice3.list DEBIAN/splice3/etc/splice3/splice3.list cp LINUX/manual DEBIAN/splice3/etc/splice3/splice3.1 gzip DEBIAN/splice3/etc/splice3/splice3.1 - #cp SPLICE3/LICENSE DEBIAN/splice3/etc/splice3/LICENSE cp SPLICE3/splice3.L DEBIAN/splice3/etc/splice3/splice3.L cp SPLICE3/splice3.N DEBIAN/splice3/etc/splice3/splice3.N cp SPLICE3/splice3.S DEBIAN/splice3/etc/splice3/splice3.S @@ -32,9 +30,8 @@ install: make clean make uninstall - ./LINUX/splice3.compile - mv LINUX/splice3.pyc /usr/bin/splice3 - mv LINUX/splice3-deshadow.pyc /usr/bin/splice3-deshadow + cp LINUX/splice3.py /usr/bin/splice3 + cp LINUX/splice3-deshadow.py /usr/bin/splice3-deshadow chmod +x /usr/bin/splice3 chmod +x /usr/bin/splice3-deshadow mkdir /etc/splice3 @@ -48,7 +45,6 @@ cp SPLICE3/splice3.LS /etc/splice3/splice3.LS cp SPLICE3/splice3.NS /etc/splice3/splice3.NS cp SPLICE3/splice3.LNS /etc/splice3/splice3.LNS - #cp SPLICE3/LICENSE /etc/splice3/LICENSE uninstall: rm -rf /etc/splice3 @@ -68,5 +64,5 @@ cat CHANGES clean: - rm */*.pyc DEBIAN/splice3 DEBIAN/*.deb -rf + rm DEBIAN/splice3 DEBIAN/*.deb -rf