Tiny Core Base > TCB Tips & Tricks
How to find which extension provides a file
Rich:
Hi CNK
--- Quote from: CNK on November 19, 2024, 11:33:55 PM --- ... Maybe only output the help info when called with no arguments if "[ -t 1 ]" is true, ...
--- End quote ---
Done.
GNUser:
Hi Rich. FWIW I like the idea of automatically updating provides.db and would be happy with whatever maximum age is default.
Splitting the update into its own command or special flag (à la apt-file) would mean that using provides.sh would be a 2-step process for every user, every time (first checking age +/- updating the db, then searching the db). No autoupdate would also be a gotcha for less experienced users.
P.S. Folks that want maximum speed or more granular control can use the environmental variable you proposed to stop db updates (and/or you could add a "no db update" flag).
GNUser:
Hi Rich. Can you please post/attach your current provides.sh? I'd love to start using it right away. Thanks :)
I hope it becomes part of the base system for TCL16.
Rich:
Hi GNUser
--- Quote from: GNUser on November 20, 2024, 11:50:39 AM --- ... No autoupdate would also be a gotcha for less experienced users. ...
--- End quote ---
There will be an auto update (zsync) by default for that very reason. I think
15 minutes is long enough for most users to not get in the way when doing
multiple searches.
Also, unless you're the unluckiest person in the world, and the item you are
searching for gets added to provides.db in between auto updates, is short
enough not to cause problems.
--- Quote --- ... P.S. Folks that want maximum speed or more granular control can use the environmental variable you proposed to stop db updates (and/or you could add a "no db update" flag).
--- End quote ---
That's already in place. Including -nz (no zsync) in the command tells
provides.sh not to call UpdateProvidesDB().
Latest version attached. Give it a shake and let me know if any bugs fall out. ;D
I'll start looking into adding an environmental variable for advanced users.
GNUser:
Thanks, Rich. I'll give it a good shake :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version