aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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