]> git.decadent.org.uk Git - dak.git/commitdiff
Ignore missing source file in process-new.
authorTorsten Werner <twerner@debian.org>
Fri, 25 Mar 2011 09:36:24 +0000 (10:36 +0100)
committerTorsten Werner <twerner@debian.org>
Fri, 25 Mar 2011 09:36:24 +0000 (10:36 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/queue.py

index 0d9ca5e1f66336dab2bdcbaca701c318a2e118a9..4ea117b30883abaa2f04a3510e4dd3cdf08af03b 100755 (executable)
@@ -87,6 +87,9 @@ def get_type(f, session):
         file_type = f["dbtype"]
     elif re_source_ext.match(f["type"]):
         file_type = "dsc"
+    elif f['architecture'] == 'source' and f["type"] == 'unreadable':
+        utils.warn('unreadable source file (will continue and hope for the best)')
+        return f["type"]
     else:
         file_type = f["type"]
         utils.fubar("invalid type (%s) for new.  Dazed, confused and sure as heck not continuing." % (file_type))