Details
Details
- Reviewers
- None
- Group Reviewers
portmgr
Diff Detail
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 30806 Build 28529: arc lint + arc unit
Event Timeline
Comment Actions
so far there is no stat, but I will add one in the futur to simplify that one. Actually there is the lfs lua package which I plan to import, but for capsicumisation I have to modify some function first. So in the meantime it does the trick.
Comment Actions
The function os.remove is equivalent of remove(3) and behave the same, so it removes the symlink: https://github.com/freebsd/pkg/blob/master/libpkg/lua_scripts.c#L166
Basically the behaviour is the same as [ -s ... ] && rm -f
Comment Actions
Wouldn't it be interesting to have this only work on a regular file, it does not make much sense if it was tried on a symlink.
(Maybe I am trying to hard to find stupid things people will do.)