Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/pkg_delete.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
rcscript: rewrite entirely to be safer
Baptiste Daroussin
8 days ago 2e3e34b
B
triggers: fix execution of per packages triggers on pkg add/register
Baptiste Daroussin
21 days ago ee156e7
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
triggers: add a "pkg_upgrade" variable for per packages triggers
Baptiste Daroussin
2 months ago 4b9ba49
B
triggers: add per package triggers
Baptiste Daroussin
2 months ago c0006d2
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
E
unregister: Do not delete empty directories
Emmanuel Vadot
5 months ago d23ccf0
E
Add unregister
Emmanuel Vadot
5 months ago e133b21
B
split_upgrade: fix inverted logicic in pkg_delete
Baptiste Daroussin
6 months ago 1d39986
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 months ago 7dccd36
M
libpkg: Implement backup_libraries for split upgrades
Mark Johnston
8 months ago 433a079
E
pkg_delete: Run script even for split upgrade
Emmanuel Vadot
9 months ago 6a6c609
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
vec: convert pkg-message to vector
Baptiste Daroussin
1 year ago c01f2b7
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
script-noexec: prevent anyscript which would call an external script
Baptiste Daroussin
1 year ago 0c1fea2
B
progress: fix progression and job count
Baptiste Daroussin
1 year ago 777ce1f
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 834d09c
K
Final round of low hanging leaks.
Keve
1 year ago 2cbdc3b
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 3088caa
G
Fix heap-buffer-overflow found by ASAN
Gleb Popov
1 year ago c1db5ac
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 7c30b5f
M
libpkg: Avoid an out-of-bounds access in pkg_delete_dir()
Mark Johnston
1 year ago 7717407
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 9ce36fc
G
Add cancellation support for delete jobs.
Gleb Popov
2 years ago 4e0cc10
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
B
delete: check ensure we do not over or under run the path array
Baptiste Daroussin
2 years ago ab3f432
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
M
libpkg: Try to merge config files across split upgrades
Mark Johnston
3 years ago 4ddb234
M
libpkg: Simplify pkg_delete() a bit
Mark Johnston
3 years ago 5754614
M
libpkg: Remove the "force" parameter from pkg_delete_files()
Mark Johnston
3 years ago 2be9fd9
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago e294fea
B
triggers: rework the cleanup triggers
Baptiste Daroussin
3 years ago 399d7a2
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
pkg: convert dir_to_del to stringlist
Baptiste Daroussin
3 years ago e51cfdd
B
messages: convert to tllist
Baptiste Daroussin
3 years ago 0b8ce04
B
scripts: fix logic inversion which worked fine by accident
Baptiste Daroussin
4 years ago f9fc9f1
B
convert from khash to pkghash
Baptiste Daroussin
4 years ago 438bcc6
B
quality: remove dead assignements
Baptiste Daroussin
4 years ago d1f7fc9
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
B
Implement triggers
Baptiste Daroussin
5 years ago a4de42d
B
Use open_memstream p1
Baptiste Daroussin
5 years ago 383d27c
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
B
Run lua scripts before shell scripts
Baptiste Daroussin
5 years ago 5db007b
E
Call pkg_open_root_fd before running and scripts.
Emmanuel Vadot
5 years ago 163f650
B
Add a variable to notify scripts when they are running for an upgrade
Baptiste Daroussin
6 years ago 5f91af0
B
Remove never used upgrade scripts
Baptiste Daroussin
6 years ago 5278d0b
B
Use context variable to determine the status of developer_mode
Baptiste Daroussin
6 years ago 2200f40
B
Add support for scripts in lua
Baptiste Daroussin
6 years ago 485bdd9
B
Merge branch 'autosetup'
Baptiste Daroussin
7 years ago b9c18cf
B
Test struct members for flags support
Baptiste Daroussin
7 years ago 8d71643
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
Remove unused variable
Baptiste Daroussin
9 years ago 268ded2
B
Merge pull request #1532 from fichtner/always_delete
Baptiste Daroussin
9 years ago 9bbe5e6
F
pkg-delete: do not leave modified files behind
Franco Fichtner
9 years ago 70b46b1
V
Fix format strings issues
Vsevolod Stakhov
9 years ago 7957c5b
B
Fix dead assignment
Baptiste Daroussin
9 years ago a108958
B
Plug a memory leak
Baptiste Daroussin
9 years ago 1b973b7
B
abort() in case of memory failure
Baptiste Daroussin
9 years ago 2a1ca66
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Fix potential segfault in case a directory does not exists
Baptiste Daroussin
9 years ago d0fc925
B
Prevent potential buffer overflow found using llvm fsanitize=address
Baptiste Daroussin
9 years ago 3cee614
B
Only check deinstall scripts in case developer is set
Baptiste Daroussin
9 years ago d58c1c8
B
Do not fail during POST-DEINSTALL scripts too many failures
Baptiste Daroussin
9 years ago 8ddcbbb
B
Improve error reporting when trying to delete a non existing file (#1337)
Baptiste Daroussin
10 years ago f29f719
B
add a new event: PKG_EVENT_FILE_MISSING
Baptiste Daroussin
10 years ago 1ecbb20
B
Now fix on OSX
Baptiste Daroussin
10 years ago eb2ddee
B
Fix one more warning on linux
Baptiste Daroussin
10 years ago c266d30
B
Fix warning on debian
Baptiste Daroussin
10 years ago 0427dfa
B
Rework messages to be fully context aware
Baptiste Daroussin
10 years ago 9ec411c
B
Restore files order
Baptiste Daroussin
10 years ago b0f1d58
B
Count splitted upgrades as one single actions
Baptiste Daroussin
10 years ago 218a436
B
Convert pkg_dir and pkg_config_file to khash
Baptiste Daroussin
10 years ago 89906ca
B
Convert pkg_files to khash
Baptiste Daroussin
10 years ago 942aa46
B
Remove unused variable
Baptiste Daroussin
10 years ago a2ee3ba
B
Add new pkg_checksum_validate_fileat and use it
Baptiste Daroussin
10 years ago aa950e3
B
Use new API to generate the checksums when recomputing with pkg check
Baptiste Daroussin
10 years ago 0cc4163
B
Complete pkg_checksum API and reduce duplicated code
Baptiste Daroussin
10 years ago 8f01347
B
Merge pull request #1221 from khorben/khorben/nounlink
Baptiste Daroussin
11 years ago 2e75baf
P
Portability fix for UF_NOUNLINK
Pierre Pronchery
11 years ago 13a75f8
B
Ensure to correctly detect directories to delete if prefix ends with '/'
Baptiste Daroussin
11 years ago ab55ec6
B
Add debug information about what file is being deleted
Baptiste Daroussin
11 years ago 9ad2f92
B
Yet another bracket mess up
Baptiste Daroussin
11 years ago 304a28f
B
Ensure fchflags are properly apply if chflagsat does not exists
Baptiste Daroussin
11 years ago 540ac94
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
11 years ago 23b4ab6
V
Eliminate some more FreeBSD'sms
Vsevolod Stakhov
11 years ago 32d7ad1
B
Ahem... lalala
Baptiste Daroussin
11 years ago 97aaae0
B
Apple does not support [US]F_NOUNLINK
Baptiste Daroussin
11 years ago 12735fb
B
Add more flags to check
Baptiste Daroussin
11 years ago 97ed3f9
B
Completly reset all flags during operations on files with immutables flags
Baptiste Daroussin
11 years ago 93d1647
B
Try to fix on osx
Baptiste Daroussin
11 years ago 95324c3
B
Fix build on platforms without chflags and those without chflagsat
Baptiste Daroussin
11 years ago 40de1c0
B
Handle all flags preventing file manipulation
Baptiste Daroussin
11 years ago 7fec3fe
B
Merge pull request #1113 from landonf/osx/release/0.1
Baptiste Daroussin
11 years ago 3eafef1
L
Merge branch 'master' into osx/main
Landon Fuller
11 years ago 765e51f
A
During removal, if a directory was already removed by a bogus script, continue removing parents. This was causing leftover directories on japanese/font-* ports
Antoine Brodin
11 years ago 622b317
L
Initial adoption of OS X compatibility shims.
Landon Fuller
11 years ago 753c3af
B
As soon as we were not able to remove on directory stop trying to remove parents
Baptiste Daroussin
11 years ago 4493c7e
B
Fix the prefix guard on directory removal
Baptiste Daroussin
11 years ago 6d27740
B
Fix pkg delete trying to remove directories it should not
Baptiste Daroussin
11 years ago c7a3649
B
Fix pkg upgrade leaving directories behind
Baptiste Daroussin
11 years ago 4d852ea
B
Direct check of pkg->locked
Baptiste Daroussin
11 years ago 56022a2
B
Make struct pkg a proper structure
Baptiste Daroussin
11 years ago 99c2768
B
Finish killing mtree
Baptiste Daroussin
11 years ago e73c495
B
pkg_dir is internal only, no need for accessors
Baptiste Daroussin
11 years ago 5066570
B
pkg_file is only used internally no need for accessors for other cases pkg_printf is enough
Baptiste Daroussin
11 years ago 7e21f29
B
Garbage collect now no-op code
Baptiste Daroussin
11 years ago f0b1fae
B
Report the proper path when checksum fails
Baptiste Daroussin
11 years ago f8334d0
B
When checking if a package is being used to not self count
Baptiste Daroussin
11 years ago 1e3e5b1
B
Fix build
Baptiste Daroussin
11 years ago 2bba914
B
improve the debug line and document why the counter should be > 0
Baptiste Daroussin
11 years ago f13e175
B
Remove useless newlines at the end of pkg_debug
Baptiste Daroussin
11 years ago db3f4a4
B
Check the real directory path against used directories, and fix the counter comparison
Baptiste Daroussin
11 years ago 0a109a5
B
Add a debug information about the counter
Baptiste Daroussin
11 years ago 25fd606
B
Rework automatic directory deletion
Baptiste Daroussin
11 years ago c7e5eb8
B
Add test cases for pkg_add_dir_to_del
Baptiste Daroussin
11 years ago 156540e
B
Fix ensuring the last char of a directory is a '/'
Baptiste Daroussin
11 years ago 3ed6a27
B
Implement automatic directory removal handling
Baptiste Daroussin
11 years ago d4b08fd
B
Also split out deleting files
Bryan Drewery
11 years ago 9822755
V
Merge branch 'master' into imax-rework
Vsevolod Stakhov
11 years ago 810a097
B
Add a pkg_symlink_cksumat to fix pkg-delete
Bryan Drewery
11 years ago 86552e2
B
Simplify relocation support by using using *at functions
Baptiste Daroussin
11 years ago dd3995c
B
Simplify relocation support by using using *at functions
Baptiste Daroussin
11 years ago 63f0952
B
Do not distinguish anymore between dirrm and drirmtry
Baptiste Daroussin
11 years ago 52aa933
V
Fix upgrade.
Vsevolod Stakhov
11 years ago 8c7d61f
V
Fix symlinks checksum verification in pkg_delete.
Vsevolod Stakhov
11 years ago 84ce9f4
V
More progressbar fixes.
Vsevolod Stakhov
11 years ago 6e828a7
V
Unbreak pkg-delete
Vsevolod Stakhov
11 years ago f1884ad
V
Implement lazy load for deletion.
Vsevolod Stakhov
11 years ago d50f3db
B
Show a progress when deleting packages with no files
Baptiste Daroussin
11 years ago 964ef87
V
Merge branch 'gsoc2014'
Vsevolod Stakhov
11 years ago 17804c4
V
Cleanup.
Vsevolod Stakhov
11 years ago 7624b78
B
Add a progress bar for package deletion
Baptiste Daroussin
11 years ago b111d0e
B
More uniqueid usage
Baptiste Daroussin
11 years ago 28283f7
B
Merge categories, licenses, annotations into pkg->fields
Baptiste Daroussin
12 years ago 4feccaf
B
Convert struct pkg to mostly be a ucl_object_t and chase libucl changes
Baptiste Daroussin
12 years ago 3a72e6b
B
Add an annotation for relocated packages delete files/dirs from the relocated place
Baptiste Daroussin
12 years ago 1698afd
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
V
Delete conflicting packages correctly.
Vsevolod Stakhov
12 years ago 99b4d0d
V
Fix autoremove solving.
Vsevolod Stakhov
12 years ago a3bb121
V
Fix operators precendence.
Vsevolod Stakhov
12 years ago 8220b04
B
Fix a couple of evaluations
Baptiste Daroussin
12 years ago fff6047
V
Fix deletion in case of upgrade.
Vsevolod Stakhov
12 years ago 69d9856
V
Another upgrade fix.
Vsevolod Stakhov
12 years ago 74b2b86
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
G
When pkg add fails and we try to clean up what we may have installed already, be silent about failures doing so (since things may not have been installed actually).
Gerald Pfeifer
12 years ago d55f151
M
More pkg_printf() cleanup.
Matthew Seaman
12 years ago 8cf3721
A
Merge remote-tracking branch 'origin/master' into periodic
Alex Kozlov
13 years ago 677d1b3
M
Merge pull request #421 from smortex/no-script
Matthew Seaman
13 years ago c5cbc4d
R
Fix indentation after last commit.
Romain Tartière
13 years ago f58d1f3
R
Implement `pkg delete -D`.
Romain Tartière
13 years ago 1610cfa
M
Style: Add dash to first line of copyright header.
Matthew Seaman
13 years ago bfe0183
B
Use the LIST_FREE macro where possible
Baptiste Daroussin
13 years ago 6d59ede
B
When deleting dirs, don't emit errors if unable to remove a mounted dir.
Bryan Drewery
13 years ago c5799f6
M
Check the packge locking status at various crucial junctures and throw a spanner in the works if a locked package would be modified at all.
Matthew Seaman
13 years ago d964370
R
Merge branch 'master' of git://github.com/pkgng/pkgng
Roman Naumann
13 years ago 838dd4c
M
Use unsigned types for bitmaps.
Matthew Seaman
13 years ago 6f3c8e5
M
Checking that a bit is unset using XOR? That's just not right.
Matthew Seaman
13 years ago b1cdcc4
M
Merge remote-tracking branch 'upstream/master'
Matthew Seaman
13 years ago 6efb836
W
Various style(9) fixes.
Will Andrews
13 years ago 9fd0036
M
Merge remote-tracking branch 'upstream/master'
Matthew Seaman
13 years ago bba3943
M
Style police: use a consistent style for object accessor functions.
Matthew Seaman
13 years ago 2286938
B
Fix control statement style
Bryan Drewery
13 years ago 7aa1081
B
Fix double message when deleting
Baptiste Daroussin
13 years ago 63efb21
M
Factorise a bit rcscripts.c
Marin Atanasov Nikolov
14 years ago 4e5447b
B
Removed unused headers
Baptiste Daroussin
14 years ago 80ac28f
B
Adding the copyright to the library
Baptiste Daroussin
14 years ago 8dbe8b5
J
Move private headers to private/ subfolder. Dont use private headers in the frontend.
Julien Laffaye
14 years ago b6d30db
B
Mark unused
Baptiste Daroussin
14 years ago dfd5cb9
B
Comment code that cause more problem than it solves because too much plist are buggy, while we are not using stage install for packages, some ports will install by mistake from directories they shouldn't, so detecting if a directory is used by another package could lead to some directories not removed while pointyhat is expecting it to be removed.
Baptiste Daroussin
14 years ago 964b2d5
B
Use a single function to retrive pkg informations:
Baptiste Daroussin
14 years ago 6757141
B
New pkg_file_get()
Baptiste Daroussin
14 years ago ea5f019
j
Introduce new pkg_config API.
jlaffaye
14 years ago 3871973
B
s/strcmp/strcasecmp to check for yes/YES value :)
Baptiste Daroussin
14 years ago edfbd67
B
Be able to handle rc scripts
Baptiste Daroussin
14 years ago 4d5e7db
B
remove pkg_add2 and pkg_delete2
Baptiste Daroussin
14 years ago e41281b
B
First step toward real safe upgrade.
Baptiste Daroussin
14 years ago 1cd01f2
B
A bit of refactoring for more consistency
Baptiste Daroussin
14 years ago 19fcedd
B
Real support for dirrmtry
Baptiste Daroussin
14 years ago efacaf5
j
Fix wrong pkg_list_empty() usage.
jlaffaye
14 years ago 3f617fe
B
More lazyness to handle lists
Baptiste Daroussin
14 years ago fb10d17
j
Replace emit macros by functions.
jlaffaye
14 years ago db27b92
J
Merge pull request #88 from gahr/master
Julien Laffaye
14 years ago 3268256
P
Fix a typo
Pietro Cerutti
14 years ago 5db46b3
B
replace 65 magic number by SHA256_DIGEST_LENGTH * 2 + 1 shiwh is more explicit while here add more sizeof()
Baptiste Daroussin
14 years ago 7bff25f
B
Really basic upgrade support
Baptiste Daroussin
14 years ago 3a66d66
B
Better delete backend and frontend
Baptiste Daroussin
14 years ago 7a058e6
M
Merge remote-tracking branch 'upstream/master' and resolve conflicts
Marin Atanasov Nikolov
14 years ago f279bf9
j
Nuke pkg_error: eveything is an event now!!
jlaffaye
14 years ago 54d9a45
j
Replace each call of warn(x) to an event.
jlaffaye
14 years ago 146165a
j
Order deletes.
jlaffaye
14 years ago 1a80a52
j
Introduce new events API.
jlaffaye
14 years ago f8a04e8
B
Merge branch 'master' of git://github.com/wca/pkgng into wca
Baptiste Daroussin
14 years ago 7fd834b
W
Merge remote branch 'pkgng/master'
Will Andrews
14 years ago f4f6257