diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-03-26 10:40:01 +1300 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:53 +1200 |
commit | 7831eec5434d076a30e397a9562b12fbbcae8491 (patch) | |
tree | 51555b8d4072f354bc8ebaeb2b38e881663bd4d3 /rrs/models.py | |
parent | c607ba6945c12dc8559919aefd136e9dc43da123 (diff) | |
download | openembedded-core-contrib-7831eec5434d076a30e397a9562b12fbbcae8491.tar.gz |
rrs_upgrade_history: use date/commit of last recipe upgrade import
Instead of arbitrarily importing the last 8 days of upgrades, record the
date and commit when we do an import, and then use that information the
next time the script is run.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'rrs/models.py')
-rw-r--r-- | rrs/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rrs/models.py b/rrs/models.py index e466da0737..2833a23078 100644 --- a/rrs/models.py +++ b/rrs/models.py @@ -39,6 +39,8 @@ class MaintenancePlanLayerBranch(models.Model): python3_switch_date = models.DateTimeField('Commit date to switch to Python 3', default=datetime(2016, 6, 2)) python2_environment = models.ForeignKey(PythonEnvironment, related_name='maintplan_layerbranch_python2_set', blank=True, null=True, help_text='Environment to use for Python 2 commits') python3_environment = models.ForeignKey(PythonEnvironment, related_name='maintplan_layerbranch_python3_set', blank=True, null=True, help_text='Environment to use for Python 3 commits') + upgrade_date = models.DateTimeField('Recipe upgrade date', blank=True, null=True) + upgrade_rev = models.CharField('Recipe upgrade revision ', max_length=80, blank=True) class Meta: verbose_name_plural = "Maintenance plan layer branches" |