From 1983b86d8946e03c659c4fc9012c8898d91e5063 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 17 Mar 2011 07:31:51 +0000 Subject: [PATCH] schedule now has cron style syntax --- configurations.yaml | 5 +---- tools/kickstarter | 12 ++++++------ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/configurations.yaml b/configurations.yaml index 9642e6c..bfd1631 100644 --- a/configurations.yaml +++ b/configurations.yaml @@ -218,11 +218,8 @@ Configurations: Architecture: ia32 Desktop: DUI Session: "/usr/bin/mcompositor" - Daily: True - Name: MeeGo Handset MTF - Daily: False - Schedule: - - Tuesday + Schedule: "* * * * 3" Active: True Baseline: "1.1.80" Platform: MFLD diff --git a/tools/kickstarter b/tools/kickstarter index 113b032..bfabc2e 100644 --- a/tools/kickstarter +++ b/tools/kickstarter @@ -170,7 +170,7 @@ if __name__ == '__main__': c.text = "%s.ks" %img['FileName'] s.append(c) cc = etree.Element('path') - cc.text = "configurations/%s.ks" %img['FileName'] + cc.text = "image-configs/%s.ks" %img['FileName'] s.append(cc) cc = etree.Element('description') cc.text = "%s" %img['Name'] @@ -180,11 +180,11 @@ if __name__ == '__main__': cc.text = "" s.append(cc) - cc = etree.Element('daily') - if img.has_key('Daily') and img['Daily']: - cc.text = 'yes' - else: - cc.text = 'no' + cc = etree.Element('schedule') + if img.has_key('Schedule'): + cc.text = img['Schedule'] + else: + cc.text = "* * * * *" s.append(cc) root.append(s) str = etree.tostring(root, pretty_print=True) -- 2.7.4