[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] Check byhand section first



---
 daklib/upload.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/daklib/upload.py b/daklib/upload.py
index 7eb0ef6..7d36cd0 100644
--- a/daklib/upload.py
+++ b/daklib/upload.py
@@ -379,13 +379,15 @@ class Changes(object):
         byhand = []
 
         for f in self.files.itervalues():
+            if f.section == 'byhand' or f.section[:4] == 'raw-':
+                byhand.append(f)
+                continue
             if re_file_dsc.match(f.filename) or re_file_source.match(f.filename) or re_file_binary.match(f.filename):
                 continue
             if re_file_buildinfo.match(f.filename):
                 continue
-            if f.section != 'byhand' and f.section[:4] != 'raw-':
-                raise InvalidChangesException("{0}: {1} looks like a byhand package, but is in section {2}".format(self.filename, f.filename, f.section))
-            byhand.append(f)
+
+            raise InvalidChangesException("{0}: {1} looks like a byhand package, but is in section {2}".format(self.filename, f.filename, f.section))
 
         return byhand
 
-- 
2.1.4


Reply to: