Commit Graph

61 Commits

Author SHA1 Message Date
Leonid Pliushch db3a7d3d7b
readme: add deprecation notice 2021-07-10 21:02:40 +03:00
Leonid Pliushch 99aa49cdfd
new database url 2021-06-26 18:31:54 +03:00
Leonid Pliushch c0afb9d22d
store db on releases page currently
https://github.com/termux/termux-packages/issues/6348
2021-02-11 21:00:25 +02:00
Lucy Phipps 5e163c1518
only download db if newer, -U to force (#15) 2021-02-09 13:40:00 +02:00
Lucy Phipps 83d3c35496 hopefully fix sorting large packages 2020-11-22 19:14:42 +02:00
Leonid Pliushch e141b80b6f
Merge pull request #13 from landfillbaby/patch-1
update usage examples
2020-11-22 17:14:21 +02:00
Lucy Phipps c1a702eeb7
don't set $TERMUX_PREFIX, it's used once 2020-11-22 14:56:33 +00:00
Lucy Phipps 074df540d7
update usage examples
removed screenshot and asciinema links temporarily
2020-11-22 12:51:44 +00:00
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 96a9fd100a db builder: allow files outside of $PREFIX
just in case!
2020-11-22 03:12:44 +02:00
Lucy Phipps 9afbbb72de
update-whatprovides-db.sh: avoid '.' entries in db (#10) 2020-11-22 01:23:45 +02:00
Leonid Pliushch 78b19eef01
update-whatprovides-db.sh: define TERMUX_PREFIX 2020-11-22 00:09:22 +02:00
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
Leonid Pliushch f93bad1cfc
add script for generating or updating database 2020-11-21 20:39:46 +02:00
Krishna Kanhaiya 8078679e7a
Merge pull request #7 from landfillbaby/patch-1
a few improvements
2020-11-21 09:03:37 +05:30
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
Krishna Kanhaiya 2ebb0d3b2f
Update manual installation instructions 2020-11-20 19:07:32 +05:30
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
kcubeterm f68f12b8d0 Add whatprovides 2020-11-19 22:36:40 +05:30
kcubeterm ab37b9b675 Remove outdated file from db 2020-11-19 22:21:23 +05:30
Leonid Pliushch 0e9bf06204
whatprovides: exact path matches + sorted output 2020-11-19 15:42:03 +02:00
Leonid Pliushch 9472966b92
rewrite makefile 2020-11-19 15:28:15 +02:00
Leonid Pliushch c54e499fc1
install.sh: db is at $PREFIX/share 2020-11-19 15:20:30 +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 b6d1503aa6
Minor fix 2020-11-19 11:52:20 +05:30
kcubeterm 5193e2fbdc minor fix 2020-11-19 11:39:24 +05:30
kcubeterm 78fccd6a35 fix: Readme image 2020-11-19 11:36:55 +05:30
Krishna Kanhaiya f0dbe1850c
Merge pull request #2 from Deshdeepak1/patch-1
Add manual instructions
2020-11-19 09:38:11 +05:30
Deshdeepak 1f768165dd
Add manual instructions 2020-11-19 09:31:41 +05:30
kcubeterm dc26187e4e add nmap 2020-11-19 08:45:03 +05:30
Krishna Kanhaiya 8cd20b6ae0
Readme: edit installation info 2020-11-19 00:58:51 +05:30
Krishna Kanhaiya 41102d02fe
Update README.md 2020-11-18 22:21:12 +05:30
kcubeterm ef9c6e68a3 add file-gen.sh 2020-11-18 16:42:17 +00:00
kcubeterm 78eb446f79 add brook 2020-11-18 16:34:39 +00:00
Krishna Kanhaiya bed6b808c8
Rename LICENSE to LICENSE.md 2020-11-18 21:37:50 +05:30
Krishna Kanhaiya a0e8b023b9
Merge pull request #1 from termux/add-license-1
Create LICENSE
2020-11-18 21:37:11 +05:30
Krishna Kanhaiya 310169f9bd
Create LICENSE 2020-11-18 21:36:32 +05:30
kcubeterm bc98acf273 minor changes 2020-11-18 15:56:12 +00:00
Krishna Kanhaiya 412ef6c2db
Add Makefile 2020-11-18 21:15:04 +05:30
Krishna Kanhaiya ea98099d2a
Update README.md 2020-11-18 20:04:02 +05:30
Krishna Kanhaiya 6ff9380276
Update README.md 2020-11-18 20:01:08 +05:30
Krishna Kanhaiya df798dba51
Update README.md 2020-11-18 17:12:07 +05:30
Krishna Kanhaiya cb590ed1c8
Update README.md 2020-11-18 16:49:33 +05:30
Krishna Kanhaiya d2cb59c6d7
Update and rename termux-provides to whatprovides 2020-11-18 16:47:45 +05:30