From 7c10728be3005bc65712f3f3f3dcd54c7b9aaace Mon Sep 17 00:00:00 2001 From: "Jyotirmoy Bandyopadhyaya [Bravo68]" Date: Tue, 11 Jun 2024 20:13:37 +0530 Subject: [PATCH] feat: added mingw repo for databases --- scripts/get_dbs.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/get_dbs.sh b/scripts/get_dbs.sh index 1cdd39d..a30eb75 100755 --- a/scripts/get_dbs.sh +++ b/scripts/get_dbs.sh @@ -24,6 +24,10 @@ echo "Downloading blackarch" curl https://mirrors.gethosted.online/blackarch/blackarch/blackarch/os/x86_64/blackarch.db.tar.gz --output db/blackarch.db.tar.gz >/dev/null 2>&1 echo "Downloaded blackarch" +echo "Downloading mingw64" +curl https://repo.msys2.org/mingw/x86_64/mingw64.files --output db/mingw64.files >/dev/null 2>&1 +echo "Downloaded mingw64" + echo "Completed downloading databases" echo "Creating directories" @@ -32,6 +36,7 @@ mkdir -p db/extra mkdir -p db/multilib mkdir -p db/chaotic-aur mkdir -p db/blackarch +mkdir -p db/mingw64 echo "Directories created" echo "Extracting Databases" @@ -57,6 +62,11 @@ echo "Extracting blackarch" tar -xzf db/blackarch.db.tar.gz -C db/blackarch >/dev/null 2>&1 echo "Extracted blackarch" +echo "Extracting mingw64" +cp db/mingw64.files db/mingw64.zst +tar --zstd -xvf db/mingw64.zst -C db/mingw64 >/dev/null 2>&1 +echo "Extracted mingw64" + echo "Completed extracting databases" echo "Removing tar files" @@ -66,8 +76,13 @@ rm db/multilib.db.tar.gz rm db/chaotic-aur.zst rm db/chaotic-aur.files rm db/blackarch.db.tar.gz +rm db/mingw64.zst +rm db/mingw64.files echo "Removed tar files" +# Remove unnecessary files 'files' +rm db/**/files + echo $(date +"%s") > db/endtime # aur