aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-10 21:04:32 +0200
committerStanislav Ochotnicky <sochotnicky@gmail.com>2009-08-10 21:04:32 +0200
commit7f542a24bd1fc9812fc9e437225a601eb9cb28a8 (patch)
tree05f2feb7fa3183ecb6032bf030864dfe59175db6
parentAdded sorting by path to File model (diff)
downloadcollagen-7f542a24bd1fc9812fc9e437225a601eb9cb28a8.tar.gz
collagen-7f542a24bd1fc9812fc9e437225a601eb9cb28a8.tar.bz2
collagen-7f542a24bd1fc9812fc9e437225a601eb9cb28a8.zip
Fixed missing setting of error code in tinderbox
-rw-r--r--src/tinderbox/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py
index 6829b03..d52c0ce 100644
--- a/src/tinderbox/__init__.py
+++ b/src/tinderbox/__init__.py
@@ -448,6 +448,8 @@ class Package(object):
self.content = self.get_package_contents()
pi.content = self.content
pi.attachments = self.attachments
+ if 0 < len(self.attachments):
+ pi.error = 1
pi.depends = self.depends
pi.profile = self._get_current_profile()
return pi