Commit Graph

13 Commits

Author SHA1 Message Date
Lucy Phipps 8fdd508949
only bother with leaf nodes, smaller but slower? (#12)
also error message when package not found
also correctly prepend $PREFIX on reverse mode
2020-11-22 11:53:05 +05:30
Lucy Phipps c372df97f6 vastly reduce database size by not storing $PREFIX
also escape filenames for sqlite, realpath -sm
2020-11-22 00:07:33 +02:00
Lucy Phipps b9bd4408db
a few improvements 2020-11-21 03:27:21 +00:00
Krishna Kanhaiya 3d40821f10
Fix: files checks.
Now it will be able to list those files which not exist in termux. 
#6
2020-11-21 08:33:34 +05:30
Leonid Pliushch 451422bc8f
few improvements
- Send info/error messages to stderr.
- Option to suppress all info messages except errors.
- Allow to upgrade database before processing input.
- Verify user input, show errors when file does not exist or
  package name is not valid.
- Get rid of 'getopts' - don't like it.
2020-11-20 17:35:36 +02:00
Leonid Pliushch fdcf1f8417
check whether db exists before trying to open it 2020-11-20 03:03:10 +02:00
Leonid Pliushch 712f54797f
db update: reduce retry delay to 1 second and set amount to 3 2020-11-20 02:55:45 +02:00
Leonid Pliushch fb6a7e0e3b
fix script 2020-11-20 02:47:56 +02:00
Leonid Pliushch 1556d489f1
use 'sqlite3', order output by filename 2020-11-20 02:27:47 +02:00
Leonid Pliushch 82fe76cee6
use sqlite format for database
Database is not stored within the source tree. It is available
at https://dl.bintray.com/termux/metadata/whatprovides-db/whatprovides.db.gz
2020-11-20 02:10:47 +02:00
Leonid Pliushch 0e9bf06204
whatprovides: exact path matches + sorted output 2020-11-19 15:42:03 +02:00
Leonid Pliushch 8ad9e1cbf9
refactor 'whatprovides' script
- Properly handle arguments.
- Remove functions where not necessary.
- Update help info.
2020-11-19 15:18:28 +02:00
Krishna Kanhaiya d2cb59c6d7
Update and rename termux-provides to whatprovides 2020-11-18 16:47:45 +05:30