Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/pkgdb.c  ·  View all commits
200 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
J
Fix typos in source code
Jose Luis Duran
7 days ago 10f92f1
B
vaccum: burry the technical message into debug
Baptiste Daroussin
18 days ago ff43e0a
B
search: improve error message
Baptiste Daroussin
18 days ago 05a37ac
B
options: now that options are simple name/value tuples make them kvlist_t
Baptiste Daroussin
22 days ago a25ae64
B
options: remove %Od and %OD they where never used and populated
Baptiste Daroussin
22 days ago 903337f
B
DB: loudly complain if the DB cannot be opened
Baptiste Daroussin
22 days ago 63c7804
B
Honor --repository flag for disabled repos as documented
Baptiste Daroussin
22 days ago fcfe2f6
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
DB: fix a race condition in db initialization
Baptiste Daroussin
1 month ago e9ae436
B
db: only open the db readonly when write is not needed
Baptiste Daroussin
1 month ago 6a93ea1
B
pkgdb_close: remove sqlite3_shutdown
Baptiste Daroussin
1 month ago a376ade
B
DB: Only try to upgrade when the DB is opened RW
Baptiste Daroussin
1 month ago aa53329
B
DB: add missing indexes
Baptiste Daroussin
1 month ago 9c711f4
B
pkgdb: remove useless returns
Baptiste Daroussin
2 months ago 6a8d49e
B
pkgdb: remove dead code
Baptiste Daroussin
2 months ago 3023e7a
B
pkgdb: use SQLITE_CHECKPOINT_TRUNCATE
Baptiste Daroussin
2 months ago 250ba7b
V
pkgdb: open read-only databases in immutable mode to fix WAL access
Vsevolod Stakhov
2 months ago 17cf2e8
V
pkgdb: skip WAL journal mode on read-only databases
Vsevolod Stakhov
2 months ago 9ebf1d2
B
memory: drastically reduce memory usage
Baptiste Daroussin
3 months ago 83243c7
B
compat: sysconf and fstatfs are available on all supported platforms
Baptiste Daroussin
3 months ago 2e8e62f
B
C23: first round at using __has_include
Baptiste Daroussin
3 months ago 0f84b83
I
libpkg: store ignored shlibs in manifest and db
Isaac Freund
3 months ago cd69108
V
pkgdb: enable WAL journal mode for local databases
Vsevolod Stakhov
3 months ago a7ccf3c
B
macos: bring back support for macos
Baptiste Daroussin
4 months ago 4fb4382
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
B
case sensitivity: make the behaviour consistent (and default to no everywhere)
Baptiste Daroussin
5 months ago 51d4a97
B
pkgdb: clean code deduplication
Baptiste Daroussin
6 months ago 6798328
B
db: replace va_args with type safe arguments
Baptiste Daroussin
6 months ago bd2c8c4
B
Fix failure on 32bit
Baptiste Daroussin
6 months ago 15f5bc4
M
libpkg: Simplify pkgdb_register_pkg() slightly
Mark Johnston
6 months ago 1e6e41b
s
pkgdb: track mtime in pkgdb
strssndktn
7 months ago 08bf9b3
s
pkgdb: track uname, gname, permissions and fflags in pkgdb
strssndktn
7 months ago 699f92e
B
case sensitivity: fix inverted default
Baptiste Daroussin
7 months ago 9cf9e10
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 months ago 7dccd36
B
set: relax syntax for origin and fix typo
Baptiste Daroussin
8 months ago 7590092
B
set: allow to bulk "partial replacement"
Baptiste Daroussin
8 months ago d59cddb
S
Merge commit '1c5f88ead8e4239aed25ebf383117342c5c72850'
Shawn Webb
10 months ago 290e90b
B
sql: generalize the use of prepare_sql()
Baptiste Daroussin
11 months ago ea2a046
B
pkgdb: fix statement leak
Baptiste Daroussin
11 months ago 15b97ac
B
multirepo: fix installation respecting priorities
Baptiste Daroussin
11 months ago c94fefb
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
asan: fix issues detected on i386
Baptiste Daroussin
11 months ago 3deb492
B
vec: simplify vec_init() usage
Baptiste Daroussin
1 year ago 6401b82
B
refacto: convert pkgdb's internal list to vectors
Baptiste Daroussin
1 year ago 2729f5b
B
reacto: pkgdb use pkgs_t instead of a custom type
Baptiste Daroussin
1 year ago 9d2555e
B
vec: convert kvlist into vectors
Baptiste Daroussin
1 year ago 28aa748
B
pkg: convert stringlist_t to charv_t
Baptiste Daroussin
1 year ago 3c90262
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
B
install: allow to override timestamp with PKG_INSTALL_EPOCH
Baptiste Daroussin
1 year ago 4aece43
B
Revert "Backout support for provides/requires for pkg add"
Baptiste Daroussin
1 year ago 1ca498b
B
pkgdb: remove debug code
Baptiste Daroussin
1 year ago 4644cf5
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 2498431
B
vec: rename pkgvec.h into pkg/vec.h
Baptiste Daroussin
1 year ago 22dddf2
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago bf1eb68
B
cleanup: in preparation for pkg 2.0 remove deprecated functions
Baptiste Daroussin
1 year ago 78fee45
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 834d09c
K
More leak fixes.
Keve
1 year ago 66e26ae
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c3b674e
K
Change signature of sqlite getcwd callback function.
Keve
1 year ago fba3b42
S
Merge remote-tracking branch 'freebsd/main'
Shawn Webb
1 year ago 84c2214
B
altabi: rename the private field arch into altabi
Baptiste Daroussin
1 year ago 72cc0cd
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c62eec6
B
db: allow passing multiple -r options
Baptiste Daroussin
1 year ago a9eccd9
V
Fix comparison logic
Vsevolod Stakhov
1 year ago ebd24cb
V
Improve `pkgdb_access` API
Vsevolod Stakhov
1 year ago 6037e67
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 851a6a4
B
-r: change behaviour, now always actives the repository
Baptiste Daroussin
1 year ago 75f8989
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 branch 'upstream-master'
Shawn Webb
2 years ago fd4c88b
B
debug: add a db namespace
Baptiste Daroussin
2 years ago 8760a45
B
libpkg: remove now unused pkg_recompute and pkgdb_reanalyse_shlibs
Baptiste Daroussin
2 years ago d839e6f
B
check: make -B rootdir friendly
Baptiste Daroussin
2 years ago b0a68a9
r
libpkg/pkgdb.c: fix the indentation
rilysh
2 years ago 5775b93
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago ffa5b3d
B
repos: move repos database under /var/db/pkg/repos/<name>/db
Baptiste Daroussin
2 years ago 8ecdfa0
B
style: add missing space
Baptiste Daroussin
2 years ago c7cdede
B
pkgdb: change the syscall overload to allow subdirectories
Baptiste Daroussin
2 years ago c3d3b87
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9856def
M
libpkg: Fix database transaction leaks
Mark Johnston
2 years ago 65f6aba
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9ce36fc
B
pkgdb: use the new pkgdb_debug
Baptiste Daroussin
2 years ago 2427355
B
pkgdb: add a wrapper to debug sqlite3 statement
Baptiste Daroussin
2 years ago 564e56b
B
pkgdb: fix typo in a comment
Baptiste Daroussin
2 years ago 85b6c7e
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago a1aca60
B
Backout support for provides/requires for pkg add
Baptiste Daroussin
2 years ago 537d39e
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
G
Improve libpkg interface for plugins use.
Gleb Popov
2 years ago a2d1b9d
G
Emit an error message if sqlite3_close() fails.
Gleb Popov
2 years ago 8af1054
B
add: repect provides/requires
Baptiste Daroussin
3 years ago 98597ca
B
db: vacuum if the db becomes empty
Baptiste Daroussin
3 years ago 1c53e08
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
J
Avoid SQLite3 database corruption.
John Hood
3 years ago d94168d
J
annotate --modify fix
John Hood
3 years ago d54353c
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
sqldb: do sone cleanup and bump schema to version 36
Baptiste Daroussin
3 years ago 1ff6638
B
sql: remove some backward compatibility
Baptiste Daroussin
3 years ago 32e8549
B
unbreak after mtree disappearance
Baptiste Daroussin
3 years ago de17f21
B
sql: remove notion of mtree without breaking the db schema
Baptiste Daroussin
3 years ago 3fb5523
B
sql: rewrite pkg regexp to accept null values as input
Baptiste Daroussin
3 years ago fdbf5e0
B
pkg: add the ability to query by flavors
Baptiste Daroussin
3 years ago 0b15679
B
pkgdb: convert repo handling to tllist
Baptiste Daroussin
3 years ago b0b3231
B
lua_scripts: convert type to string list
Baptiste Daroussin
3 years ago 6d0c152
B
pkgdb: improve debugging expanding the sql which is executed
Baptiste Daroussin
3 years ago c26c932
B
pkgdb: eliminate custom sqlite3 function "split_version"
Baptiste Daroussin
3 years ago 905ac5c
B
digest: fix the index which was not migrated to names
Baptiste Daroussin
3 years ago 20b2db1
B
API: convert all abused hash table into stringlist
Baptiste Daroussin
4 years ago 9b49b83
B
libpkg: convert annotation to kvlist
Baptiste Daroussin
4 years ago a37bc66
B
libpkg: Convert licenses and categories to stringlist
Baptiste Daroussin
4 years ago b5eefda
B
internal: replace kvec with tllist
Baptiste Daroussin
4 years ago 3fdd5e1
B
Fix unused variable
Baptiste Daroussin
4 years ago 7347761
B
pkghash: use iterator every where possible
Baptiste Daroussin
4 years ago 284d5ef
B
sqlite: overload getcwd to always return /
Baptiste Daroussin
4 years ago cc2f7f9
B
pkg: allow filtering files at install time
Baptiste Daroussin
4 years ago 913c637
B
convert from khash to pkghash
Baptiste Daroussin
4 years ago 438bcc6
S
Annotate 2 locations with inconsitent parameter specifications
Stefan Eßer
4 years ago 414fb3b
S
Make -e option orthogonal to other filter options
Stefan Eßer
4 years ago 25254bb
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
debug: expand more sql messages
Baptiste Daroussin
5 years ago cd8f896
B
For all sql error, show the real sql line executed
Baptiste Daroussin
5 years ago ff879d6
B
pkgdb: Better sql error message
Baptiste Daroussin
5 years ago b06dadd
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
B
Remove dead code
Baptiste Daroussin
5 years ago 61fb9e7
B
Factorize some code in sqlite statement preparation
Baptiste Daroussin
5 years ago 3e8b322
B
Remove useless bufferize string
Baptiste Daroussin
5 years ago 9edfc37
S
Merge remote-tracking branch 'upstream/master' into master
Shawn Webb
5 years ago 7e2225c
E
pkg query: Include the files and sum in '%X'
Emmanuel Vadot
5 years ago c337c10
E
pkg query: Fix '%X' to not use the version
Emmanuel Vadot
5 years ago ed15479
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
E
query: Add %X to get the internal checksum of the package
Emmanuel Vadot
5 years ago 366e2df
E
Merge pull request #1848 from freqlabs/pkgdb_obtain_lock-debug
Emmanuel Vadot
5 years ago bc93443
R
Add a debug message for when obtaining a lock fails
Ryan Moeller
5 years ago 27325c8
B
Refresh sqlite3 to latest version
Baptiste Daroussin
6 years ago 2bab6b4
B
Speed up a few remote repo handling by using mmap in sqlite
Baptiste Daroussin
6 years ago 0d2d335
B
allow to pass a savepoint name when registring a package
Baptiste Daroussin
6 years ago 87e8073
B
There is no no need to pass the path to the dbdir to the function that checks for this db access rights.
Baptiste Daroussin
6 years ago 97e214a
B
Convert the db access check into using *at function and filedescriptors
Baptiste Daroussin
6 years ago cba344f
U
libpkg: correct schema syntax
User Idwer
6 years ago 917e4b4
B
Use context variable to determine the status of developer_mode
Baptiste Daroussin
6 years ago 2200f40
B
Add a helper to get the dbdir and the cachedir path
Baptiste Daroussin
6 years ago 8dd464b
B
Fix lua_script deletion
Baptiste Daroussin
6 years ago 51fc820
B
Add support for scripts in lua
Baptiste Daroussin
6 years ago 485bdd9
B
remove dead code
Baptiste Daroussin
6 years ago 172a85c
B
Remove dead code
Baptiste Daroussin
6 years ago 4e5856d
J
Complain more clearly about read-only FS errors.
Jonathan Anderson
8 years ago 189abfb
B
Avoid parsing the ABI file too many times
Baptiste Daroussin
8 years ago 2888b9c
B
Consider locking is always functional and tell the users if database if corrupted on nfs
Baptiste Daroussin
8 years ago 655ddff
B
Fake local.sqlite being in / to avoid sqlite to run getcwd
Baptiste Daroussin
8 years ago 636c182
B
Clean up some grammar
Brad Davis
8 years ago b08e98a
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
More FD usage
Baptiste Daroussin
9 years ago 497f2e6
B
Simple style fixes
Baptiste Daroussin
9 years ago 2a324ab
B
Merge pull request #1553 from stromnet/sqlite3-vfs-lstat-1552
Baptiste Daroussin
9 years ago 9773b5c
J
Add lstat to pkgdb_syscall_overload. Fix filename-only path resolving. Resolves #1552
Johan Ström
9 years ago cb0d529
B
Add a configuration option to allow not using the unix-dotfile on nfs
Baptiste Daroussin
9 years ago 6ed10aa
V
Fix format strings issues
Vsevolod Stakhov
9 years ago 7957c5b
V
Fix repos initialization
Vsevolod Stakhov
9 years ago c95bf07
B
Abort if asprintf fails
Baptiste Daroussin
9 years ago 721c1e2
B
abort() in case of memory failure
Baptiste Daroussin
9 years ago 2a1ca66
B
Update sqlite to 3.15.2
Baptiste Daroussin
9 years ago 798dc98
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Rewrite opening the database around filedescriptors
Baptiste Daroussin
9 years ago 53110b8
B
Reduce code duplication
Baptiste Daroussin
9 years ago 55b980e
B
Overload a couple of sqlite3 syscall to be able to use *at() functions
Baptiste Daroussin
9 years ago d9e4922
B
Finish killing FTS
Baptiste Daroussin
9 years ago ef1cba8
B
Factorise some code to simplify it and fix a usage of out of scope variables
Baptiste Daroussin
10 years ago 4dab964
B
Move upgrade atomicity to per package including during upgrades
Baptiste Daroussin
10 years ago a3e90c4
B
Add brackets after if when the content of the if block is a macro to avoir an issue if the macro is changed to multiline in the futur
Baptiste Daroussin
10 years ago 10dd6ef
B
Remove some dead code a bool is always only 0 or 1
Baptiste Daroussin
10 years ago 5c6e825
B
- Fix a the vital type in the manifest - Chase a few more prepared statements missing vital
Brad Davis
10 years ago ec30257
B
- Add missing plumbing for pkg_set and pkg_get to enable: - Add support to pkg set to toggle the vital flag - Add a pkg query flag (%V) - Add a testcase for the vital flag using set/query
Brad Davis
10 years ago ba6202d
B
Rename precious to vital on suggestion from wblock@
Brad Davis
10 years ago 8ab7285
B
First pass at implementing precious packages
Brad Davis
10 years ago 103076e
V
Add more cleanup when a stale lock has been found
Vsevolod Stakhov
10 years ago 038f1eb
V
Merge branch 'message-rework'
Vsevolod Stakhov
10 years ago 631ae91
V
Added logic to conditionally show messages.
Vsevolod Stakhov
10 years ago d2a08f9
V
More rework for new pkg-message.
Vsevolod Stakhov
10 years ago 0bcc13c
B
Get rid of pkg_strel
Baptiste Daroussin
10 years ago ed5762b
B
Convert pkg_users pkg_groups to strings hash map
Baptiste Daroussin
10 years ago 2d6c6e0
B
Convert pkglist to kvec
Baptiste Daroussin
10 years ago db9cdfc
B
Convert *provides/*requires to khash
Baptiste Daroussin
10 years ago f4dcde2
B
Typo
Baptiste Daroussin
10 years ago 91febf8
B
Allow empty version when updating dependencies
Baptiste Daroussin
10 years ago 922682f
B
Allow pkg add to work even if no version is specified in dependencies
Baptiste Daroussin
10 years ago 1118360
V
Add sqlite function to compare versions of packages.
Vsevolod Stakhov
10 years ago 3525e82
V
Add routine to convert string to operator.
Vsevolod Stakhov
10 years ago 9687aec
V
Enable SQLITE_DETERMINISTIC for internal functions.
Vsevolod Stakhov
10 years ago 394f84c
V
Add migrations.
Vsevolod Stakhov
10 years ago b9b4246
V
Add dep_formula field.
Vsevolod Stakhov
10 years ago ad93098
B
Use new API to generate the checksums when recomputing with pkg check
Baptiste Daroussin
10 years ago 0cc4163
V
Merge pull request #1214 from vstakhov/master
Vsevolod Stakhov
11 years ago 9e14677
V
Register local packages requires.
Vsevolod Stakhov
11 years ago 3a5165a
B
Add a place where to store requires
Baptiste Daroussin
11 years ago 79a5102
B
Merge pull request #1170 from Rolinh/fix-unused-param
Baptiste Daroussin
11 years ago 82be7f2
R
libpkg: prevent unused param warning from sqlite3_profile callback func
Robin Hahling
11 years ago 5393c2a
B
mem leak
Baptiste Daroussin
11 years ago 2f3d85c
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago 23b4ab6
V
Use statvfs if it is available and sane.
Vsevolod Stakhov
11 years ago a795143
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago a5266e8