Skip to content

Commit

Permalink
rem old check packages func
Browse files Browse the repository at this point in the history
  • Loading branch information
plowsof committed Sep 30, 2024
1 parent 9fc5582 commit 4564a9a
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions shared_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -687,37 +687,6 @@ build_all() {
build_and_install CMake "./bootstrap"
}

check_md5sums() {
local packages_file="Packages"

check_tuple() {
local url="$1"
local filename="$2"
local md5sum="$3"

if grep -q "^Filename: $url$" "$packages_file" && grep -q "^MD5sum: $md5sum$" "$packages_file"; then
echo "Found match for $filename: $md5sum"
else
echo "No match found for $filename: $md5sum"
fi
}

check_array() {
local array_name="$1"
local -n arr="$array_name"

echo "Checking $array_name:"
for ((i=0; i<${#arr[@]}; i+=3)); do
check_tuple "${arr[i]}" "${arr[i+1]}" "${arr[i+2]}"
done
echo
}

check_array debs_gitcloner
check_array debs_downloader
check_array debs_tarballs
}

# get_packages / verify_packages adapted from featherwallet v2.1.2

BASE_URI="http://archive.ubuntu.com/ubuntu/dists"
Expand Down

0 comments on commit 4564a9a

Please sign in to comment.