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

[dak/master] nicer reject message when .dsc is missing in upload



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

diff --git a/daklib/upload.py b/daklib/upload.py
index 7d36cd0..2fe8c60 100644
--- a/daklib/upload.py
+++ b/daklib/upload.py
@@ -548,6 +548,9 @@ class Source(object):
                 else:
                     self._dsc_file = f
 
+        if self._dsc_file is None:
+            raise InvalidSourceException("No .dsc included in source files")
+
         # make sure the hash for the dsc is valid before we use it
         self._dsc_file.check(directory)
 
-- 
2.1.4



Reply to: