~ubuntu-branches/ubuntu/oneiric/ajaxterm/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/07_use_psyco.diff

  • Committer: Bazaar Package Importer
  • Author(s): Julien Valroff
  • Date: 2010-02-06 09:57:33 UTC
  • Revision ID: james.westby@ubuntu.com-20100206095733-u1ialsvfedxgv45o
Tags: 0.10-5
* Make use of python-support >= 0.6
* Updated to new policy 3.8.4 (no changes needed)
* Bumped debhelper compat to 7
* Removed useless lintian override
* Updated Debian packaging copyright
* Added $AJAXTERM_UID in default file, allowing to change the user running
  ajaxterm (Closes: #531165)
* Make use of start-stop-daemon --group option to also allow to change the
  GID (Closes: #528208)
* Updated README.Debian
* Added patch from Berki Lukács T. <blt@shin.hu>:
  + Make it work with Chrome and possibly other Webkit-based browsers
  + Returns Connection: keep-alive and Content-Length HTTP headers to 
    avoid doing a complete SSL handshake on every keystroke and screen update
  + Added a reaper thread to kill off disconnected sessions
  + Sends SIGHUP rather than SIGTERM on end of session
  + Threaded mode is default
* CVE-2009-1629: ajaxterm generated session IDs with predictable random
  numbers - thanks to Raphael Geissert <geissert@debian.org> (Closes: #528938)
* Added configuration file allowing to set terminal size (Closes: #515987)
* Fixed typo in copyright file - license for sarissa* files is now correct
* Added patch from Sergej Pupykin <ps@lx-ltd.ru> to switch ajaxterm from
  Latin-1 to UTF-8 encoding (Closes: #541850)
* Use start-stop-daemon return code in the init script
* Removed sleep call when restarting ajaxterm daemon
* Added patch to display hostname in login prompt
* Fixed manpage to make lintian happy
* Switched to GIT - updated VCS-* fields accordingly
* Converted package to dh minimal rules files
* Switched to 3.0 (quilt) source format
* Removed pyversions file and use XS-Python-Version field instead
* Build-depend on python rather than on python-dev
* Fixed issue in sarissa with Firefox/Iceweasel 3.6 (Closes: #568372)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Allow use of psyco when available
 
2
Author: Brian Minton <brian@minton.name>
 
3
Bug-Debian: http://bugs.debian.org/504020
 
4
 
 
5
diff -Nur -x '*.orig' -x '*~' ajaxterm/ajaxterm.py ajaxterm.new/ajaxterm.py
 
6
--- ajaxterm/ajaxterm.py        2008-10-31 17:45:08.000000000 +0100
 
7
+++ ajaxterm.new/ajaxterm.py    2008-10-31 17:45:44.000000000 +0100
 
8
@@ -2,6 +2,12 @@
 
9
 
 
10
 """ Ajaxterm """
 
11
 
 
12
+try:
 
13
+       import psyco
 
14
+       psyco.profile()
 
15
+except:
 
16
+       pass
 
17
+
 
18
 import array,cgi,fcntl,glob,mimetypes,optparse,os,pty,random,re,signal,select,sys,threading,time,termios,struct,pwd
 
19
 
 
20
 os.chdir(os.path.normpath(os.path.dirname(__file__)))
 
21
diff -Nur -x '*.orig' -x '*~' ajaxterm/qweb.py ajaxterm.new/qweb.py
 
22
--- ajaxterm/qweb.py    2008-10-31 17:45:07.000000000 +0100
 
23
+++ ajaxterm.new/qweb.py        2008-10-31 17:46:07.000000000 +0100
 
24
@@ -116,6 +116,12 @@
 
25
 except ImportError:
 
26
     import StringIO
 
27
 
 
28
+try:
 
29
+        import psyco
 
30
+        psyco.profile()
 
31
+except:
 
32
+        pass
 
33
+
 
34
 #----------------------------------------------------------
 
35
 # Qweb Xml t-raw t-esc t-if t-foreach t-set t-call t-trim
 
36
 #----------------------------------------------------------