comfortable with them sitting on HEAD when I don't have time to test
them.
svn path=/trunk/packages/invirt-base/; revision=2097
-invirt-base (0.0.21) unstable; urgency=low
-
- * Get rid of confusing err=True option to invirt.remctl.remctl
-
- -- Evan Broder <broder@mit.edu> Fri, 30 Jan 2009 19:49:46 -0500
-
invirt-base (0.0.20) unstable; urgency=low
* depend on remctl-client
class CodeError(Exception):
"""Exception for internal errors or bad faith input."""
- def __init__(self, message, code=None):
- Exception.__init__(self, message)
- self.code = code
+ pass
#
# Tests.
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
v = p.wait()
+ if kws.get('err'):
+ return p.stdout.read(), p.stderr.read()
if v:
- raise CodeError('ERROR on remctl %s:\n%s' % (args, p.stderr.read()), v)
+ print >> sys.stderr, 'Error', v, 'on remctl', args, ':'
+ print >> sys.stderr, p.stderr.read()
+ raise CodeError('ERROR on remctl')
return p.stdout.read()