Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/lua_scripts.c  ·  View all commits
70 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
B
lua: add pkg.exec_capture, a pkg.exec version capturing stdout/stderr
Baptiste Daroussin
22 days ago bd9cf03
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
pkg: messages improvements
Baptiste Daroussin
2 months ago b21ebf9
P
pkg: avoid a bunch of warnings
Pierre Pronchery
2 months ago 3b9bfd7
B
C23: first round at using __has_include
Baptiste Daroussin
3 months ago 0f84b83
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
B
lua: add metalog_copy
Baptiste Daroussin
6 months ago a2f455f
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
7 months ago 7dccd36
M
libpkg: Provide the METALOG path to pkg scripts
Mark Johnston
9 months ago ae1861a
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
pkg: convert stringlist_t to charv_t
Baptiste Daroussin
1 year ago 3c90262
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
B
lua: add a function to make symlinks
Baptiste Daroussin
3 years ago 9bf1a55
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
lua_scripts: convert type to string list
Baptiste Daroussin
3 years ago 6d0c152
B
lua: add pkg.readdir
Baptiste Daroussin
4 years ago ef8e715
B
quality: remove dead assignements
Baptiste Daroussin
4 years ago d1f7fc9
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
lua script: disable sandboxing
Baptiste Daroussin
5 years ago 7cd1e10
B
lua script: remove leftovers
Baptiste Daroussin
5 years ago 8f5145f
B
lua: hook the new lua_exec and load all functions in triggers
Baptiste Daroussin
5 years ago 895c9f7
B
lua: make most function overrides independent from the package structure
Baptiste Daroussin
5 years ago 76bb3c5
B
Don't run lua triggers in a sandbox, we do want os.execute
Baptiste Daroussin
5 years ago 82747e3
B
scripts: expose the package name to the scripts (lua and shell)
Baptiste Daroussin
5 years ago c4f96ea
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
B
Do not run pkg_shutdown function too often
Baptiste Daroussin
5 years ago 380ac7f
J
Fix hang with pkg scripts that start daemons.
John Hood
5 years ago d40dbc6
B
When executing lua scripts return the value actually returned by the script itself
Baptiste Daroussin
5 years ago ed57e13
B
Implement real arguments for lua script from keywords
Baptiste Daroussin
5 years ago 6d75f8c
B
Move lua only code in a specific files so lua
Baptiste Daroussin
5 years ago 9caf48c
B
xstring usage: prefer fputs over fprintf where possible
Baptiste Daroussin
5 years ago 720878c
B
Attempt to fix build on osx
Baptiste Daroussin
5 years ago e8d60bc
B
Use open_memstream p1
Baptiste Daroussin
5 years ago 383d27c
S
Merge remote-tracking branch 'upstream/master' into master
Shawn Webb
5 years ago 4130f22
E
lua_script: Use O_RDWR and PROT_READ | PROT_WRITE
Emmanuel Vadot
5 years ago 4514348
S
Merge commit 'ecf659510be5e198dd4d5974c10b6a655353dfcc' into master
Shawn Webb
5 years ago f54c8aa
E
lua_pkg_copy: Do not set AT_SYMLINK_NOFOLLOW
Emmanuel Vadot
5 years ago ecf6595
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
B
Fix typo
Baptiste Daroussin
5 years ago 2bd2332
B
Add the type to the stat object
Baptiste Daroussin
5 years ago 71d00f7
B
Add input validation to lua functions
Baptiste Daroussin
5 years ago b6c1d5d
B
Fix the lua stat function and add regression test for it
Baptiste Daroussin
5 years ago 734ba6b
B
Add a simple stat() function
Baptiste Daroussin
5 years ago 2a0b876
B
Move copy and filecmp to the pkg package
Baptiste Daroussin
5 years ago 93e3998
B
Preserve file attributes when copying with lua
Baptiste Daroussin
5 years ago 694301e
E
Add two new lua function: pkg_copy and pkg_filecmp
Emmanuel Vadot
5 years ago 7ec764b
A
(lua_)scripts.c: gather remaining output after loop exits
Alex Richardson
5 years ago 3aa8ed7
A
Fix child process handling in scripts.c and lua_scripts.c
Alex Richardson
5 years ago 722c3a9
J
Prevent potential hang with scripts
Jung-uk Kim
5 years ago c41f3f2
B
Prevent potential hang with lua scripts
Baptiste Daroussin
6 years ago 0395446
B
Simplify code testing for socket being closed
Baptiste Daroussin
6 years ago b2ef3ed
B
If nothing has been read on the socket, maybe the otherside of the socket is closed
Baptiste Daroussin
6 years ago 89ca637
B
Add a variable to notify scripts when they are running for an upgrade
Baptiste Daroussin
6 years ago 5f91af0
B
Drop lfs module for lua, it is not needed yet
Baptiste Daroussin
6 years ago 840194a
B
Override os.rename, os.remove, os.execute for sandbox lua
Baptiste Daroussin
6 years ago 5a470d4
B
When openning a file, in case of creation, use the default mode as stated in sys/stat.h
Baptiste Daroussin
6 years ago bef5fac
B
Add missing headers
Baptiste Daroussin
6 years ago b1c00c6
B
Override io.open for lua scripts and capsicumize
Baptiste Daroussin
6 years ago 5873340
B
Add a minimal lfs to lua scripts (stolen from flua)
Baptiste Daroussin
6 years ago db8cfab
B
Fix lua script return
Baptiste Daroussin
6 years ago 4c3c269
B
Properly implement a message channel for scripts
Baptiste Daroussin
6 years ago 767fbd7
B
lua_script: Add missing header
Baptiste Daroussin
6 years ago 12471e8
B
Add a function to lua script to properly prefix path provided with PREFIX and PKG_ROOTDIR if needed
Baptiste Daroussin
6 years ago 4bb23ed
B
Create a proper pkg lib to install pkg's specific functions
Baptiste Daroussin
6 years ago 4e43040
B
Add a new lien automatically to lua's print_msg
Baptiste Daroussin
6 years ago 208954b
B
Run lua scripts in a fork to prevent os.exit to exit the pkg process itself
Baptiste Daroussin
6 years ago e74173c
B
Add a function to lua scripts to properly emit messages
Baptiste Daroussin
6 years ago 6ad9b25
B
Add pkg_prefix and pkg_rootdir global to lua scripts
Baptiste Daroussin
6 years ago b1d34f6
B
Add support for scripts in lua
Baptiste Daroussin
6 years ago 485bdd9