feat: new stuff
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Strix 2023-10-14 22:39:52 +02:00
parent d1882114c7
commit bd589d8b45
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
15 changed files with 221 additions and 12 deletions

View file

@ -1,3 +1,4 @@
[repo.main]
name = "Main"
url = "tcp://pkgs.ixvd.net:1050"
url = "tcp://pkgs.ixvd.net:1050"

View file

@ -3,4 +3,5 @@ tmp_dir = "/tmp/pkgr"
[storage]
repo_file = "/etc/pkgr.d/repos.toml"
data_dir = "/var/lib/pkgr/packages"
data_dir = "/var/lib/pkgr/packages"
index_dir = "/var/lib/pkgr/indexes"

View file

@ -0,0 +1,20 @@
[index.main]
last_update = "1610219288"
[index.main.packager]
versions = [1, 2, 3]
tags = ["tag"]
## rust
# IndexedPackage
# - name -> packager
# - origin_repo -> main
# - versions -> [1,2,3]
# - tags -> ["tag"]
# - get_package() -> Package
## rust
# Repo
# - name -> main
# - last_update -> 1610219288
# - update_repo() -> io::Result<()>
# - searchIndex(p: PackageIdentifier) -> IndexedPackage