def check_dir(self, dir, message):
if not os.path.isdir(dir):
- raise IOError(message)
+ raise IOError("%s (%s)" % (message, dir))
def check_architecture(self, arch_dir):
architecture = re.sub('.*?/installer-(.*?)/.*', r'\1', arch_dir)
"DBUpdateError": """Exception raised - could not update the database""",
"ChangesUnicodeError": """Exception raised - changes file not properly utf-8 encoded""",
"AlreadyLockedError": """Exception raised - package already locked by someone else""",
- "CantGetLockError": """Exception raised - lockfile already in use"""
+ "CantGetLockError": """Exception raised - lockfile already in use""",
} #: All dak exceptions
def construct_dak_exception(name, description):
from sqlalchemy.databases import postgres
postgres.ischema_names['debversion'] = DebVersion
else:
- raise Exception("dak only ported to SQLA versions 0.5 to 0.9. See daklib/dbconn.py")
+ raise Exception("dak only ported to SQLA versions 0.5 to 0.9 (%s installed). See daklib/dbconn.py" % sa_major_version)
################################################################################
missingfields.append(keyword)
if len(missingfields):
- raise ParseChangesError("Missing mandantory field(s) in changes file (policy 5.5): %s" % (missingfields))
+ raise ParseChangesError("Missing mandatory field(s) in changes file (policy 5.5): %s" % (missingfields))
return changes