This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use proper 2to3 uniqueness constraints for deb
closes #484 #484 Previously the uniqueness constraints allowed for only one 2to3 unit per Pulp 3 unit to be created. This causes problems when there is more than one Pulp 2 unit that map onto the same Pulp 3 unit to be created. If prevents the resultant Pulp 3 unit from being added to every repo it belongs in.
- Loading branch information
1 parent
dcf24e6
commit 00276b7
Showing
3 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed a bug in the deb migration that caused migrated repos to lack content needed for structured publications in some circumstances. |
53 changes: 53 additions & 0 deletions
53
pulp_2to3_migration/app/migrations/0031_add_repoid_to_deb_types.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Generated by Django 2.2.20 on 2021-12-07 13:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('pulp_2to3_migration', '0030_update_json_field'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='pulp2debcomponent', | ||
name='repoid', | ||
field=models.TextField(default='blub'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='pulp2debrelease', | ||
name='repoid', | ||
field=models.TextField(default='blub'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='pulp2debcomponentpackage', | ||
name='repoid', | ||
field=models.TextField(default='blub'), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='pulp2debreleasearchitecture', | ||
name='repoid', | ||
field=models.TextField(default='blub'), | ||
preserve_default=False, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='pulp2debcomponent', | ||
unique_together={('component', 'codename', 'suite', 'distribution', 'repoid')}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='pulp2debrelease', | ||
unique_together={('codename', 'suite', 'distribution', 'repoid')}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='pulp2debcomponentpackage', | ||
unique_together={('package_relative_path', 'package_sha256', 'component', 'distribution', 'codename', 'suite', 'repoid')}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='pulp2debreleasearchitecture', | ||
unique_together={('architecture', 'distribution', 'codename', 'suite', 'repoid')}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters