summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <nashif@linux.intel.com>2011-03-17 07:31:51 +0000
committerAnas Nashif <nashif@linux.intel.com>2011-03-17 07:31:51 +0000
commit1983b86d8946e03c659c4fc9012c8898d91e5063 (patch)
tree824ff82b5e067fe3706ee35ecea6256495874086
parent6f44c61f3369842687fdf6b46075df5aa0373089 (diff)
downloadkickstarter-1983b86d8946e03c659c4fc9012c8898d91e5063.tar.gz
kickstarter-1983b86d8946e03c659c4fc9012c8898d91e5063.tar.bz2
kickstarter-1983b86d8946e03c659c4fc9012c8898d91e5063.zip
schedule now has cron style syntax
-rw-r--r--configurations.yaml5
-rw-r--r--tools/kickstarter12
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)