From patchwork Tue Feb 6 06:24:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 38870 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0B68C48286 for ; Tue, 6 Feb 2024 06:24:53 +0000 (UTC) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mx.groups.io with SMTP id smtpd.web10.16162.1707200684985358351 for ; Mon, 05 Feb 2024 22:24:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b/WpUqBJ; spf=pass (domain: gmail.com, ip: 209.85.210.171, mailfrom: ticotimo@gmail.com) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6e038bdf6b1so1367910b3a.3 for ; Mon, 05 Feb 2024 22:24:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707200684; x=1707805484; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JwLKqZ89Wa8mioLsMs/X4DVPCwNuuFg15YYWyJ4Zm60=; b=b/WpUqBJPCWLlbup0hnv6l3l7dQcLmdN+VwSM875uapkVYa8cbxcXWTeGsEmC/2Trk LusgYdyecvN/SITUeoRZPWeYVyab4VLfitcOwpsy2W4Q1mEEwJtqrHU7cBBYRFsqXaVt oVq5ynCKzoQ6iexhz6+vgUnuf3lWjHNoZeNM7EMpRY/vuy/394qEmHLAs+5avDElKiFx mjMUse+wk1xLDGDjom2bPc/OCS1OjT8EOBDdX9qaQCWZ+WqUCjP+AYE9jK+ZB/eLD5fg 0JqtuYey8TB3vyZn+gH+T9CBkYfkb/kjIXSzpbBziL4ofDjHNeACVOZKDQRG7EtIRJsf GS3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707200684; x=1707805484; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JwLKqZ89Wa8mioLsMs/X4DVPCwNuuFg15YYWyJ4Zm60=; b=HpEPEA0Qm2ewV7TbI7zNoU+moMpADQ+f5NwbWMPs+dsCkhg9eM9Cmewn9If6JdcGXX vEz7UyMENLn2eLLWaALI10mm7ZUQDJccGCauyvA/Foegpv+CQItFPDrKJAS531hQpMJU /KDMnQUWoTuUAmp6q8rFNTOAgEwK9iAMk5tFefWwv1e2qG4aGLhWC9hLeObLm/5hh2NK qa05f5TLJZKNXmEpwpQuMJ7aJ87y0TnWaNrExmB3B0YBodJ398uGE824OxwYOGQ7aTUe RLJ8PyemAoQsWWrrnNce/zBHOU/b0Onfam1rDwVBsvchpmxAfTN1Lo/c0NoDdmaiRm0a DEOQ== X-Gm-Message-State: AOJu0YzxHPxTNYPMbzGk95SGfdsWcm8Heplmd1lhaPPDEw2CQ0cNGA9O 42lq5Sq+1DTqCkWyefTeTM+neelABOlu4rgUn9FZwUh8DVQCdHEzDkZBN+4w X-Google-Smtp-Source: AGHT+IHSPpJMNSb11n+46ahiMNe1gepd/kPbALEwvIqqWNMrAK9gE3CmAnVot6Nsh9Te1+LOyhXjqg== X-Received: by 2002:a05:6a20:4b8a:b0:19e:9968:fe1f with SMTP id fu10-20020a056a204b8a00b0019e9968fe1fmr567115pzb.9.1707200683875; Mon, 05 Feb 2024 22:24:43 -0800 (PST) Received: from chiron.hsd1.or.comcast.net ([2601:1c0:ca01:19f0:8ceb:42af:6dbd:6292]) by smtp.gmail.com with ESMTPSA id o1-20020a056a001b4100b006ddc7ed6edfsm990650pfv.51.2024.02.05.22.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 22:24:43 -0800 (PST) From: Tim Orling X-Google-Original-From: Tim Orling To: yocto@lists.yoctoproject.org Cc: Tim Orling Subject: [layerindex-web][PATCH 1/2] layerindex: allow Repository subdir to be 60 chars Date: Mon, 5 Feb 2024 22:24:30 -0800 Message-Id: <20240206062431.558-1-tim.orling@konsulko.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 06 Feb 2024 06:24:53 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/62401 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)