Skip to content

Commit

Permalink
fix: fail on missing package imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nkraetzschmar committed Mar 25, 2024
1 parent f20b3fb commit 3a10eea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
5 changes: 3 additions & 2 deletions download_pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ done
rm -rf download
sort -o pkgs -u pkgs

cat "$import_list" >> depends
sed 's/^#'"$(dpkg --print-architecture)"' //;/^#/d' < "$import_list" > arch_import_list
cat arch_import_list >> depends
aptitude search '?priority(required)|?priority(important)' -F '%p' -q | cut -d : -f 1 >> depends

sort -o depends -u depends
join -v 1 depends pkgs > needed

xargs apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances < needed | grep '^\w' | cut -d : -f 1 | sort | uniq > recursive_depends
join -v 1 recursive_depends pkgs | { grep -v -x -f "$exclude_patterns" || true; } > recursive_needed
join -v 1 <(cat arch_import_list recursive_depends | sort | uniq) pkgs | { grep -v -x -f "$exclude_patterns" || true; } > recursive_needed

mkdir apt_download
(cd apt_download && xargs apt-get download) < recursive_needed
Expand Down
15 changes: 2 additions & 13 deletions package-imports
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ apparmor
arptables
auditd
awscli
azure-cli
binutils
bird2
bsdextrautils
Expand All @@ -33,7 +32,6 @@ dnsmasq
dnsutils
docker.io
docker.io
docker.iodmidecode
dosfstools
dracut
dracut-live
Expand All @@ -43,7 +41,6 @@ ebtables
efibootmgr
efitools
ethtool
fail2ban
flex
gcc
gdisk
Expand Down Expand Up @@ -80,22 +77,18 @@ lzop
make
man-db
mdadm
microsoft-authentication-library-for-python
multipath-tools
neofetch
net-tools
netplan.io
netcat-openbsd
nfs-common
nftablesdracut-network
nodejs
npm
nullmailer
nullmailerauditd
numactl
nvme-cli
open-vm-tools
open-vm-toolsselinux-basics
openssh-server
openssl
openssl
Expand All @@ -108,9 +101,7 @@ podman-toolbox
policykit-1
pristine-lfs
python3-apt
python3-boto
python3-cffi-backend
python3-cffi-backendvim
python3-click
python3-debian
python3-distutils
Expand Down Expand Up @@ -147,10 +138,8 @@ sssd
strace
sudo
swtpm
syslinux
syslinux-common
syslog-ng
syslog-ng-core
#amd64 syslinux
#amd64 syslinux-common
sysstat
systemd-cron
tcpd
Expand Down

0 comments on commit 3a10eea

Please sign in to comment.