]> git.decadent.org.uk Git - dak.git/commitdiff
Merge remote-tracking branch 'lamby/misc-fixes-796786' into merge
authorJoerg Jaspert <joerg@debian.org>
Thu, 10 Sep 2015 20:07:55 +0000 (22:07 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 10 Sep 2015 20:07:55 +0000 (22:07 +0200)
* lamby/misc-fixes-796786:
  daklib/utils.py: mandantory -> mandatory spelling error
  daliblib/dak_exceptions: Add trailing comma to avoid future VCS noise
  tests/test_packagelist.py: make executable
  dalkib/dbconn.py: Mention which version is installed in sqlalchemy check
  dak/copy_installer.py: Include which directory doesn't exist in exception

dak/copy_installer.py
daklib/dak_exceptions.py
daklib/dbconn.py
daklib/utils.py
tests/test_packagelist.py [changed mode: 0644->0755]

index c70b048dfe22bc9d8c24a76a747a9230df5f556e..2e8a04875fdcd3c5a2a7582f52ee643aa464e5a7 100755 (executable)
@@ -92,7 +92,7 @@ class InstallerCopier:
 
     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)
index ef24fd753ef01bdcbc3e82bad63e2749e94e770d..e111afddb874c6a5a6cefcb01d0e950be6a7f027 100644 (file)
@@ -62,7 +62,7 @@ dakerrors = {
     "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):
index 2d10eff35446b9b0b663bbfcbedd1723d8decd41..e762ef7201f613fe29769fdd1ef1a467073034bc 100644 (file)
@@ -113,7 +113,7 @@ if sa_major_version in ["0.5", "0.6", "0.7", "0.8", "0.9"]:
     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)
 
 ################################################################################
 
index 2cf6871c092e60089cda94ef72cde857231cef53..518d66e9f36d7aaa1159a6454176c7f4eba15706 100644 (file)
@@ -276,7 +276,7 @@ def parse_changes(filename, signing_rules=0, dsc_file=0, keyrings=None):
                 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
 
old mode 100644 (file)
new mode 100755 (executable)