Skip to content

Commit

Permalink
Fix dependencies not being counted correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
132ikl committed Oct 7, 2019
1 parent 810d370 commit 5d2c6bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_scripts/get_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ curl https://archive.raspbian.org/raspbian.public.key | apt-key add -
dpkg --add-architecture armhf
apt-get update

touch dependencies
for file in packages/deps/*; do
# Removes depends Comma to newline Remove all after : and (
dpkg-deb -I "$file" | grep Depends | sed -e 's/ Depends: //' -e 's/, /\n/g' -e 's/:.*$//g' -e 's/ (.*$//g' > dependencies
dpkg-deb -I "$file" | grep Depends | sed -e 's/ Depends: //' -e 's/, /\n/g' -e 's/:.*$//g' -e 's/ (.*$//g' >> dependencies
done
sort -u dependencies -o dependencies

Expand Down

0 comments on commit 5d2c6bc

Please sign in to comment.