forked from pulp/pulp_gem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement compact_index and add digest to gem
fixes pulp#96
- Loading branch information
Showing
10 changed files
with
334 additions
and
225 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 @@ | ||
Implement new compact_index format. Add checksum and dependency information to gem content. |
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,3 @@ | ||
Disable synching without compact index format. Existing on-demand content will be broken after this release. | ||
|
||
TODO: Provide a data repair command. |
This file was deleted.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
pulp_gem/app/migrations/0006_gemremote_excludes_gemremote_includes_and_more.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,58 @@ | ||
# Generated by Django 4.2.1 on 2023-06-14 14:53 | ||
|
||
import django.contrib.postgres.fields.hstore | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0107_distribution_hidden"), | ||
("gem", "0005_rename_gemcontent_shallowgemcontent"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="gemremote", | ||
name="excludes", | ||
field=django.contrib.postgres.fields.hstore.HStoreField(null=True), | ||
), | ||
migrations.AddField( | ||
model_name="gemremote", | ||
name="includes", | ||
field=django.contrib.postgres.fields.hstore.HStoreField(null=True), | ||
), | ||
migrations.AddField( | ||
model_name="gemremote", | ||
name="prereleases", | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.CreateModel( | ||
name="GemContent", | ||
fields=[ | ||
( | ||
"content_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="core.content", | ||
), | ||
), | ||
("name", models.TextField()), | ||
("version", models.TextField()), | ||
("checksum", models.CharField(db_index=True, max_length=64)), | ||
("dependencies", django.contrib.postgres.fields.hstore.HStoreField(default=dict)), | ||
("required_ruby_version", models.TextField(null=True)), | ||
("required_rubygems_version", models.TextField(null=True)), | ||
("prerelease", models.BooleanField(default=False)), | ||
], | ||
options={ | ||
"default_related_name": "%(app_label)s_%(model_name)s", | ||
"unique_together": {("name", "version", "checksum")}, | ||
}, | ||
bases=("core.content",), | ||
), | ||
] |
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
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
Oops, something went wrong.