]> git.decadent.org.uk Git - dak.git/blobdiff - dak/examine_package.py
whoops, put sensible comment in
[dak.git] / dak / examine_package.py
index f7f3f0d5984225336417f2763cfe4a01e3355fe6..b2366de74ae17dd9bf0382728a38a4350c4f4df4 100755 (executable)
@@ -36,24 +36,7 @@ import errno, os, pg, re, sys, md5
 import apt_pkg, apt_inst
 from daklib import database
 from daklib import utils
-
-################################################################################
-
-re_package = re.compile(r"^(.+?)_.*")
-re_doc_directory = re.compile(r".*/doc/([^/]*).*")
-
-re_contrib = re.compile('^contrib/')
-re_nonfree = re.compile('^non\-free/')
-
-re_arch = re.compile("Architecture: .*")
-re_builddep = re.compile("Build-Depends: .*")
-re_builddepind = re.compile("Build-Depends-Indep: .*")
-
-re_localhost = re.compile("localhost\.localdomain")
-re_version = re.compile('^(.*)\((.*)\)')
-
-re_newlinespace = re.compile('\n')
-re_spacestrip = re.compile('(\s)')
+from daklib.regexes import *
 
 ################################################################################
 
@@ -527,9 +510,9 @@ def main ():
                 if f.endswith(".changes"):
                     check_changes(f)
                 elif f.endswith(".deb") or f.endswith(".udeb"):
-                    # default to unstable when we don't have a .changes file 
+                    # default to unstable when we don't have a .changes file
                     # perhaps this should be a command line option?
-                    check_deb('unstable', file) 
+                    check_deb('unstable', file)
                 elif f.endswith(".dsc"):
                     check_dsc('unstable', f)
                 else: