]> git.decadent.org.uk Git - dak.git/blobdiff - jennifer
sync
[dak.git] / jennifer
index 0bec17828e6004c32a72a24ec3098968b9138a5a..2cc353ba0b5921d5394b7b7dadc6c08083cbad0d 100755 (executable)
--- a/jennifer
+++ b/jennifer
@@ -2,7 +2,7 @@
 
 # Checks Debian packages from Incoming
 # Copyright (C) 2000, 2001, 2002, 2003  James Troup <james@nocrew.org>
-# $Id: jennifer,v 1.41 2003-10-14 21:52:59 troup Exp $
+# $Id: jennifer,v 1.43 2003-11-07 01:48:58 troup Exp $
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -45,7 +45,7 @@ re_valid_pkg_name = re.compile(r"^[\dA-Za-z][\dA-Za-z\+\-\.]+$");
 ################################################################################
 
 # Globals
-jennifer_version = "$Revision: 1.41 $";
+jennifer_version = "$Revision: 1.43 $";
 
 Cnf = None;
 Options = None;
@@ -406,11 +406,11 @@ def check_files():
             files[file]["source"] = control.Find("Source", files[file]["package"]);
             # Get the source version
             source = files[file]["source"];
-            source_version = ""
+            source_version = "";
             if source.find("(") != -1:
-                m = utils.re_extract_src_version.match(source)
-                source = m.group(1)
-                source_version = m.group(2)
+                m = utils.re_extract_src_version.match(source);
+                source = m.group(1);
+                source_version = m.group(2);
             if not source_version:
                 source_version = files[file]["version"];
             files[file]["source package"] = source;
@@ -622,7 +622,7 @@ def check_dsc ():
         field = dsc.get(field_name);
         if field:
             # Check for broken dpkg-dev lossage...
-            if field.find("ARRAY") == 0:
+            if field.startswith("ARRAY"):
                 reject("%s: invalid %s field produced by a broken version of dpkg-dev (1.10.11)" % (dsc_filename, field_name.title()));
 
             # Have apt try to parse them...