Skip to content

Commit 3a40d6f

Browse files
committed
fix(repology): closer keys to pacscript names
1 parent 7aa9150 commit 3a40d6f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

client/public/api-spec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,12 +457,12 @@ components:
457457
description:
458458
type: string
459459
example: 'Helper application for Linux distributions.'
460-
url:
460+
source:
461461
type: array
462462
items:
463463
$ref: '#/components/schemas/ArchDistroString'
464464
example: [{'value': 'https://sources.example.com/node/16.0.1/installer.deb'}]
465-
homepage:
465+
url:
466466
type: string
467467
nullable: true
468468
example: 'https://foobar.com'

server/server/api/repology/types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ type repologyPackage struct {
1818
Description string `json:"description"`
1919
Maintainer []maintainerDetails `json:"maintainer"`
2020
Version string `json:"version"`
21-
URL []pac.ArchDistroString `json:"url"`
22-
Homepage *string `json:"homepage"`
21+
Source []pac.ArchDistroString `json:"source"`
22+
URL *string `json:"url"`
2323
RecipeURL string `json:"recipeUrl"`
2424
PackageDetailsURL string `json:"packageDetailsUrl"`
2525
Type string `json:"type"`
@@ -36,9 +36,9 @@ func newRepologyPackage(p *pac.Script) repologyPackage {
3636
VisibleName: p.PrettyName,
3737
Description: p.Description,
3838
Maintainer: getMaintainers(p),
39-
Version: p.SourceVersion,
40-
URL: p.Source,
41-
Homepage: homepage,
39+
Version: p.Version,
40+
Source: p.Source,
41+
URL: homepage,
4242
Type: string(p.Type()),
4343
RecipeURL: fmt.Sprintf("https://raw.githubusercontent.com/pacstall/pacstall-programs/master/packages/%s/%s.pacscript", p.PackageBase, p.PackageBase),
4444
PackageDetailsURL: fmt.Sprintf("https://pacstall.dev/packages/%s", p.PackageName),

0 commit comments

Comments
 (0)