[dak/master] daklib/archive.py: look for target suites earlier
---
daklib/archive.py | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/daklib/archive.py b/daklib/archive.py
index a55bfab..ef5fceb 100644
--- a/daklib/archive.py
+++ b/daklib/archive.py
@@ -850,28 +850,33 @@ class ArchiveUpload(object):
assert self.changes.valid_signature
try:
+ # Validate signatures and hashes before we do any real work:
for chk in (
checks.SignatureCheck,
checks.ChangesCheck,
- checks.TransitionCheck,
- checks.UploadBlockCheck,
checks.HashesCheck,
checks.SourceCheck,
checks.BinaryCheck,
checks.BinaryTimestampCheck,
- checks.ACLCheck,
checks.SingleDistributionCheck,
- checks.NoSourceOnlyCheck,
- checks.LintianCheck,
):
chk().check(self)
final_suites = self._final_suites()
if len(final_suites) == 0:
- self.reject_reasons.append('Ended with no suite to install to.')
+ self.reject_reasons.append('No target suite found. Please check your target distribution and that you uploaded to the right archive.')
return False
for chk in (
+ checks.TransitionCheck,
+ checks.UploadBlockCheck,
+ checks.ACLCheck,
+ checks.NoSourceOnlyCheck,
+ checks.LintianCheck,
+ ):
+ chk().check(self)
+
+ for chk in (
checks.SourceFormatCheck,
checks.SuiteArchitectureCheck,
checks.VersionCheck,
--
1.7.2.5
Reply to: