Bug#737108: extra patch

2014-01-30 Thread Matthew Baker
Sorry the patch in the original bug report was incorrect. I've attached the
right one
--- /usr/share/pyshared/gamin.py	2012-07-26 03:57:19.0 +0100
+++ gamin.py	2014-01-30 10:25:10.223748107 +
@@ -36,7 +36,7 @@
 
 def GaminErrmsg(err = None):
 if err == None:
-	err = _gamin.Errno()
+err = _gamin.Errno()
 if err == GAM_ARG:
 msg = bad argument error
 elif err == GAM_FILE:
@@ -58,12 +58,12 @@
 class GaminException(Exception):
 def __init__(self, value):
 Exception.__init__(self)
-	self.value = value
-	self.errno = GaminErrno()
+self.value = value
+self.errno = GaminErrno()
 
 def __str__(self):
 str = GaminErrmsg(self.errno)
-	if str != :
+if str != :
 return repr(self.value) + ': ' + str
 return repr(self.value)
 
@@ -76,161 +76,161 @@
FAM API events.
 
 class WatchObject:
-	def __init__ (self, monitor, mon_no, path, dir, callback, data=None):
-	self.monitor = monitor
-	self.callback = callback
-	self.data = data
-	self.path = path
-	self.__mon_no = mon_no
-	if dir == 1:
-		ret = _gamin.MonitorDirectory(self.__mon_no, path, self);
-		if ret  0:
-		raise(GaminException(Failed to monitor directory %s %
-	 (path)))
-	elif dir == 0:
-		ret = _gamin.MonitorFile(self.__mon_no, path, self);
-		if ret  0:
-		raise(GaminException(Failed to monitor file %s %
-	 (path)))
-	elif dir == -1:
-		ret = _gamin.MonitorDebug(self.__mon_no, path, self);
-		if ret  0:
-		raise(GaminException(Failed to debug %s %
-	 (path)))
-	self.__req_no = ret
-
-	def _internal_callback(self, path, event):
-	# it is very important here to catch all exception which may
-	# arise in the client callback code.
-	try:
-		if self.data != None:
-		self.callback (path, event, self.data)
-		else:
-		self.callback (path, event)
-	except:
-		import traceback 
-		traceback.print_exc()
-
-	if event == GAMAcknowledge:
-	try:
-		self.monitor.cancelled.remove(self)
-		except:
-		print gamin failed to remove from cancelled
-		pass
-
-	def cancel(self):
-	ret = _gamin.MonitorCancel(self.__mon_no, self.__req_no);
-	if ret  0:
-		raise(GaminException(Failed to stop monitor on %s %
- (self.path)))
-	try:
-		self.monitor.cancelled.append(self)
-	except:
-	print gamin cancel() failed to add to cancelled
+def __init__ (self, monitor, mon_no, path, dir, callback, data=None):
+self.monitor = monitor
+self.callback = callback
+self.data = data
+self.path = path
+self.__mon_no = mon_no
+if dir == 1:
+ret = _gamin.MonitorDirectory(self.__mon_no, path, self);
+if ret  0:
+raise(GaminException(Failed to monitor directory %s %
+ (path)))
+elif dir == 0:
+ret = _gamin.MonitorFile(self.__mon_no, path, self);
+if ret  0:
+raise(GaminException(Failed to monitor file %s %
+ (path)))
+elif dir == -1:
+ret = _gamin.MonitorDebug(self.__mon_no, path, self);
+if ret  0:
+raise(GaminException(Failed to debug %s %
+ (path)))
+self.__req_no = ret
+
+def _internal_callback(self, path, event):
+# it is very important here to catch all exception which may
+# arise in the client callback code.
+try:
+if self.data != None:
+self.callback (path, event, self.data)
+else:
+self.callback (path, event)
+except:
+import traceback 
+traceback.print_exc()
+
+if event == GAMAcknowledge:
+try:
+self.monitor.cancelled.remove(self)
+except:
+print gamin failed to remove from cancelled
+pass
+
+def cancel(self):
+ret = _gamin.MonitorCancel(self.__mon_no, self.__req_no);
+if ret  0:
+raise(GaminException(Failed to stop monitor on %s %
+ (self.path)))
+try:
+self.monitor.cancelled.append(self)
+except:
+print gamin cancel() failed to add to cancelled
 
 def __init__ (self):
 self.__no = _gamin.MonitorConnect()
-	if self.__no  0:
-	raise(GaminException(Failed to connect to gam_server))
-	self.objects = {}
-	self.__fd = _gamin.GetFd(self.__no)
-	if self.__fd  0:
-	_gamin.MonitorClose(self.__no)
-	raise(GaminException(Failed to get file descriptor))
-	self.cancelled = []
+if self.__no  0:
+raise(GaminException(Failed to connect to 

Bug#737108: python-gamin: mixed use of tabs and spaces in the gamin.py file causing syntax erros

2014-01-30 Thread Matthew Baker
On 30 January 2014 18:12, Jakub Wilk jw...@debian.org wrote:

 If you remove this option from the script's shebang, it should start
 working.


Right you are. Learn something new every day. =]

I've (attempted) to lower the severity


Bug#603832: grub-common: Xen hypervisor not default after installation

2011-11-24 Thread Matthew Baker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

+1

Maybe have a selection in /etc/default/grub, e.g.:

GRUB_XEN_DEFAULT=1

Then have 09_linux_xen_before script with a selector at the top.

if let $GRUB_XEN_DEFAULT ;then
/etc/grub.d/20_linux_xen
fi

Matt
- -- 

 Matthew Baker :: Senior Systems Administrator :: University of Bristol
+--+
| Infrastructure, Systems and Operations  it-sys...@bristol.ac.uk  |
| T: Berkeley Square:  +44(0)117 3314325  (Mon, Thur  Fri)|
| T: Computer Centre:  +44(0)117 3317467  (Tue, Wed)   |
| A: Uni of Bristol, Computer Centre, Tyndal Ave, Bristol. BS81UD  |
+--+
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk7OJKUACgkQLvm7pB/aicOCbgCggRDXSLESS3OIVTgmQQPO0aoT
zsMAn0QqXU6fIiGO8ZUtq6vjHEEo04iL
=S1EG
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#466350: clusterssh: cssh is not good for looking hostname, in .ssh/config

2008-06-10 Thread Matthew Baker
A work around for this without having to edit cssh itself is to add a 
false entry to /etc/hosts for the firewalled box. e.g.


127.0.0.1 foo.fakedomain

ssh honours the Host in ~/.ssh/config over the /etc/hosts entry.

Cheers,

Matt

--
 Matthew Baker, UNIX Systems Administrator
 -
 Institute for Learning and Research Technology (ILRT)
 A: University of Bristol,
8-10 Berkeley Square,
Bristol.
BS8 1HH
 W: http://www.ilrt.bris.ac.uk/
 E: [EMAIL PROTECTED]
 T: Berkeley Square
+44 (0)117 32 14325
 T: Computer Centre
+44 (0)117 32 17467
 F: 35BB AD51 9892 D694 7664  8BFD 2EF9 BBA4 1FDA 89C3
 -



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]