From 1204b07cf713d47e3d599d2ebb43ebbc7f9f95d8 Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Mon, 29 Jan 2024 19:43:09 -0800 Subject: [PATCH] layerindex: allow Repository subdir to be 60 chars https://github.com/webosose/meta-webosose has layers like: meta-webos-backports/meta-webos-backports-4.1 which is 45 characters. Allow for up to 60 characters in the vcs_subdir field in the LayerBranch class. [YOCTO #15374] Signed-off-by: Tim Orling --- .../0049_alter_layerbranch_vcs_subdir.py | 22 +++++++++++++++++++ layerindex/models.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 layerindex/migrations/0049_alter_layerbranch_vcs_subdir.py diff --git a/layerindex/migrations/0049_alter_layerbranch_vcs_subdir.py b/layerindex/migrations/0049_alter_layerbranch_vcs_subdir.py new file mode 100644 index 0000000..028a481 --- /dev/null +++ b/layerindex/migrations/0049_alter_layerbranch_vcs_subdir.py @@ -0,0 +1,22 @@ +# Generated by Django 4.2.9 on 2024-01-30 03:48 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("layerindex", "0048_bbclassglobal_bbclassrecipe_bbclass_bbclass_type"), + ] + + operations = [ + migrations.AlterField( + model_name="layerbranch", + name="vcs_subdir", + field=models.CharField( + blank=True, + help_text="Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)", + max_length=60, + verbose_name="Repository subdirectory", + ), + ), + ] diff --git a/layerindex/models.py b/layerindex/models.py index c52927f..50be60f 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -234,7 +234,7 @@ class LayerBranch(models.Model): branch = models.ForeignKey(Branch, on_delete=models.CASCADE) collection = models.CharField('Layer Collection', max_length=40, null=True, blank=True, help_text='Name of the collection that the layer provides for the purpose of expressing dependencies (as specified in BBFILE_COLLECTIONS). Can only contain letters, numbers and dashes.') version = models.CharField('Layer Version', max_length=10, null=True, blank=True, help_text='The layer version for this particular branch.') - vcs_subdir = models.CharField('Repository subdirectory', max_length=40, blank=True, help_text='Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)') + vcs_subdir = models.CharField('Repository subdirectory', max_length=60, blank=True, help_text='Subdirectory within the repository where the layer is located, if not in the root (usually only used if the repository contains more than one layer)') vcs_last_fetch = models.DateTimeField('Last successful fetch', blank=True, null=True) vcs_last_rev = models.CharField('Last revision fetched', max_length=80, blank=True) vcs_last_commit = models.DateTimeField('Last commit date', blank=True, null=True)