Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/pkg_repo.c  ·  View all commits
200 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
B
rwhich: implement file tracking and search for remote repositories
Baptiste Daroussin
8 days ago 9b1f2b1
J
pkg_repo: Add missing spaces in error messages
Jose Luis Duran
9 days ago ced33b9
B
fingerprints, fallback on the host to find them when using -r
Baptiste Daroussin
18 days ago 0092c01
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
repo: do not reinvent str_ends_with
Baptiste Daroussin
2 months ago a1cd9dc
B
repo: factorize fetching code
Baptiste Daroussin
2 months ago 6e3ae8c
B
repo: deduplicate code
Baptiste Daroussin
2 months ago 66619b0
B
repo: fix potential buffer underflow
Baptiste Daroussin
2 months ago db9e391
B
pkg: prevent potential stack overflow
Baptiste Daroussin
2 months ago d04b957
V
fetch: add -s/--symlink option for mirror mode
Vsevolod Stakhov
3 months ago 5a98c3f
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
1 year ago 33f4711
B
STR*EQ: use macros where possible
Baptiste Daroussin
1 year ago 053f4a2
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 5d69131
K
libpkg: push siglen +/- 1 into the ossl signer
Kyle Evans
2 years ago 3766425
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago adf6f88
r
libpkg/pkg_repo.c: multiple trivial changes
rilysh
2 years ago e9d2587
K
libpkg: repo: encode the signature type
Kyle Evans
2 years ago 6b9224b
K
libpkg: abstract rsa away behind a pkgsign interface
Kyle Evans
2 years ago 6aef916
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago c608efa
B
repos: move lock and meta under "/var/db/repos/<name>"
Baptiste Daroussin
2 years ago 76e201a
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago f17f98f
B
repo: remove unused data_len
Baptiste Daroussin
2 years ago bd6fa5c
B
repo: prefer data.pkg over packagesite.pkg
Baptiste Daroussin
2 years ago a992cd2
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 83d60e3
B
repo: fix regression after last refactoring
Baptiste Daroussin
2 years ago a984c25
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9ce36fc
B
repo: refactoring of pkg_repo_fetch_remote_extract_fd
Baptiste Daroussin
2 years ago 4d3acea
B
repo: simplify the signature of pkg_repo_fetch_remote_extract_fd
Baptiste Daroussin
2 years ago ec8db30
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
B
fetch: avoid trying to fetch .txz file when .pkg file is already up to date
Baptiste Daroussin
2 years ago 3fe1484
B
fetch: introduce a new struct fetch_item
Baptiste Daroussin
2 years ago 2027d7a
G
Improve libpkg interface for plugins use.
Gleb Popov
2 years ago a2d1b9d
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
extraction: improve error message
Baptiste Daroussin
4 years ago 9b921a7
B
fingerprints: fix rootdir support
Baptiste Daroussin
4 years ago 7ba7039
B
Fix finding repo fingerprints when using rootdir support
Brad Davis
4 years ago 3f3adaf
B
Use pkghash_get_value
Baptiste Daroussin
4 years ago ff7a207
B
pkg_repo: ensure the variable ret is always existing and assigned
Baptiste Daroussin
4 years ago 4eda786
B
convert from uthash to pkghash
Baptiste Daroussin
4 years ago 7dc30d2
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
package extension: switch for .bsd to .pkg
Baptiste Daroussin
5 years ago 1278736
B
package format: change default extension to ".bsd"
Baptiste Daroussin
5 years ago 020f059
K
libpkg: pkg_repo: expand a comment a little
Kyle Evans
5 years ago fea82f3
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
K
libpkg: bubble up EPKG_UPTODATE in pkg_repo_fetch_meta
Kyle Evans
5 years ago 9cab8d6
B
Get rid of sysexits
Baptiste Daroussin
5 years ago f446c79
B
Add a missing space in error message
Baptiste Daroussin
5 years ago f528fe2
B
add a comment to specify that one day the backward compat should be removed
Baptiste Daroussin
6 years ago 3f0f7d4
B
Fix mess up in the fd during meta.conf fetching
Baptiste Daroussin
6 years ago 5a91078
B
implement uncompressed meta.conf
Baptiste Daroussin
6 years ago caf7e16
B
Factorize some code, so simplify it.
Baptiste Daroussin
6 years ago 13f6366
F
libpkg: remove extra space in revoked message
Franco Fichtner
7 years ago f8da4d5
B
Remove 2 useless headers
Baptiste Daroussin
7 years ago c2f802d
R
Silently return when obj is NULL
Renato Botelho
8 years ago 35d1c92
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
More functions to only use fd
Baptiste Daroussin
9 years ago cd74830
B
Simplify a bit the internal API by always trying to use fd
Baptiste Daroussin
9 years ago 8efc943
B
Fix number of args
Baptiste Daroussin
9 years ago 3a8e82b
B
Simplify the code
Baptiste Daroussin
9 years ago efd2563
B
Use getline instead of mmap when parsing the manifest
Baptiste Daroussin
9 years ago 6812f8a
V
Avoid getcwd calls
Vsevolod Stakhov
9 years ago f5a8e74
V
Avoid getcwd usage when parsing manifests
Vsevolod Stakhov
9 years ago ef1b2d0
V
Fix format strings issues
Vsevolod Stakhov
9 years ago 7957c5b
B
Garbage collect dead code
Baptiste Daroussin
9 years ago 966ae47
B
abort() in case of memory failure
Baptiste Daroussin
9 years ago 2a1ca66
B
Prevent a possible race
Baptiste Daroussin
10 years ago a7a2f70
B
Complete pkg_checksum API and reduce duplicated code
Baptiste Daroussin
10 years ago 8f01347
B
Fix signature checking on arm
Baptiste Daroussin
11 years ago 0fa6ea0
B
Implement resume on fetch for http/ftp
Baptiste Daroussin
11 years ago fd5fba3
M
Display repo priority in pkg -vv output Add new pkg_repo_priority() accessor function Some whitespace cleanup.
Matthew Seaman
11 years ago 7200068
B
Fix bad memory deallocation
Baptiste Daroussin
11 years ago d89aa91
B
Plug a resource leak
Baptiste Daroussin
11 years ago 51c4142
B
Fix previous commit
Baptiste Daroussin
11 years ago 093a28f
B
Properly initial a return code before testing it
Baptiste Daroussin
11 years ago 32824d7
B
Plug memory leaks
Baptiste Daroussin
11 years ago ed4e56a
A
Cosmetic changes
Alexandre Perrin
11 years ago 7349434
B
No need to walk twice on the buffer for updates
Baptiste Daroussin
11 years ago a051937
B
Drop incremental support for pkg update
Baptiste Daroussin
11 years ago dabdd2c
B
Appease yet more gcc 4.2
Baptiste Daroussin
11 years ago f37b637
B
Fix failures with gcc 4.2
Baptiste Daroussin
11 years ago 8da12aa
B
Fix indentation and catchup some missed in previous commit
Baptiste Daroussin
11 years ago f085c1c
B
Remove useless comparison to NULL before freeing variables
Baptiste Daroussin
11 years ago aed2ce7
B
Don't crash if PUBKEY is not set when using SIGNATURE_TYPE:PUBKEY
Bryan Drewery
11 years ago 2a800cd
B
Appease gcc 4.9
Baptiste Daroussin
11 years ago 00aa72b
V
Fix memory corruption when using pkg files.
Vsevolod Stakhov
11 years ago 5b754c2
V
Fixes.
Vsevolod Stakhov
11 years ago eb409a0
V
Umask is meaningless for mkstemp.
Vsevolod Stakhov
11 years ago 2e89913
V
Start to fix displaying.
Vsevolod Stakhov
11 years ago 62b35ee
V
Add mirror flag.
Vsevolod Stakhov
11 years ago 7d20138
V
Check fingerprints only if it is needed.
Vsevolod Stakhov
11 years ago 20865e4
V
Use meta for names of repo files.
Vsevolod Stakhov
11 years ago fec4658
V
Remove unused header.
Vsevolod Stakhov
11 years ago e428069
V
Implement opaque fetching.
Vsevolod Stakhov
11 years ago 49eb93c
V
Merge branch 'gsoc2014'
Vsevolod Stakhov
11 years ago 17804c4
V
No more repo ident/name.
Vsevolod Stakhov
11 years ago 6cbd570
B
Pkg cache: Fix symlinks not being updated. Do this atomically with rename(2).
Bryan Drewery
11 years ago 797353b
B
pkg_repo_fetch_package: Don't try symlinking if path is not set in cases where the file already existed
Bryan Drewery
11 years ago c04c530
B
Add braces around long block
Bryan Drewery
11 years ago 3eb39cd
V
Fix bug with signature checking.
Vsevolod Stakhov
11 years ago d755720
V
C is a dangerous language.
Vsevolod Stakhov
11 years ago f2a40a3
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago b215e9b
B
fetch: Create symlink from PKGNAME.EXT to cached filename
Bryan Drewery
11 years ago aac448a
V
Merge pull request #799 from namore/reduce_checksum_overhead
Vsevolod Stakhov
12 years ago 5863b9d
R
Fixes infinite recursive fetch, thanks "az|_" from IRC to find what causes this.
Roman Naumann
12 years ago e626ccb
V
Merge pull request #794 from namore/reduce_checksum_overhead
Vsevolod Stakhov
12 years ago 3db5d42
R
Reducing checksum overhead.
Roman Naumann
12 years ago b4beb94
V
Fix repos without signatures support.
Vsevolod Stakhov
12 years ago 2da3d3b
V
Perform all archive extraction in a sandbox.
Vsevolod Stakhov
12 years ago b79e0ab
V
Using of strlcpy is unsafe here.
Vsevolod Stakhov
12 years ago 04b67ce
V
Check fingerprints before extracting of data.
Vsevolod Stakhov
12 years ago d69b8d7
V
Merge branch 'pkg-sig-sandbox'
Vsevolod Stakhov
12 years ago 6b74349
V
Fix issues with adding element to the hash.
Vsevolod Stakhov
12 years ago a1d37e8
V
Read string from sandbox till the socket is closed.
Vsevolod Stakhov
12 years ago 946b713
V
Remove unused code.
Vsevolod Stakhov
12 years ago d11cc26
V
Implement fingerprints output parsing.
Vsevolod Stakhov
12 years ago 134e1e3
V
Implement fingerprints sandboxing.
Vsevolod Stakhov
12 years ago 26d00fe
V
Do not call for extra lseek.
Vsevolod Stakhov
12 years ago 27eb15b
V
Add sandboxed extraction for pubkey signature.
Vsevolod Stakhov
12 years ago 201f2ce
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
12 years ago a10094d
V
Merge branch 'sandboxed-sig-verify'
Vsevolod Stakhov
12 years ago c82cf71
V
Get pubkey from meta if possible.
Vsevolod Stakhov
12 years ago 66c631b
V
Set allocated flag for signature key.
Vsevolod Stakhov
12 years ago 1ddbd6c
V
Check meta signature.
Vsevolod Stakhov
12 years ago fea876e
V
Add utility to extract key from meta in sandbox.
Vsevolod Stakhov
12 years ago b01e7a0
V
Add loading of certs from meta in sandboxed mode.
Vsevolod Stakhov
12 years ago 889f6eb
V
Use int64 type for certlen and siglen.
Vsevolod Stakhov
12 years ago d852d04
V
Merge branch 'pubkey-meta'
Vsevolod Stakhov
12 years ago 28f9a88
V
Fix issues with the new code.
Vsevolod Stakhov
12 years ago 089a0ea
V
Add signatures free utility.
Vsevolod Stakhov
12 years ago 68518ae
V
Use correct signature length for pubkeys.
Vsevolod Stakhov
12 years ago 26c3ca8
V
Split extract and check functions for repos.
Vsevolod Stakhov
12 years ago 63225dd
V
Move fingerprint checks to a separate function.
Vsevolod Stakhov
12 years ago a568741
B
Convert struct pkg to mostly be a ucl_object_t and chase libucl changes
Baptiste Daroussin
12 years ago 3a72e6b
B
Replace all ucl_object_free by ucl_object_unref
Baptiste Daroussin
12 years ago b63dfc6
V
Fetch, parse and use remote repo metafile.
Vsevolod Stakhov
12 years ago f710369
V
Add workaround to not refetch all packages.
Vsevolod Stakhov
12 years ago 87a8edf
V
Use unified function to detect cached package name
Vsevolod Stakhov
12 years ago f638f37
V
Rework, split and optimize repo functions.
Vsevolod Stakhov
12 years ago c9cc88b
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 669b695
V
Use short checksum for files in cache.
Vsevolod Stakhov
12 years ago e624257
B
Do not fetch neither cache packages for file:// scheme
Baptiste Daroussin
12 years ago 6cf42ff
B
Name files in cache by their checksum
Baptiste Daroussin
12 years ago a361df4
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
B
Merge branch 'master' into fix-autoremove-completion
Brad Davis
12 years ago 5b00ee1
B
Initialize fconflitcs to NULL
Baptiste Daroussin
12 years ago 98f6908
B
Remove dead code
Baptiste Daroussin
12 years ago 6244018
B
Fix pkg_repo.c building
Baptiste Daroussin
12 years ago a5bde25
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
M
Merge branch 'master' of git://github.com/grembo/pkg into grembo-master
Matthew Seaman
12 years ago 651b2fb
M
Use MAX* cosistently
Michael Gmelin
12 years ago 91c1dcd
V
Include manifest length to the digest file.
Vsevolod Stakhov
12 years ago 96c7bb7
B
Include newline in the public key
Bryan Drewery
12 years ago 2030d1e
B
Comparing to 0 is more proper here instead of EX_OK due to lack of using WEXITSTATUS() on the return code.
Bryan Drewery
12 years ago 0bc7f49
B
pkg repo signing_command: Detect if the command fails and fail early
Bryan Drewery
12 years ago 2bd04a4
B
pkg-repo: Add a -o output_dir option
Bryan Drewery
12 years ago 0d2286b
B
Revert "pkg repo signing_command: Detect if the command fails and fail early"
Bryan Drewery
12 years ago e4dbdd9
B
pkg repo signing_command: Detect if the command fails and fail early
Bryan Drewery
12 years ago d322517
B
Delete temporary txz if pkg repo rsa-key fails
Bryan Drewery
12 years ago ced7504
B
Fix crash when pkg repo rsa-key fails
Bryan Drewery
12 years ago 55a8208
B
Fix memory/fd leak with pkg repo signing_command
Bryan Drewery
12 years ago c9bad8d
B
Remove debugging
Bryan Drewery
12 years ago aec69ab
B
Fix pkg-repo signing_command so it works with single word commands
Bryan Drewery
12 years ago 18b9cf8
B
Stop creating pkg 1.0 catalog
Baptiste Daroussin
12 years ago 73bc688
B
Implement signing the repo with an external command
Baptiste Daroussin
12 years ago c459662
V
Don't count directories when scan for conflicts.
Vsevolod Stakhov
12 years ago a853abb
V
Skip conflicts file in pkg-repo.
Vsevolod Stakhov
12 years ago 0d57e42
V
Show progress bar for skipped packages as well.
Vsevolod Stakhov
12 years ago e09c7eb
V
Fix memory leak in pkg-repo.
Vsevolod Stakhov
12 years ago 51f8a3e
V
Fix memory leak in pkg-repo.
Vsevolod Stakhov
12 years ago 0f8ffa0
V
Fix some bugs in incremental update.
Vsevolod Stakhov
12 years ago 79fc428
V
Add new schema for provides and conflicts.
Vsevolod Stakhov
12 years ago c385c9b
V
Fix SQL queries.
Vsevolod Stakhov
12 years ago 8a25c92
V
Rework conflicts system.
Vsevolod Stakhov
12 years ago 7915464
V
Cleanup temporary db as well.
Vsevolod Stakhov
12 years ago f4882df
V
Add the cleanup of conflicts structures.
Vsevolod Stakhov
12 years ago 495c162
V
Fix bugs in conflicts detection algorithm.
Vsevolod Stakhov
12 years ago 4d15a0c
V
Fix bugs with conflicts detection logic.
Vsevolod Stakhov
12 years ago e36fd81
V
Implement conflicts file output.
Vsevolod Stakhov
12 years ago 011b689
V
Initial implementation of repository conflicts.
Vsevolod Stakhov
12 years ago 2111a11
B
Remove typo
Baptiste Daroussin
12 years ago f49962d
B
repo: Fix missing package path when multiple versions of a package exist
Bryan Drewery
12 years ago 0dc76a8
B
Fix struct packing memory leak on error in pack_db()
Bryan Drewery
12 years ago 0d5aa55
B
Fix struct rsa_key memory leak in pkg_finish_repo() on error
Bryan Drewery
12 years ago 74d7fb0
B
Fix build
Baptiste Daroussin
12 years ago ae0ce2e
B
Use pkg_snprintf to create the url string
Baptiste Daroussin
12 years ago d06d819
B
pkg repo only create the database in 2001 (aka 1.0) format
Baptiste Daroussin
12 years ago 234bf5f
B
Refactor the signing repository code so that the key is being asked only once
Baptiste Daroussin
12 years ago 95de717
M
Repo names vs. identifiers
Matthew Seaman
13 years ago 5fa4f5e
B
Add a new sql function reponame that strips 'repo-' from dbname
Baptiste Daroussin
13 years ago ac4b922
B
Add per repo mirror type, and use the repo all over the place
Baptiste Daroussin
13 years ago 8b17402
B
Remove useless usage of pkg_fetch
Baptiste Daroussin
13 years ago d3cba8d
B
Fix fetching by gathering the reponame from the remote package
Baptiste Daroussin
13 years ago 94f4dd8
B
Do not alter a struct pkg to set the new version, but only push the old informations on it
Baptiste Daroussin
13 years ago b5e8333
B
Always activate multi repos
Baptiste Daroussin
13 years ago f4ffbcd
V
Add compact manifest to a package.
Vsevolod Stakhov
13 years ago 1e73231
V
Introduce flags for manifest emitting.
Vsevolod Stakhov
13 years ago 9ea699b
V
Add flags to pkg_open to allow some optimizations.
Vsevolod Stakhov
13 years ago eb5315f
B
Uses has to figure out manifest keys.
Baptiste Daroussin
13 years ago 37e975b