mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00

Add a script to import "recipe" information from other distro metadata, based on the import_classic.py script. At the moment, this assumes a directory where each subdirectory is a package directory containing a spec file; this would be suitable for distributions such as Fedora assuming you have all of the package repos checked out locally. Since you can add additional information to these records (the cover fields pointing to matching recipes), existing records are updated rather than deleting everything and re-importing, and we only mark records as deleted rather than actually deleting them (in case you accidentally point the script at an empty directory or similar). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
20 lines
406 B
Python
20 lines
406 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('layerindex', '0015_comparison'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='classicrecipe',
|
|
name='deleted',
|
|
field=models.BooleanField(default=False),
|
|
),
|
|
]
|