Skip to content

Commit 5a06610

Browse files
add docs
1 parent 1ff53cd commit 5a06610

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/content/usage/packages/arch.en-us.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ pacman -Sy package
3434

3535
## Upload packages
3636

37-
When uploading the package to gitea, you have to prepare package file with the `.pkg.tar.zst` extension and optionally its `.pkg.tar.zst.sig` signature. You can use [curl](https://curl.se/) or any other HTTP client, Gitea supports multiple [authentication schemes](https://docs.gitea.com/usage/authentication). The upload command will create 3 files: package, signature and desc file for the pacman database (which will be created automatically on request).
37+
When uploading the package to gitea, you have to prepare package file with the `.pkg.tar.zst` extension You can use [curl](https://curl.se/) or any other HTTP client, Gitea supports multiple [authentication schemes](https://docs.gitea.com/usage/authentication). The upload command will create 3 files: package, signature and desc file for the pacman database (which will be created automatically on request).
3838

3939
The following command will upload arch package and related signature to gitea with basic authentification:
4040

4141
```sh
4242
curl -X PUT \
43-
https://{domain}/api/packages/{owner}/arch/{package-1-1-x86_64.pkg.tar.zst}/{archlinux}/$(xxd -p package-1-1-x86_64.pkg.tar.zst.sig | tr -d '\n') \
43+
https://{domain}/api/packages/{owner}/arch/{group} \
4444
--user your_username:your_token_or_password \
4545
--header "Content-Type: application/octet-stream" \
4646
--data-binary '@/path/to/package/file/package-1-1-x86_64.pkg.tar.zst'
@@ -52,7 +52,7 @@ The `DELETE` method will remove specific package version, and all package files
5252

5353
```sh
5454
curl -X DELETE \
55-
https://{domain}/api/packages/{user}/arch/{package}/{version} \
55+
https://{domain}/api/packages/{user}/arch/{group}/{package}/{version} \
5656
--user your_username:your_token_or_password
5757
```
5858

0 commit comments

Comments
 (0)