mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-15 02:45:22 +00:00
Co-authored-by: Peter Verraedt <peter.verraedt@gmail.com>
This commit is contained in:
parent
8b002b429d
commit
81f5a87eb4
|
@ -378,7 +378,7 @@ func buildPrimary(pv *packages_model.PackageVersion, pfs []*packages_model.Packa
|
||||||
Architecture: pd.FileMetadata.Architecture,
|
Architecture: pd.FileMetadata.Architecture,
|
||||||
Version: Version{
|
Version: Version{
|
||||||
Epoch: pd.FileMetadata.Epoch,
|
Epoch: pd.FileMetadata.Epoch,
|
||||||
Version: pd.Version.Version,
|
Version: pd.FileMetadata.Version,
|
||||||
Release: pd.FileMetadata.Release,
|
Release: pd.FileMetadata.Release,
|
||||||
},
|
},
|
||||||
Checksum: Checksum{
|
Checksum: Checksum{
|
||||||
|
@ -466,7 +466,7 @@ func buildFilelists(pv *packages_model.PackageVersion, pfs []*packages_model.Pac
|
||||||
Architecture: pd.FileMetadata.Architecture,
|
Architecture: pd.FileMetadata.Architecture,
|
||||||
Version: Version{
|
Version: Version{
|
||||||
Epoch: pd.FileMetadata.Epoch,
|
Epoch: pd.FileMetadata.Epoch,
|
||||||
Version: pd.Version.Version,
|
Version: pd.FileMetadata.Version,
|
||||||
Release: pd.FileMetadata.Release,
|
Release: pd.FileMetadata.Release,
|
||||||
},
|
},
|
||||||
Files: pd.FileMetadata.Files,
|
Files: pd.FileMetadata.Files,
|
||||||
|
@ -513,7 +513,7 @@ func buildOther(pv *packages_model.PackageVersion, pfs []*packages_model.Package
|
||||||
Architecture: pd.FileMetadata.Architecture,
|
Architecture: pd.FileMetadata.Architecture,
|
||||||
Version: Version{
|
Version: Version{
|
||||||
Epoch: pd.FileMetadata.Epoch,
|
Epoch: pd.FileMetadata.Epoch,
|
||||||
Version: pd.Version.Version,
|
Version: pd.FileMetadata.Version,
|
||||||
Release: pd.FileMetadata.Release,
|
Release: pd.FileMetadata.Release,
|
||||||
},
|
},
|
||||||
Changelogs: pd.FileMetadata.Changelogs,
|
Changelogs: pd.FileMetadata.Changelogs,
|
||||||
|
|
|
@ -196,15 +196,15 @@ gpgkey=%sapi/packages/%s/rpm/repository.key`, user.Name, user.Name, setting.AppN
|
||||||
switch d.Type {
|
switch d.Type {
|
||||||
case "primary":
|
case "primary":
|
||||||
assert.EqualValues(t, 718, d.Size)
|
assert.EqualValues(t, 718, d.Size)
|
||||||
assert.EqualValues(t, 1731, d.OpenSize)
|
assert.EqualValues(t, 1729, d.OpenSize)
|
||||||
assert.Equal(t, "repodata/primary.xml.gz", d.Location.Href)
|
assert.Equal(t, "repodata/primary.xml.gz", d.Location.Href)
|
||||||
case "filelists":
|
case "filelists":
|
||||||
assert.EqualValues(t, 258, d.Size)
|
assert.EqualValues(t, 257, d.Size)
|
||||||
assert.EqualValues(t, 328, d.OpenSize)
|
assert.EqualValues(t, 326, d.OpenSize)
|
||||||
assert.Equal(t, "repodata/filelists.xml.gz", d.Location.Href)
|
assert.Equal(t, "repodata/filelists.xml.gz", d.Location.Href)
|
||||||
case "other":
|
case "other":
|
||||||
assert.EqualValues(t, 308, d.Size)
|
assert.EqualValues(t, 306, d.Size)
|
||||||
assert.EqualValues(t, 396, d.OpenSize)
|
assert.EqualValues(t, 394, d.OpenSize)
|
||||||
assert.Equal(t, "repodata/other.xml.gz", d.Location.Href)
|
assert.Equal(t, "repodata/other.xml.gz", d.Location.Href)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue