Skip to content

Commit

Permalink
fix: make exclude support multi arch download
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Feb 5, 2025
1 parent 7ff10b4 commit 8580497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion download_pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ xargs apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts -
awk '{ print $1; print $1 ":amd64"; print $1 ":arm64" }' < recursive_depends > recursive_depends_extended
xargs apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances < recursive_depends_extended | grep '^\w' | sort | uniq > recursive_depends_real

comm -23 recursive_depends_real pkgs | { grep -v -x -f "$exclude_patterns" || true; } > recursive_needed
sed 's/$/:.*/' < "$exclude_patterns" > exclude_extended
comm -23 recursive_depends_real pkgs | { grep -v -x -f exclude_extended || true; } > recursive_needed

mkdir apt_download
(cd apt_download && xargs apt-get download) < recursive_needed
Expand Down

0 comments on commit 8580497

Please sign in to comment.