diff options
Diffstat (limited to 'apkcontent2sqlite.sh')
-rwxr-xr-x | apkcontent2sqlite.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apkcontent2sqlite.sh b/apkcontent2sqlite.sh index 21d4284..e8d1f96 100755 --- a/apkcontent2sqlite.sh +++ b/apkcontent2sqlite.sh @@ -6,7 +6,8 @@ repos="main testing" archs="x86 x86_64 armhf" db="db/filelist.db" csv="csv/filelist.csv" -turbo_db="/var/www/aports-turbo/db/apkindex.db" +turbo_db="/var/www/aports-turbo/db/filelist.db" +rsync="rsync://nl.alpinelinux.org/alpine/edge" rm_stale_filelist() { for repo in $repos; do @@ -92,8 +93,12 @@ mv_db() { mv $db $turbo_db } +update_apkindex() { + ./apkindex2sqlite.sh +} + # just do it prepare && apk_sync && update_filelist && rm_stale_filelist # only update db when we have changes -[ ! -z "$result" ] && cat_csv && create_db && mv_db +[ ! -z "$result" ] && cat_csv && create_db && mv_db && update_apkindex |