Danila Fominykh
b63af7e277
metadata tests, json struct tag unification with other linux packages, removed package backup files from metadata and arch package UI
2023-10-09 03:13:53 -03:00
Danila Fominykh
54c0816377
refactoring, better readability in arch package metadata module
2023-10-05 16:16:02 -03:00
Danila Fominykh
b7725c6b53
formatting corrections
2023-10-03 14:58:58 -03:00
Danila Fominykh
784b4f9304
refactoring in metadata module, pacman database creation function
2023-10-02 22:00:44 -03:00
Danila Fominykh
8974d27ba3
refactoring in metadata module, better readability
...
shorter function calls in arch service
fix - request now ends if unable to decode package signature from hex
fix - now package search continues to previous versions in package file for required architecture not found for current version
2023-10-02 19:12:06 -03:00
Danila Fominykh
4656b3b958
replaced bytes.Buffer with packages.HashedBuffer to return working io.ReadSeeker implementation
2023-09-25 18:42:48 -03:00
Danila Fominykh
907aa021a1
refactoring create pacman database function
2023-09-24 14:12:07 -03:00
Danila Fominykh
54fd84d83f
function to get package file property by composite key, refactoring function creating pacman database
2023-09-24 13:32:53 -03:00
Danila Fominykh
a2aaae3dc7
refactoring funciton creating arch package database archive
2023-09-12 12:05:25 -03:00
Danila Fominykh
93b1f854c4
Merge branch 'main' into pacman-packages
2023-08-30 19:41:38 -03:00
Lunny Xiao
476b9d1589
Use docs.gitea.com instead of docs.gitea.io ( #26739 )
2023-08-27 11:59:12 +00:00
Danila Fominykh
ad2af70d5c
Merge branch 'main' into pacman-packages
2023-08-26 17:38:46 +03:00
TimberBro
84d05516dc
Fix NPM packages name validation ( #26595 )
...
- Added new tests to cover corner cases
- Replace existing regex with new one
Closes #26551
---
As @silverwind suggested, I started from
[validate-npm-package-name](https://github.com/npm/validate-npm-package-name ),
but found this solution too complicated.
Then I tried to fix existing regex myself, but thought, that exclude all
restricted symbols is harder, than set only allowed symbols.
Then I search a bit more and found
[package-name-regex](https://github.com/dword-design/package-name-regex )
and regex from it works for all new test cases.
Let me know, if more information or help with this PR is needed.
2023-08-20 15:06:42 +00:00
Danila Fominykh
0d08eaa556
reduced amount of logic, removed unnecessary fields
2023-08-08 19:40:54 +03:00
Danila Fominykh
e86bdfcb0e
metadata and signature are stored in package properties instead of object storage
2023-08-08 16:21:17 +03:00
Danila Fominykh
a3cb45cf3b
Merge branch 'main' into pacman-packages
2023-08-05 12:00:07 +03:00
KN4CK3R
2d3924d0e7
Prevent newline errors with Debian packages ( #26332 )
...
Fixes #26313
2023-08-05 10:59:52 +02:00
Danila Fominykh
28712bc91e
refactoring
2023-08-04 14:52:36 +03:00
Danila Fominykh
0c7aa7f63e
refactoring
2023-08-03 20:43:13 +03:00
Danila Fominykh
ebaa5436ad
lint corrections
2023-08-03 17:36:48 +03:00
Danila Fominykh
d069303825
fixed pacman database creation algorithm, arch UI template
2023-08-02 00:23:12 +03:00
Danila Fominykh
3c6dd37019
Merge branch 'main' into pacman-packages
2023-07-31 10:14:41 +03:00
KN4CK3R
d08ab7be9c
Fix typo in metadata ( #26207 )
...
https://github.com/go-gitea/gitea/pull/26194#discussion_r1277094525
There is no need to backport because these names are just used internal.
2023-07-30 23:54:22 +00:00
Danila Fominykh
3df8d52fb8
changed pacman database creation mechanics, storing package desc as file in object storage, metadata structure update
2023-07-28 16:32:01 +03:00
Danila Fominykh
1abff64ccd
refactoring function to find unique values
2023-07-26 20:32:40 +03:00
Danila Fominykh
ce0d3935bf
removed unnecessary headers in arch package template
2023-07-26 18:42:00 +03:00
silverwind
672b00b542
Merge branch 'main' into pacman-packages
2023-07-25 00:02:26 +02:00
KN4CK3R
6aa30af724
Fix handling of Debian files with trailing slash ( #26087 )
...
Fixes #26022
- Fix handling of files with trailing slash
- Fix handling of duplicate package file errors
- Added test for both
2023-07-24 16:19:44 +02:00
Danila Fominykh
23f1ba193d
replaced base domain variable in metadata with registry host variable in similarly with container registry
2023-07-24 13:33:45 +03:00
Danila Fominykh
0093004d0f
removed distro field from arch package metadata, corrected related UI
2023-07-23 20:18:26 +03:00
Danila Fominykh
1a082903d7
Merge branch 'main' into pacman-packages
2023-07-16 13:09:54 +03:00
KN4CK3R
bd82d8974e
Add support for different Maven POM encoding ( #25873 )
...
Fixes #25853
- Maven POM files aren't always UTF-8 encoded.
- Reject the upload of unparsable POM files
2023-07-14 09:39:15 +00:00
dancheg97
c4f3fb302b
markdown and code documentation lint corrections
2023-07-12 13:32:38 +03:00
dancheg97
8195185607
lint corrections
2023-07-10 20:50:44 +03:00
dancheg97
364c33b0ad
fixed pacman database creation error for case with multiple architectures and distributions
2023-07-09 11:48:46 +03:00
silverwind
b5db5b89e8
Merge branch 'main' into pacman-packages
2023-07-04 20:43:36 +02:00
silverwind
88f835192d
Replace interface{}
with any
( #25686 )
...
Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d
).
2023-07-04 18:36:08 +00:00
KN4CK3R
c890454769
Add direct serving of package content ( #25543 )
...
Fixes #24723
Direct serving of content aka HTTP redirect is not mentioned in any of
the package registry specs but lots of official registries do that so it
should be supported by the usual clients.
2023-07-03 15:33:28 +02:00
dancheg97
56772de730
corrected package blob structure, pacman database is created on get request automatically from package metadata in database
2023-07-02 23:03:34 +03:00
dancheg97
39e42f7c2b
fixed dependencies appended to wrong field in metadata
2023-06-26 17:10:04 +03:00
dancheg97
f1fae9ada6
changed procedure of package metadata ejection, removed unnecessary fields and unnecessary string conversions
2023-06-26 12:28:14 +03:00
dancheg97
1d1a5a312f
added function removing old package entries from pacman database to avoid duplication error
2023-06-25 23:05:02 +03:00
dancheg97
5beeb24684
added method to remove package verified with user's GPG key, removed unnecessary directory creation
2023-06-25 13:15:29 +03:00
dancheg97
c37231189b
corrected package database connection description and documentation reference in UI
2023-06-24 18:08:18 +03:00
dancheg97
e2b12f2db7
fixed error when attempting to read empty database
2023-06-24 17:27:39 +03:00
dancheg97
e399ce8452
opdated operation pacman database craetion to form or update database file in memory, added download counter related to pkg.tar.zst files
2023-06-24 13:37:33 +03:00
dancheg97
b354f027ff
code refactoring and package version publisher id correction
2023-06-21 23:30:07 +03:00
dancheg97
808a7aed67
replaced zstd with archiver and limit reader to speed up metadata ejection and remove windows incompatible dependency
2023-06-21 14:05:25 +03:00
dancheg97
ec18d9b535
added arch packages implementation
2023-06-20 23:08:48 +03:00
KN4CK3R
cdb088cec2
Add CRAN package registry ( #22331 )
...
This PR adds a [CRAN](https://cran.r-project.org/ ) package registry.

2023-05-22 10:57:49 +08:00