[yocto] [PATCH 2/7] Fixed bug of selected attachements for email
Marius Avram
marius.avram at intel.com
Wed Aug 13 06:32:03 PDT 2014
Signed-off-by: Marius Avram <marius.avram at intel.com>
---
upgradehelper.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/upgradehelper.py b/upgradehelper.py
index 091881f..ef59661 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -617,8 +617,8 @@ class UniverseUpdater(Updater, Email):
# Add possible attachments to list
attachments = []
for attachment in os.listdir(self.workdir):
- attachment_fullpath = os.join(self.workdir, attachment)
- if isfile(attachment_fullpath):
+ attachment_fullpath = os.path.join(self.workdir, attachment)
+ if os.path.isfile(attachment_fullpath):
attachments.append(attachment_fullpath)
self.send_email(to_addr, subject, msg_body, attachments)
--
1.7.9.5
More information about the yocto
mailing list